From c05106418d80e8b8516bd4316000790b0fc1e0ee Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 30 Apr 2025 16:39:14 +0000 Subject: [PATCH] CodeGen from PR 34371 in Azure/azure-rest-api-specs Merge 5a991e1ddde01c1ad3021a5d06676272f2ac00f5 into 37e1a52a30c527b6ad2d7ef09a9c82ad4491e8a2 --- .../CHANGELOG.md | 42 +- .../README.md | 2 +- .../SAMPLE.md | 3272 ++++++++--------- .../azure-resourcemanager-datafactory/pom.xml | 1 + ...azonRdsForLinkedServiceTypeProperties.java | 463 ++- ...DatabricksLinkedServiceTypeProperties.java | 30 + .../ActivityRunsClientImpl.java | 92 +- .../ChangeDataCapturesClientImpl.java | 655 ++-- .../CredentialOperationsClientImpl.java | 415 +-- .../DataFactoryManagementClientImpl.java | 20 - .../DataFlowDebugSessionsClientImpl.java | 591 ++- .../implementation/DataFlowsClientImpl.java | 413 +-- .../implementation/DatasetsClientImpl.java | 413 +-- .../ExposureControlsClientImpl.java | 243 +- .../implementation/FactoriesClientImpl.java | 831 ++--- .../GlobalParametersClientImpl.java | 417 +-- .../IntegrationRuntimeNodesClientImpl.java | 364 +- ...ationRuntimeObjectMetadatasClientImpl.java | 217 +- .../IntegrationRuntimesClientImpl.java | 1622 ++++---- .../LinkedServicesClientImpl.java | 423 +-- .../ManagedPrivateEndpointsClientImpl.java | 488 ++- .../ManagedVirtualNetworksClientImpl.java | 352 +- .../implementation/OperationsClientImpl.java | 126 +- .../PipelineRunsClientImpl.java | 233 +- .../implementation/PipelinesClientImpl.java | 506 ++- .../PrivateEndPointConnectionsClientImpl.java | 174 +- ...ndpointConnectionOperationsClientImpl.java | 260 +- .../PrivateLinkResourcesClientImpl.java | 69 +- .../implementation/TriggerRunsClientImpl.java | 248 +- .../implementation/TriggersClientImpl.java | 1060 +++--- .../AmazonRdsForOracleAuthenticationType.java | 47 + .../AmazonRdsForOracleLinkedService.java | 366 +- .../models/AzureDatabricksLinkedService.java | 25 + ...ctivityRunsQueryByPipelineRunSamples.java} | 4 +- ...angeDataCaptureCreateOrUpdateSamples.java} | 4 +- ...va => ChangeDataCaptureDeleteSamples.java} | 4 +- ....java => ChangeDataCaptureGetSamples.java} | 4 +- ...hangeDataCaptureListByFactorySamples.java} | 4 +- ...ava => ChangeDataCaptureStartSamples.java} | 4 +- ...va => ChangeDataCaptureStatusSamples.java} | 4 +- ...java => ChangeDataCaptureStopSamples.java} | 4 +- ...ntialOperationsCreateOrUpdateSamples.java} | 4 +- ...=> CredentialOperationsDeleteSamples.java} | 4 +- ...va => CredentialOperationsGetSamples.java} | 4 +- ...entialOperationsListByFactorySamples.java} | 4 +- ...taFlowDebugSessionAddDataFlowSamples.java} | 4 +- ...=> DataFlowDebugSessionDeleteSamples.java} | 4 +- ...lowDebugSessionQueryByFactorySamples.java} | 4 +- ...va => DataFlowsCreateOrUpdateSamples.java} | 4 +- ...mples.java => DataFlowsDeleteSamples.java} | 4 +- ...cSamples.java => DataFlowsGetSamples.java} | 4 +- ...ava => DataFlowsListByFactorySamples.java} | 4 +- ...ava => DatasetsCreateOrUpdateSamples.java} | 4 +- ...amples.java => DatasetsDeleteSamples.java} | 4 +- ...ncSamples.java => DatasetsGetSamples.java} | 4 +- ...java => DatasetsListByFactorySamples.java} | 4 +- ...ntrolGetFeatureValueByFactorySamples.java} | 4 +- ...xposureControlGetFeatureValueSamples.java} | 4 +- ...olQueryFeatureValuesByFactorySamples.java} | 4 +- ...FactoriesConfigureFactoryRepoSamples.java} | 4 +- ...va => FactoriesCreateOrUpdateSamples.java} | 4 +- ...mples.java => FactoriesDeleteSamples.java} | 4 +- ...> FactoriesGetByResourceGroupSamples.java} | 4 +- ...> FactoriesGetDataPlaneAccessSamples.java} | 4 +- ...FactoriesGetGitHubAccessTokenSamples.java} | 4 +- ... FactoriesListByResourceGroupSamples.java} | 4 +- ...Samples.java => FactoriesListSamples.java} | 4 +- ...mples.java => FactoriesUpdateSamples.java} | 4 +- ...lobalParametersCreateOrUpdateSamples.java} | 4 +- ...ava => GlobalParametersDeleteSamples.java} | 4 +- ...s.java => GlobalParametersGetSamples.java} | 4 +- ...GlobalParametersListByFactorySamples.java} | 4 +- ...IntegrationRuntimeNodesDeleteSamples.java} | 4 +- ...ationRuntimeNodesGetIpAddressSamples.java} | 4 +- ...=> IntegrationRuntimeNodesGetSamples.java} | 4 +- ...IntegrationRuntimeNodesUpdateSamples.java} | 4 +- ...ationRuntimeObjectMetadataGetSamples.java} | 4 +- ...reateLinkedIntegrationRuntimeSamples.java} | 4 +- ...grationRuntimesCreateOrUpdateSamples.java} | 4 +- ... => IntegrationRuntimesDeleteSamples.java} | 4 +- ...tionRuntimesGetConnectionInfoSamples.java} | 4 +- ...tionRuntimesGetMonitoringDataSamples.java} | 4 +- ...ava => IntegrationRuntimesGetSamples.java} | 4 +- ... IntegrationRuntimesGetStatusSamples.java} | 4 +- ...tegrationRuntimesListAuthKeysSamples.java} | 4 +- ...egrationRuntimesListByFactorySamples.java} | 4 +- ...dNetworkDependenciesEndpointsSamples.java} | 4 +- ...tionRuntimesRegenerateAuthKeySamples.java} | 4 +- ...ntegrationRuntimesRemoveLinksSamples.java} | 4 +- ...rationRuntimesSyncCredentialsSamples.java} | 4 +- ... => IntegrationRuntimesUpdateSamples.java} | 4 +- ...=> IntegrationRuntimesUpgradeSamples.java} | 4 +- ... LinkedServicesCreateOrUpdateSamples.java} | 4 +- ....java => LinkedServicesDeleteSamples.java} | 4 +- ...les.java => LinkedServicesGetSamples.java} | 4 +- ...> LinkedServicesListByFactorySamples.java} | 4 +- ...rivateEndpointsCreateOrUpdateSamples.java} | 4 +- ...ManagedPrivateEndpointsDeleteSamples.java} | 4 +- ...=> ManagedPrivateEndpointsGetSamples.java} | 4 +- ...PrivateEndpointsListByFactorySamples.java} | 4 +- ...VirtualNetworksCreateOrUpdateSamples.java} | 4 +- ... => ManagedVirtualNetworksGetSamples.java} | 4 +- ...dVirtualNetworksListByFactorySamples.java} | 4 +- ...amples.java => OperationsListSamples.java} | 4 +- ...es.java => PipelineRunsCancelSamples.java} | 4 +- ...mples.java => PipelineRunsGetSamples.java} | 4 +- ...=> PipelineRunsQueryByFactorySamples.java} | 4 +- ...va => PipelinesCreateOrUpdateSamples.java} | 4 +- ...es.java => PipelinesCreateRunSamples.java} | 4 +- ...mples.java => PipelinesDeleteSamples.java} | 4 +- ...cSamples.java => PipelinesGetSamples.java} | 4 +- ...ava => PipelinesListByFactorySamples.java} | 4 +- ...PointConnectionsListByFactorySamples.java} | 4 +- ...ectionOperationCreateOrUpdateSamples.java} | 4 +- ...ointConnectionOperationDeleteSamples.java} | 4 +- ...ndpointConnectionOperationGetSamples.java} | 4 +- ...va => PrivateLinkResourcesGetSamples.java} | 4 +- ...les.java => TriggerRunsCancelSamples.java} | 4 +- ... => TriggerRunsQueryByFactorySamples.java} | 4 +- ...ples.java => TriggerRunsRerunSamples.java} | 4 +- ...ava => TriggersCreateOrUpdateSamples.java} | 4 +- ...amples.java => TriggersDeleteSamples.java} | 4 +- ...ersGetEventSubscriptionStatusSamples.java} | 4 +- ...ncSamples.java => TriggersGetSamples.java} | 4 +- ...java => TriggersListByFactorySamples.java} | 4 +- ...ava => TriggersQueryByFactorySamples.java} | 4 +- .../generated/ActivityDependencyTests.java | 47 - .../generated/ActivityPolicyTests.java | 49 - .../generated/ActivityRunTests.java | 41 - .../datafactory/generated/ActivityTests.java | 77 - ...aFlowToDebugSessionResponseInnerTests.java | 25 - .../AmazonMwsObjectDatasetTests.java | 62 - .../generated/AmazonMwsSourceTests.java | 29 - ...zonRdsForOraclePartitionSettingsTests.java | 27 - .../AmazonRdsForOracleSourceTests.java | 35 - .../AmazonRdsForOracleTableDatasetTests.java | 62 - ...OracleTableDatasetTypePropertiesTests.java | 24 - .../AmazonRdsForSqlServerSourceTests.java | 38 - ...mazonRdsForSqlServerTableDatasetTests.java | 67 - ...ServerTableDatasetTypePropertiesTests.java | 25 - .../generated/AmazonRedshiftSourceTests.java | 52 - .../AmazonRedshiftTableDatasetTests.java | 66 - ...dshiftTableDatasetTypePropertiesTests.java | 26 - .../AmazonS3CompatibleLocationTests.java | 26 - .../AmazonS3CompatibleReadSettingsTests.java | 35 - .../generated/AmazonS3LocationTests.java | 26 - .../generated/AmazonS3ReadSettingsTests.java | 34 - .../AppendVariableActivityTests.java | 72 - ...ndVariableActivityTypePropertiesTests.java | 27 - .../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 | 71 - .../AzureBlobDatasetTypePropertiesTests.java | 49 - .../generated/AzureBlobFSDatasetTests.java | 76 - ...AzureBlobFSDatasetTypePropertiesTests.java | 46 - .../generated/AzureBlobFSLocationTests.java | 25 - .../AzureBlobFSReadSettingsTests.java | 33 - .../generated/AzureBlobFSSinkTests.java | 32 - .../generated/AzureBlobFSSourceTests.java | 29 - .../AzureBlobFSWriteSettingsTests.java | 29 - .../AzureBlobStorageLocationTests.java | 25 - .../AzureBlobStorageReadSettingsTests.java | 35 - .../AzureBlobStorageWriteSettingsTests.java | 31 - ...AzureDataExplorerCommandActivityTests.java | 98 - ...rerCommandActivityTypePropertiesTests.java | 25 - ...ataExplorerDatasetTypePropertiesTests.java | 23 - .../generated/AzureDataExplorerSinkTests.java | 31 - .../AzureDataExplorerSourceTests.java | 30 - .../AzureDataExplorerTableDatasetTests.java | 63 - .../AzureDataLakeStoreDatasetTests.java | 72 - ...taLakeStoreDatasetTypePropertiesTests.java | 47 - .../AzureDataLakeStoreLocationTests.java | 24 - .../AzureDataLakeStoreReadSettingsTests.java | 36 - .../AzureDataLakeStoreSinkTests.java | 30 - .../AzureDataLakeStoreSourceTests.java | 27 - .../AzureDataLakeStoreWriteSettingsTests.java | 30 - .../AzureDatabricksDeltaLakeDatasetTests.java | 64 - ...ksDeltaLakeDatasetTypePropertiesTests.java | 25 - ...DatabricksDeltaLakeExportCommandTests.java | 25 - ...DatabricksDeltaLakeImportCommandTests.java | 25 - .../AzureDatabricksDeltaLakeSinkTests.java | 32 - .../AzureDatabricksDeltaLakeSourceTests.java | 30 - .../AzureFileStorageLocationTests.java | 24 - .../AzureFileStorageReadSettingsTests.java | 35 - .../AzureFileStorageWriteSettingsTests.java | 30 - .../generated/AzureFunctionActivityTests.java | 105 - ...reFunctionActivityTypePropertiesTests.java | 46 - .../AzureMLBatchExecutionActivityTests.java | 127 - ...hExecutionActivityTypePropertiesTests.java | 75 - .../AzureMLExecutePipelineActivityTests.java | 95 - ...tePipelineActivityTypePropertiesTests.java | 31 - .../AzureMLUpdateResourceActivityTests.java | 103 - ...teResourceActivityTypePropertiesTests.java | 46 - .../generated/AzureMLWebServiceFileTests.java | 44 - .../generated/AzureMariaDBSourceTests.java | 29 - .../AzureMariaDBTableDatasetTests.java | 63 - .../generated/AzureMySqlSinkTests.java | 29 - .../generated/AzureMySqlSourceTests.java | 29 - .../AzureMySqlTableDatasetTests.java | 66 - ...eMySqlTableDatasetTypePropertiesTests.java | 24 - .../generated/AzurePostgreSqlSourceTests.java | 29 - .../AzurePostgreSqlTableDatasetTests.java | 66 - ...greSqlTableDatasetTypePropertiesTests.java | 26 - .../generated/AzureQueueSinkTests.java | 28 - .../AzureSearchIndexDatasetTests.java | 66 - ...SearchIndexDatasetTypePropertiesTests.java | 23 - .../generated/AzureSearchIndexSinkTests.java | 33 - .../AzureSqlDWTableDatasetTests.java | 68 - ...eSqlDWTableDatasetTypePropertiesTests.java | 26 - .../AzureSqlMITableDatasetTests.java | 66 - ...eSqlMITableDatasetTypePropertiesTests.java | 26 - .../generated/AzureSqlSourceTests.java | 38 - .../generated/AzureSqlTableDatasetTests.java | 69 - ...ureSqlTableDatasetTypePropertiesTests.java | 25 - ...ureSynapseArtifactsLinkedServiceTests.java | 60 - ...factsLinkedServiceTypePropertiesTests.java | 26 - .../generated/AzureTableDatasetTests.java | 64 - .../AzureTableDatasetTypePropertiesTests.java | 22 - .../generated/AzureTableSourceTests.java | 30 - ...DataPoolParametrizationReferenceTests.java | 29 - .../generated/BinaryDatasetTests.java | 67 - .../BinaryDatasetTypePropertiesTests.java | 45 - .../generated/BinaryReadSettingsTests.java | 39 - .../generated/BinarySinkTests.java | 51 - .../generated/BinarySourceTests.java | 48 - .../generated/BlobEventsTriggerTests.java | 68 - .../BlobEventsTriggerTypePropertiesTests.java | 41 - .../datafactory/generated/BlobSinkTests.java | 35 - .../generated/BlobSourceTests.java | 29 - .../generated/BlobTriggerTests.java | 72 - .../BlobTriggerTypePropertiesTests.java | 48 - .../generated/CassandraSourceTests.java | 34 - .../generated/ChainingTriggerTests.java | 61 - .../ChainingTriggerTypePropertiesTests.java | 35 - .../ChangeDataCaptureFolderTests.java | 25 - .../ChangeDataCaptureListResponseTests.java | 200 - .../ChangeDataCaptureResourceInnerTests.java | 276 -- .../generated/ChangeDataCaptureTests.java | 291 -- ...esCreateOrUpdateWithResponseMockTests.java | 106 - ...taCapturesDeleteWithResponseMockTests.java | 34 - ...eDataCapturesGetWithResponseMockTests.java | 60 - ...ngeDataCapturesListByFactoryMockTests.java | 64 - ...ataCapturesStartWithResponseMockTests.java | 34 - ...taCapturesStatusWithResponseMockTests.java | 37 - ...DataCapturesStopWithResponseMockTests.java | 34 - .../generated/CmkIdentityDefinitionTests.java | 25 - ...nDataServiceForAppsEntityDatasetTests.java | 64 - ...rAppsEntityDatasetTypePropertiesTests.java | 24 - .../CommonDataServiceForAppsSourceTests.java | 28 - .../CompressionReadSettingsTests.java | 38 - .../generated/ConcurObjectDatasetTests.java | 62 - .../generated/ConcurSourceTests.java | 29 - .../ConnectionStatePropertiesTests.java | 24 - .../generated/ControlActivityTests.java | 79 - .../CopyActivityLogSettingsTests.java | 24 - .../generated/CopyActivityTests.java | 169 - .../CopyActivityTypePropertiesTests.java | 103 - .../CopyComputeScalePropertiesTests.java | 44 - .../datafactory/generated/CopySinkTests.java | 43 - .../generated/CopySourceTests.java | 41 - .../generated/CopyTranslatorTests.java | 37 - ...mosDbMongoDbApiCollectionDatasetTests.java | 62 - ...iCollectionDatasetTypePropertiesTests.java | 24 - .../CosmosDbMongoDbApiLinkedServiceTests.java | 62 - ...DbApiLinkedServiceTypePropertiesTests.java | 26 - .../CosmosDbMongoDbApiSinkTests.java | 29 - .../CosmosDbMongoDbApiSourceTests.java | 50 - .../CosmosDbSqlApiCollectionDatasetTests.java | 61 - ...iCollectionDatasetTypePropertiesTests.java | 24 - .../generated/CosmosDbSqlApiSinkTests.java | 29 - .../generated/CosmosDbSqlApiSourceTests.java | 31 - .../generated/CouchbaseSourceTests.java | 29 - .../generated/CouchbaseTableDatasetTests.java | 63 - ...reateDataFlowDebugSessionRequestTests.java | 55 - ...ataFlowDebugSessionResponseInnerTests.java | 29 - ...eLinkedIntegrationRuntimeRequestTests.java | 35 - .../CreateRunResponseInnerTests.java | 25 - .../CredentialListResponseTests.java | 67 - ...nsCreateOrUpdateWithResponseMockTests.java | 61 - ...OperationsDeleteWithResponseMockTests.java | 34 - ...ialOperationsGetWithResponseMockTests.java | 40 - ...ntialOperationsListByFactoryMockTests.java | 40 - .../generated/CredentialReferenceTests.java | 45 - .../CredentialResourceInnerTests.java | 47 - .../generated/CredentialTests.java | 43 - .../CustomActivityReferenceObjectTests.java | 61 - .../generated/CustomActivityTests.java | 128 - .../CustomActivityTypePropertiesTests.java | 73 - .../CustomDataSourceLinkedServiceTests.java | 60 - .../generated/CustomDatasetTests.java | 66 - .../generated/CustomEventsTriggerTests.java | 70 - ...ustomEventsTriggerTypePropertiesTests.java | 35 - .../generated/CustomSetupBaseTests.java | 21 - .../DWCopyCommandDefaultValueTests.java | 24 - .../generated/DWCopyCommandSettingsTests.java | 48 - .../DataFlowDebugCommandPayloadTests.java | 36 - .../DataFlowDebugCommandRequestTests.java | 44 - ...ataFlowDebugCommandResponseInnerTests.java | 29 - ...ataFlowDebugPackageDebugSettingsTests.java | 53 - .../generated/DataFlowDebugPackageTests.java | 204 - .../generated/DataFlowDebugResourceTests.java | 36 - .../DataFlowDebugSessionInfoInnerTests.java | 65 - ...sionsAddDataFlowWithResponseMockTests.java | 176 - .../DataFlowDebugSessionsCreateMockTests.java | 62 - ...ugSessionsDeleteWithResponseMockTests.java | 37 - ...wDebugSessionsExecuteCommandMockTests.java | 49 - ...wDebugSessionsQueryByFactoryMockTests.java | 47 - .../generated/DataFlowFolderTests.java | 24 - .../generated/DataFlowListResponseTests.java | 49 - .../generated/DataFlowReferenceTests.java | 47 - .../generated/DataFlowResourceInnerTests.java | 36 - .../generated/DataFlowSinkTests.java | 72 - .../generated/DataFlowSourceSettingTests.java | 44 - .../generated/DataFlowSourceTests.java | 71 - .../generated/DataFlowStagingInfoTests.java | 47 - .../datafactory/generated/DataFlowTests.java | 32 - ...wsCreateOrUpdateWithResponseMockTests.java | 49 - .../DataFlowsDeleteWithResponseMockTests.java | 33 - .../DataFlowsGetWithResponseMockTests.java | 41 - .../DataFlowsListByFactoryMockTests.java | 41 - .../DataLakeAnalyticsUsqlActivityTests.java | 95 - ...lyticsUsqlActivityTypePropertiesTests.java | 51 - .../generated/DataMapperMappingTests.java | 166 - .../DatabricksNotebookActivityTests.java | 102 - ...ksNotebookActivityTypePropertiesTests.java | 42 - .../DatabricksSparkJarActivityTests.java | 101 - ...ksSparkJarActivityTypePropertiesTests.java | 45 - .../DatabricksSparkPythonActivityTests.java | 100 - ...parkPythonActivityTypePropertiesTests.java | 42 - .../generated/DatasetCompressionTests.java | 38 - .../generated/DatasetDebugResourceTests.java | 70 - .../generated/DatasetFolderTests.java | 24 - .../generated/DatasetListResponseTests.java | 113 - .../generated/DatasetLocationTests.java | 39 - .../generated/DatasetReferenceTests.java | 41 - .../generated/DatasetResourceInnerTests.java | 67 - .../DatasetSchemaDataElementTests.java | 39 - .../generated/DatasetStorageFormatTests.java | 39 - .../datafactory/generated/DatasetTests.java | 62 - ...tsCreateOrUpdateWithResponseMockTests.java | 77 - .../DatasetsDeleteWithResponseMockTests.java | 34 - .../DatasetsGetWithResponseMockTests.java | 44 - .../DatasetsListByFactoryMockTests.java | 46 - .../datafactory/generated/Db2SourceTests.java | 29 - .../generated/Db2TableDatasetTests.java | 64 - .../Db2TableDatasetTypePropertiesTests.java | 25 - .../generated/DeleteActivityTests.java | 117 - .../DeleteActivityTypePropertiesTests.java | 63 - ...eleteDataFlowDebugSessionRequestTests.java | 25 - .../DelimitedTextReadSettingsTests.java | 40 - .../generated/DelimitedTextSinkTests.java | 58 - .../generated/DelimitedTextSourceTests.java | 51 - .../DelimitedTextWriteSettingsTests.java | 26 - .../generated/DependencyReferenceTests.java | 22 - .../generated/DistcpSettingsTests.java | 25 - .../DocumentDbCollectionDatasetTests.java | 60 - ...bCollectionDatasetTypePropertiesTests.java | 24 - .../DocumentDbCollectionSinkTests.java | 30 - .../DocumentDbCollectionSourceTests.java | 30 - .../DrillDatasetTypePropertiesTests.java | 25 - .../generated/DrillSourceTests.java | 29 - .../generated/DrillTableDatasetTests.java | 68 - .../DynamicsAXResourceDatasetTests.java | 61 - ...sAXResourceDatasetTypePropertiesTests.java | 23 - .../generated/DynamicsAXSourceTests.java | 30 - .../DynamicsCrmEntityDatasetTests.java | 67 - ...csCrmEntityDatasetTypePropertiesTests.java | 23 - .../generated/DynamicsCrmSourceTests.java | 28 - .../generated/DynamicsEntityDatasetTests.java | 66 - ...amicsEntityDatasetTypePropertiesTests.java | 22 - .../generated/DynamicsSourceTests.java | 28 - .../generated/EloquaObjectDatasetTests.java | 62 - .../generated/EloquaSourceTests.java | 29 - .../generated/EntityReferenceTests.java | 30 - .../EnvironmentVariableSetupTests.java | 29 - ...nmentVariableSetupTypePropertiesTests.java | 29 - .../generated/ExcelDatasetTests.java | 76 - .../ExcelDatasetTypePropertiesTests.java | 50 - .../generated/ExcelSourceTests.java | 45 - ...lowActivityTypePropertiesComputeTests.java | 25 - .../ExecutePipelineActivityPolicyTests.java | 41 - .../ExecutePipelineActivityTests.java | 85 - ...tePipelineActivityTypePropertiesTests.java | 49 - .../generated/ExecutionActivityTests.java | 94 - .../generated/ExportSettingsTests.java | 37 - .../ExposureControlBatchRequestTests.java | 31 - ...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 | 72 - ...eByResourceGroupWithResponseMockTests.java | 34 - .../generated/FactoryIdentityTests.java | 42 - .../FactoryRepoConfigurationTests.java | 41 - .../generated/FactoryRepoUpdateTests.java | 45 - .../FactoryUpdateParametersTests.java | 52 - .../FactoryUpdatePropertiesTests.java | 27 - .../FactoryVstsConfigurationTests.java | 47 - .../generated/FileServerLocationTests.java | 24 - .../FileServerReadSettingsTests.java | 34 - .../FileServerWriteSettingsTests.java | 28 - .../generated/FileShareDatasetTests.java | 79 - .../FileShareDatasetTypePropertiesTests.java | 48 - .../generated/FileSystemSinkTests.java | 29 - .../generated/FileSystemSourceTests.java | 28 - .../generated/FilterActivityTests.java | 83 - .../FilterActivityTypePropertiesTests.java | 31 - .../datafactory/generated/FlowletTests.java | 272 -- .../generated/FlowletTypePropertiesTests.java | 243 -- .../generated/ForEachActivityTests.java | 180 - .../ForEachActivityTypePropertiesTests.java | 134 - .../generated/FormatReadSettingsTests.java | 38 - .../generated/FormatWriteSettingsTests.java | 38 - .../generated/FtpReadSettingsTests.java | 33 - .../generated/FtpServerLocationTests.java | 24 - .../GenericDatasetTypePropertiesTests.java | 22 - ...taFactoryOperationStatusResponseTests.java | 41 - .../generated/GetMetadataActivityTests.java | 107 - ...etMetadataActivityTypePropertiesTests.java | 52 - .../GetSsisObjectMetadataRequestTests.java | 25 - .../GlobalParameterListResponseTests.java | 57 - .../GlobalParameterResourceInnerTests.java | 46 - .../GlobalParameterSpecificationTests.java | 27 - ...rsCreateOrUpdateWithResponseMockTests.java | 59 - ...ParametersDeleteWithResponseMockTests.java | 33 - ...balParametersGetWithResponseMockTests.java | 41 - ...lobalParametersListByFactoryMockTests.java | 41 - .../GoogleAdWordsObjectDatasetTests.java | 60 - .../generated/GoogleAdWordsSourceTests.java | 29 - ...gleBigQueryDatasetTypePropertiesTests.java | 26 - .../GoogleBigQueryObjectDatasetTests.java | 68 - .../generated/GoogleBigQuerySourceTests.java | 29 - ...eBigQueryV2DatasetTypePropertiesTests.java | 24 - .../GoogleBigQueryV2ObjectDatasetTests.java | 64 - .../GoogleBigQueryV2SourceTests.java | 29 - .../GoogleCloudStorageLocationTests.java | 26 - .../GoogleCloudStorageReadSettingsTests.java | 35 - .../GreenplumDatasetTypePropertiesTests.java | 26 - .../generated/GreenplumSourceTests.java | 29 - .../generated/GreenplumTableDatasetTests.java | 67 - .../generated/HBaseObjectDatasetTests.java | 66 - .../generated/HBaseSourceTests.java | 29 - .../generated/HDInsightHiveActivityTests.java | 113 - ...nsightHiveActivityTypePropertiesTests.java | 68 - .../HDInsightMapReduceActivityTests.java | 116 - ...tMapReduceActivityTypePropertiesTests.java | 59 - .../generated/HDInsightPigActivityTests.java | 117 - ...InsightPigActivityTypePropertiesTests.java | 59 - .../HDInsightSparkActivityTests.java | 101 - ...sightSparkActivityTypePropertiesTests.java | 57 - .../HDInsightStreamingActivityTests.java | 130 - ...tStreamingActivityTypePropertiesTests.java | 63 - .../generated/HdfsLocationTests.java | 23 - .../generated/HdfsReadSettingsTests.java | 37 - .../generated/HdfsSourceTests.java | 31 - .../HiveDatasetTypePropertiesTests.java | 25 - .../generated/HiveObjectDatasetTests.java | 62 - .../generated/HiveSourceTests.java | 29 - .../generated/HttpDatasetTests.java | 71 - .../HttpDatasetTypePropertiesTests.java | 48 - .../generated/HttpReadSettingsTests.java | 29 - .../generated/HttpServerLocationTests.java | 25 - .../generated/HttpSourceTests.java | 27 - .../generated/HubspotObjectDatasetTests.java | 61 - .../generated/HubspotSourceTests.java | 29 - .../generated/IcebergDatasetTests.java | 66 - .../IcebergDatasetTypePropertiesTests.java | 41 - .../generated/IcebergSinkTests.java | 57 - .../generated/IcebergWriteSettingsTests.java | 23 - .../generated/IfConditionActivityTests.java | 224 -- ...fConditionActivityTypePropertiesTests.java | 188 - .../ImpalaDatasetTypePropertiesTests.java | 25 - .../generated/ImpalaObjectDatasetTests.java | 62 - .../generated/ImpalaSourceTests.java | 29 - .../generated/ImportSettingsTests.java | 37 - .../generated/InformixSinkTests.java | 29 - .../generated/InformixSourceTests.java | 29 - .../generated/InformixTableDatasetTests.java | 64 - ...formixTableDatasetTypePropertiesTests.java | 22 - ...egrationRuntimeComputePropertiesTests.java | 109 - ...ionRuntimeCustomerVirtualNetworkTests.java | 26 - ...owPropertiesCustomPropertiesItemTests.java | 29 - ...grationRuntimeDataFlowPropertiesTests.java | 64 - ...rationRuntimeDataProxyPropertiesTests.java | 47 - .../IntegrationRuntimeDebugResourceTests.java | 45 - .../IntegrationRuntimeListResponseTests.java | 64 - ...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 | 41 - ...workDependenciesCategoryEndpointTests.java | 54 - ...tworkDependenciesEndpointDetailsTests.java | 28 - ...boundNetworkDependenciesEndpointTests.java | 33 - ...pendenciesEndpointsResponseInnerTests.java | 54 - .../IntegrationRuntimeReferenceTests.java | 41 - .../IntegrationRuntimeResourceInnerTests.java | 45 - ...rationRuntimeStatusResponseInnerTests.java | 40 - .../IntegrationRuntimeStatusTests.java | 38 - .../generated/IntegrationRuntimeTests.java | 41 - ...IntegrationRuntimeVNetPropertiesTests.java | 51 - ...tegrationRuntimeWithResponseMockTests.java | 43 - ...esCreateOrUpdateWithResponseMockTests.java | 59 - ...onRuntimesDeleteWithResponseMockTests.java | 33 - ...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 | 34 - .../generated/JiraObjectDatasetTests.java | 60 - .../generated/JiraSourceTests.java | 29 - .../generated/JsonDatasetTests.java | 74 - .../JsonDatasetTypePropertiesTests.java | 46 - .../generated/JsonFormatTests.java | 29 - .../generated/JsonReadSettingsTests.java | 39 - .../datafactory/generated/JsonSinkTests.java | 54 - .../generated/JsonSourceTests.java | 49 - .../generated/JsonWriteSettingsTests.java | 23 - .../generated/LakeHouseLocationTests.java | 23 - .../generated/LakeHouseReadSettingsTests.java | 33 - .../generated/LakeHouseTableDatasetTests.java | 62 - ...eHouseTableDatasetTypePropertiesTests.java | 24 - .../generated/LakeHouseTableSinkTests.java | 31 - .../generated/LakeHouseTableSourceTests.java | 29 - .../LakeHouseWriteSettingsTests.java | 29 - .../LinkedIntegrationRuntimeRequestTests.java | 26 - .../LinkedIntegrationRuntimeTests.java | 23 - .../LinkedServiceDebugResourceTests.java | 64 - .../LinkedServiceListResponseTests.java | 85 - .../LinkedServiceReferenceTests.java | 42 - .../LinkedServiceResourceInnerTests.java | 62 - .../generated/LinkedServiceTests.java | 61 - ...esCreateOrUpdateWithResponseMockTests.java | 79 - ...edServicesDeleteWithResponseMockTests.java | 34 - ...inkedServicesGetWithResponseMockTests.java | 44 - .../LinkedServicesListByFactoryMockTests.java | 45 - .../generated/LogLocationSettingsTests.java | 44 - .../generated/LogSettingsTests.java | 53 - .../generated/LogStorageSettingsTests.java | 47 - .../generated/LookupActivityTests.java | 106 - .../LookupActivityTypePropertiesTests.java | 51 - .../generated/MagentoObjectDatasetTests.java | 60 - .../generated/MagentoSourceTests.java | 29 - .../ManagedIdentityCredentialTests.java | 31 - .../ManagedIdentityTypePropertiesTests.java | 25 - ...nagedPrivateEndpointListResponseTests.java | 78 - ...agedPrivateEndpointResourceInnerTests.java | 54 - .../ManagedPrivateEndpointTests.java | 50 - ...tsCreateOrUpdateWithResponseMockTests.java | 66 - ...eEndpointsDeleteWithResponseMockTests.java | 35 - ...vateEndpointsGetWithResponseMockTests.java | 42 - ...rivateEndpointsListByFactoryMockTests.java | 42 - ...anagedVirtualNetworkListResponseTests.java | 56 - .../ManagedVirtualNetworkReferenceTests.java | 31 - ...nagedVirtualNetworkResourceInnerTests.java | 43 - .../generated/ManagedVirtualNetworkTests.java | 38 - ...ksCreateOrUpdateWithResponseMockTests.java | 58 - ...rtualNetworksGetWithResponseMockTests.java | 39 - ...VirtualNetworksListByFactoryMockTests.java | 39 - .../MapperAttributeMappingTests.java | 72 - .../MapperAttributeMappingsTests.java | 75 - .../MapperAttributeReferenceTests.java | 37 - .../MapperConnectionReferenceTests.java | 30 - .../generated/MapperConnectionTests.java | 63 - .../MapperDslConnectorPropertiesTests.java | 27 - .../MapperPolicyRecurrenceTests.java | 29 - .../generated/MapperPolicyTests.java | 33 - .../MapperSourceConnectionsInfoTests.java | 79 - .../generated/MapperTablePropertiesTests.java | 38 - .../generated/MapperTableSchemaTests.java | 27 - .../generated/MapperTableTests.java | 41 - .../MapperTargetConnectionsInfoTests.java | 175 - .../generated/MappingDataFlowTests.java | 228 -- .../MappingDataFlowTypePropertiesTests.java | 197 - .../generated/MariaDBSourceTests.java | 29 - .../generated/MariaDBTableDatasetTests.java | 60 - .../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 | 23 - .../MongoDbAtlasLinkedServiceTests.java | 66 - ...AtlasLinkedServiceTypePropertiesTests.java | 26 - .../generated/MongoDbAtlasSinkTests.java | 29 - .../generated/MongoDbAtlasSourceTests.java | 50 - .../MongoDbCollectionDatasetTests.java | 60 - ...bCollectionDatasetTypePropertiesTests.java | 23 - .../MongoDbCursorMethodsPropertiesTests.java | 41 - .../generated/MongoDbSourceTests.java | 28 - .../MongoDbV2CollectionDatasetTests.java | 63 - ...2CollectionDatasetTypePropertiesTests.java | 23 - .../MongoDbV2LinkedServiceTests.java | 58 - ...oDbV2LinkedServiceTypePropertiesTests.java | 24 - .../generated/MongoDbV2SinkTests.java | 29 - .../generated/MongoDbV2SourceTests.java | 50 - .../MultiplePipelineTriggerTests.java | 65 - .../generated/MySqlSourceTests.java | 29 - .../generated/MySqlTableDatasetTests.java | 63 - .../MySqlTableDatasetTypePropertiesTests.java | 22 - .../NetezzaPartitionSettingsTests.java | 25 - .../generated/NetezzaSourceTests.java | 34 - .../generated/NetezzaTableDatasetTests.java | 68 - ...etezzaTableDatasetTypePropertiesTests.java | 25 - .../generated/NotebookParameterTests.java | 27 - .../generated/ODataResourceDatasetTests.java | 65 - ...ataResourceDatasetTypePropertiesTests.java | 22 - .../generated/ODataSourceTests.java | 29 - .../datafactory/generated/OdbcSinkTests.java | 29 - .../generated/OdbcSourceTests.java | 29 - .../generated/OdbcTableDatasetTests.java | 60 - .../OdbcTableDatasetTypePropertiesTests.java | 22 - .../generated/Office365DatasetTests.java | 66 - .../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 | 65 - .../OracleServiceCloudSourceTests.java | 29 - .../generated/OracleSinkTests.java | 29 - .../generated/OracleSourceTests.java | 35 - .../generated/OracleTableDatasetTests.java | 65 - ...OracleTableDatasetTypePropertiesTests.java | 25 - .../datafactory/generated/OrcFormatTests.java | 23 - .../datafactory/generated/OrcSinkTests.java | 53 - .../datafactory/generated/OrcSourceTests.java | 45 - .../generated/OrcWriteSettingsTests.java | 24 - .../generated/PackageStoreTests.java | 37 - .../ParameterSpecificationTests.java | 27 - .../generated/ParquetFormatTests.java | 23 - .../generated/ParquetReadSettingsTests.java | 39 - .../generated/ParquetSinkTests.java | 54 - .../generated/ParquetSourceTests.java | 49 - .../generated/ParquetWriteSettingsTests.java | 24 - .../generated/PaypalObjectDatasetTests.java | 62 - .../generated/PaypalSourceTests.java | 29 - .../PhoenixDatasetTypePropertiesTests.java | 25 - .../generated/PhoenixObjectDatasetTests.java | 65 - .../generated/PhoenixSourceTests.java | 29 - .../PipelineElapsedTimeMetricPolicyTests.java | 22 - ...neExternalComputeScalePropertiesTests.java | 48 - .../generated/PipelineFolderTests.java | 24 - .../generated/PipelineListResponseTests.java | 167 - .../generated/PipelinePolicyTests.java | 24 - .../generated/PipelineReferenceTests.java | 29 - .../generated/PipelineResourceInnerTests.java | 107 - .../generated/PipelineRunInnerTests.java | 54 - .../generated/PipelineRunInvokedByTests.java | 23 - ...pelineRunsCancelWithResponseMockTests.java | 34 - .../PipelineRunsGetWithResponseMockTests.java | 37 - .../datafactory/generated/PipelineTests.java | 119 - ...esCreateOrUpdateWithResponseMockTests.java | 161 - ...pelinesCreateRunWithResponseMockTests.java | 53 - .../PipelinesDeleteWithResponseMockTests.java | 33 - .../PipelinesGetWithResponseMockTests.java | 54 - .../PipelinesListByFactoryMockTests.java | 57 - .../generated/PolybaseSettingsTests.java | 45 - .../generated/PostgreSqlSourceTests.java | 29 - .../PostgreSqlTableDatasetTests.java | 69 - ...greSqlTableDatasetTypePropertiesTests.java | 26 - .../generated/PostgreSqlV2SourceTests.java | 29 - .../PostgreSqlV2TableDatasetTests.java | 70 - ...eSqlV2TableDatasetTypePropertiesTests.java | 24 - .../generated/PowerQuerySinkMappingTests.java | 85 - .../generated/PowerQuerySinkTests.java | 77 - .../generated/PowerQuerySourceTests.java | 72 - .../PowerQueryTypePropertiesTests.java | 81 - .../PrestoDatasetTypePropertiesTests.java | 25 - .../generated/PrestoObjectDatasetTests.java | 63 - .../generated/PrestoSourceTests.java | 29 - ...ointConnectionsListByFactoryMockTests.java | 45 - ...teEndpointConnectionListResponseTests.java | 62 - ...nsCreateOrUpdateWithResponseMockTests.java | 53 - ...OperationsDeleteWithResponseMockTests.java | 34 - ...ionOperationsGetWithResponseMockTests.java | 43 - ...eEndpointConnectionResourceInnerTests.java | 41 - .../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 | 31 - .../generated/PurviewConfigurationTests.java | 25 - ...eryDataFlowDebugSessionsResponseTests.java | 101 - .../QuickBooksObjectDatasetTests.java | 64 - .../generated/QuickBooksSourceTests.java | 29 - .../RecurrenceScheduleOccurrenceTests.java | 45 - .../generated/RecurrenceScheduleTests.java | 61 - .../RedirectIncompatibleRowSettingsTests.java | 40 - .../RedshiftUnloadSettingsTests.java | 45 - .../generated/RelationalSourceTests.java | 28 - .../RelationalTableDatasetTests.java | 61 - ...tionalTableDatasetTypePropertiesTests.java | 23 - .../RemotePrivateEndpointConnectionTests.java | 36 - .../RerunTumblingWindowTriggerTests.java | 39 - ...blingWindowTriggerTypePropertiesTests.java | 35 - .../ResponsysObjectDatasetTests.java | 61 - .../generated/ResponsysSourceTests.java | 29 - .../generated/RestResourceDatasetTests.java | 65 - ...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 | 70 - .../SalesforceMarketingCloudSourceTests.java | 30 - .../SalesforceObjectDatasetTests.java | 62 - ...forceObjectDatasetTypePropertiesTests.java | 23 - ...esforceServiceCloudObjectDatasetTests.java | 64 - ...CloudObjectDatasetTypePropertiesTests.java | 24 - .../SalesforceServiceCloudSinkTests.java | 35 - .../SalesforceServiceCloudSourceTests.java | 30 - ...forceServiceCloudV2ObjectDatasetTests.java | 62 - ...oudV2ObjectDatasetTypePropertiesTests.java | 25 - .../SalesforceServiceCloudV2SinkTests.java | 35 - .../SalesforceServiceCloudV2SourceTests.java | 31 - .../generated/SalesforceSinkTests.java | 35 - .../generated/SalesforceSourceTests.java | 30 - .../SalesforceV2ObjectDatasetTests.java | 67 - ...rceV2ObjectDatasetTypePropertiesTests.java | 25 - .../generated/SalesforceV2SinkTests.java | 35 - .../generated/SalesforceV2SourceTests.java | 32 - .../generated/SapBwCubeDatasetTests.java | 62 - .../generated/SapBwSourceTests.java | 29 - ...pCloudForCustomerResourceDatasetTests.java | 66 - ...merResourceDatasetTypePropertiesTests.java | 23 - .../SapCloudForCustomerSinkTests.java | 34 - .../SapCloudForCustomerSourceTests.java | 30 - .../generated/SapEccResourceDatasetTests.java | 64 - ...EccResourceDatasetTypePropertiesTests.java | 23 - .../generated/SapEccSourceTests.java | 30 - .../SapHanaPartitionSettingsTests.java | 22 - .../generated/SapHanaSourceTests.java | 33 - .../generated/SapHanaTableDatasetTests.java | 66 - ...apHanaTableDatasetTypePropertiesTests.java | 24 - .../generated/SapOdpResourceDatasetTests.java | 65 - ...OdpResourceDatasetTypePropertiesTests.java | 24 - .../generated/SapOdpSourceTests.java | 32 - .../generated/SapOpenHubSourceTests.java | 32 - .../SapOpenHubTableDatasetTests.java | 67 - ...penHubTableDatasetTypePropertiesTests.java | 26 - .../SapTablePartitionSettingsTests.java | 26 - .../SapTableResourceDatasetTests.java | 64 - ...bleResourceDatasetTypePropertiesTests.java | 23 - .../generated/SapTableSourceTests.java | 41 - .../ScheduleTriggerRecurrenceTests.java | 82 - .../generated/ScheduleTriggerTests.java | 109 - .../ScheduleTriggerTypePropertiesTests.java | 83 - .../generated/ScriptActionTests.java | 33 - .../ScriptActivityParameterTests.java | 36 - .../ScriptActivityScriptBlockTests.java | 46 - .../generated/ScriptActivityTests.java | 143 - ...ctivityTypePropertiesLogSettingsTests.java | 54 - .../ScriptActivityTypePropertiesTests.java | 87 - .../generated/SecretBaseTests.java | 21 - .../SecureInputOutputPolicyTests.java | 27 - .../generated/SecureStringTests.java | 25 - ...cyTumblingWindowTriggerReferenceTests.java | 29 - ...ostedIntegrationRuntimeNodeInnerTests.java | 50 - ...lfHostedIntegrationRuntimeStatusTests.java | 81 - ...ationRuntimeStatusTypePropertiesTests.java | 54 - .../ServiceNowObjectDatasetTests.java | 61 - .../generated/ServiceNowSourceTests.java | 29 - ...erviceNowV2DatasetTypePropertiesTests.java | 28 - .../ServiceNowV2ObjectDatasetTests.java | 64 - .../generated/ServiceNowV2SourceTests.java | 101 - .../generated/SetVariableActivityTests.java | 89 - ...etVariableActivityTypePropertiesTests.java | 30 - .../generated/SftpLocationTests.java | 23 - .../generated/SftpReadSettingsTests.java | 34 - .../generated/SftpWriteSettingsTests.java | 32 - ...tOnlineListDatasetTypePropertiesTests.java | 24 - ...rePointOnlineListResourceDatasetTests.java | 67 - .../SharePointOnlineListSourceTests.java | 28 - .../generated/ShopifyObjectDatasetTests.java | 62 - .../generated/ShopifySourceTests.java | 29 - .../generated/SkipErrorFileTests.java | 24 - .../generated/SnowflakeDatasetTests.java | 66 - .../SnowflakeDatasetTypePropertiesTests.java | 24 - .../SnowflakeExportCopyCommandTests.java | 41 - .../SnowflakeImportCopyCommandTests.java | 41 - .../generated/SnowflakeSinkTests.java | 48 - .../generated/SnowflakeSourceTests.java | 46 - .../generated/SnowflakeV2DatasetTests.java | 63 - .../generated/SnowflakeV2SinkTests.java | 49 - .../generated/SnowflakeV2SourceTests.java | 47 - ...gurationParametrizationReferenceTests.java | 29 - .../SparkDatasetTypePropertiesTests.java | 25 - .../generated/SparkObjectDatasetTests.java | 67 - .../generated/SparkSourceTests.java | 29 - .../generated/SqlDWSourceTests.java | 37 - .../generated/SqlMISourceTests.java | 38 - .../generated/SqlPartitionSettingsTests.java | 25 - ...rBaseLinkedServiceTypePropertiesTests.java | 42 - .../generated/SqlServerSourceTests.java | 38 - ...SqlServerStoredProcedureActivityTests.java | 96 - ...dProcedureActivityTypePropertiesTests.java | 25 - .../generated/SqlServerTableDatasetTests.java | 64 - ...ServerTableDatasetTypePropertiesTests.java | 26 - .../datafactory/generated/SqlSourceTests.java | 37 - .../generated/SquareObjectDatasetTests.java | 65 - .../generated/SquareSourceTests.java | 29 - .../generated/SsisChildPackageTests.java | 31 - .../SsisEnvironmentReferenceTests.java | 35 - .../generated/SsisEnvironmentTests.java | 66 - .../SsisExecutionParameterTests.java | 22 - .../generated/SsisFolderTests.java | 31 - ...sObjectMetadataListResponseInnerTests.java | 40 - ...bjectMetadataStatusResponseInnerTests.java | 37 - .../generated/SsisObjectMetadataTests.java | 31 - .../generated/SsisPackageTests.java | 79 - .../generated/SsisParameterTests.java | 59 - .../generated/SsisProjectTests.java | 126 - .../generated/SsisPropertyOverrideTests.java | 25 - .../generated/SsisVariableTests.java | 44 - .../generated/StagingSettingsTests.java | 46 - .../generated/StoreReadSettingsTests.java | 39 - .../generated/StoreWriteSettingsTests.java | 44 - .../SubResourceDebugResourceTests.java | 25 - .../generated/SwitchActivityTests.java | 332 -- .../SwitchActivityTypePropertiesTests.java | 139 - .../generated/SwitchCaseTests.java | 149 - .../generated/SybaseSourceTests.java | 29 - .../generated/SybaseTableDatasetTests.java | 61 - ...SybaseTableDatasetTypePropertiesTests.java | 22 - .../SynapseNotebookActivityTests.java | 136 - ...seNotebookActivityTypePropertiesTests.java | 75 - .../SynapseNotebookReferenceTests.java | 29 - .../SynapseSparkJobReferenceTests.java | 29 - .../generated/TabularSourceTests.java | 28 - .../generated/TabularTranslatorTests.java | 37 - .../generated/TarGZipReadSettingsTests.java | 23 - .../generated/TarReadSettingsTests.java | 23 - .../generated/TeradataImportCommandTests.java | 23 - .../TeradataPartitionSettingsTests.java | 25 - .../generated/TeradataSinkTests.java | 30 - .../generated/TeradataSourceTests.java | 34 - .../generated/TeradataTableDatasetTests.java | 61 - ...radataTableDatasetTypePropertiesTests.java | 24 - .../generated/TextFormatTests.java | 33 - .../generated/TransformationTests.java | 65 - .../TriggerDependencyReferenceTests.java | 31 - .../generated/TriggerListResponseTests.java | 52 - .../TriggerPipelineReferenceTests.java | 46 - .../generated/TriggerReferenceTests.java | 29 - .../generated/TriggerResourceInnerTests.java | 47 - .../generated/TriggerRunTests.java | 54 - ...riggerRunsCancelWithResponseMockTests.java | 34 - ...TriggerRunsRerunWithResponseMockTests.java | 33 - ...SubscriptionOperationStatusInnerTests.java | 23 - .../datafactory/generated/TriggerTests.java | 43 - ...rsCreateOrUpdateWithResponseMockTests.java | 61 - .../TriggersDeleteWithResponseMockTests.java | 33 - ...bscriptionStatusWithResponseMockTests.java | 37 - .../TriggersGetWithResponseMockTests.java | 40 - .../TriggersListByFactoryMockTests.java | 40 - .../generated/TriggersStartMockTests.java | 33 - .../generated/TriggersStopMockTests.java | 33 - .../TriggersSubscribeToEventsMockTests.java | 35 - ...riggersUnsubscribeFromEventsMockTests.java | 35 - ...WindowTriggerDependencyReferenceTests.java | 38 - .../generated/TumblingWindowTriggerTests.java | 77 - ...blingWindowTriggerTypePropertiesTests.java | 49 - .../TypeConversionSettingsTests.java | 30 - .../generated/UntilActivityTests.java | 112 - .../UntilActivityTypePropertiesTests.java | 77 - ...ateIntegrationRuntimeNodeRequestTests.java | 26 - .../UpdateIntegrationRuntimeRequestTests.java | 31 - .../generated/UserAccessPolicyTests.java | 38 - .../generated/UserPropertyTests.java | 25 - .../generated/ValidationActivityTests.java | 82 - ...ValidationActivityTypePropertiesTests.java | 47 - .../generated/VariableSpecificationTests.java | 28 - .../VerticaDatasetTypePropertiesTests.java | 26 - .../generated/VerticaSourceTests.java | 29 - .../generated/VerticaTableDatasetTests.java | 63 - .../generated/WaitActivityTests.java | 77 - .../WaitActivityTypePropertiesTests.java | 22 - .../generated/WarehouseSinkTests.java | 59 - .../generated/WarehouseSourceTests.java | 37 - .../generated/WarehouseTableDatasetTests.java | 62 - ...ehouseTableDatasetTypePropertiesTests.java | 24 - .../WebAnonymousAuthenticationTests.java | 23 - .../generated/WebLinkedServiceTests.java | 59 - .../WebLinkedServiceTypePropertiesTests.java | 23 - .../datafactory/generated/WebSourceTests.java | 27 - .../generated/WebTableDatasetTests.java | 62 - .../WebTableDatasetTypePropertiesTests.java | 24 - .../generated/WranglingDataFlowTests.java | 108 - .../generated/XeroObjectDatasetTests.java | 61 - .../generated/XeroSourceTests.java | 29 - .../generated/XmlDatasetTests.java | 71 - .../XmlDatasetTypePropertiesTests.java | 47 - .../generated/XmlReadSettingsTests.java | 44 - .../datafactory/generated/XmlSourceTests.java | 54 - .../ZipDeflateReadSettingsTests.java | 23 - .../generated/ZohoObjectDatasetTests.java | 62 - .../generated/ZohoSourceTests.java | 29 - 932 files changed, 7500 insertions(+), 46907 deletions(-) create mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleAuthenticationType.java rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ActivityRunsQueryByPipelineRunSyncSamples.java => ActivityRunsQueryByPipelineRunSamples.java} (91%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ChangeDataCaptureCreateOrUpdateSyncSamples.java => ChangeDataCaptureCreateOrUpdateSamples.java} (95%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ChangeDataCaptureDeleteSyncSamples.java => ChangeDataCaptureDeleteSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ChangeDataCaptureGetSyncSamples.java => ChangeDataCaptureGetSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ChangeDataCaptureListByFactorySyncSamples.java => ChangeDataCaptureListByFactorySamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ChangeDataCaptureStartSyncSamples.java => ChangeDataCaptureStartSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ChangeDataCaptureStatusSyncSamples.java => ChangeDataCaptureStatusSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ChangeDataCaptureStopSyncSamples.java => ChangeDataCaptureStopSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{CredentialOperationsCreateOrUpdateSyncSamples.java => CredentialOperationsCreateOrUpdateSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{CredentialOperationsDeleteSyncSamples.java => CredentialOperationsDeleteSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{CredentialOperationsGetSyncSamples.java => CredentialOperationsGetSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{CredentialOperationsListByFactorySyncSamples.java => CredentialOperationsListByFactorySamples.java} (86%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DataFlowDebugSessionAddDataFlowSyncSamples.java => DataFlowDebugSessionAddDataFlowSamples.java} (97%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DataFlowDebugSessionDeleteSyncSamples.java => DataFlowDebugSessionDeleteSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DataFlowDebugSessionQueryByFactorySyncSamples.java => DataFlowDebugSessionQueryByFactorySamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DataFlowsCreateOrUpdateSyncSamples.java => DataFlowsCreateOrUpdateSamples.java} (98%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DataFlowsDeleteSyncSamples.java => DataFlowsDeleteSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DataFlowsGetSyncSamples.java => DataFlowsGetSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DataFlowsListByFactorySyncSamples.java => DataFlowsListByFactorySamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DatasetsCreateOrUpdateSyncSamples.java => DatasetsCreateOrUpdateSamples.java} (97%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DatasetsDeleteSyncSamples.java => DatasetsDeleteSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DatasetsGetSyncSamples.java => DatasetsGetSamples.java} (91%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{DatasetsListByFactorySyncSamples.java => DatasetsListByFactorySamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ExposureControlGetFeatureValueByFactorySyncSamples.java => ExposureControlGetFeatureValueByFactorySamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ExposureControlGetFeatureValueSyncSamples.java => ExposureControlGetFeatureValueSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ExposureControlQueryFeatureValuesByFactorySyncSamples.java => ExposureControlQueryFeatureValuesByFactorySamples.java} (91%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesConfigureFactoryRepoSyncSamples.java => FactoriesConfigureFactoryRepoSamples.java} (93%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesCreateOrUpdateSyncSamples.java => FactoriesCreateOrUpdateSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesDeleteSyncSamples.java => FactoriesDeleteSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesGetByResourceGroupSyncSamples.java => FactoriesGetByResourceGroupSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesGetDataPlaneAccessSyncSamples.java => FactoriesGetDataPlaneAccessSamples.java} (91%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesGetGitHubAccessTokenSyncSamples.java => FactoriesGetGitHubAccessTokenSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesListByResourceGroupSyncSamples.java => FactoriesListByResourceGroupSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesListSyncSamples.java => FactoriesListSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{FactoriesUpdateSyncSamples.java => FactoriesUpdateSamples.java} (94%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{GlobalParametersCreateOrUpdateSyncSamples.java => GlobalParametersCreateOrUpdateSamples.java} (93%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{GlobalParametersDeleteSyncSamples.java => GlobalParametersDeleteSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{GlobalParametersGetSyncSamples.java => GlobalParametersGetSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{GlobalParametersListByFactorySyncSamples.java => GlobalParametersListByFactorySamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimeNodesDeleteSyncSamples.java => IntegrationRuntimeNodesDeleteSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimeNodesGetIpAddressSyncSamples.java => IntegrationRuntimeNodesGetIpAddressSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimeNodesGetSyncSamples.java => IntegrationRuntimeNodesGetSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimeNodesUpdateSyncSamples.java => IntegrationRuntimeNodesUpdateSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimeObjectMetadataGetSyncSamples.java => IntegrationRuntimeObjectMetadataGetSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples.java => IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java} (98%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesCreateOrUpdateSyncSamples.java => IntegrationRuntimesCreateOrUpdateSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesDeleteSyncSamples.java => IntegrationRuntimesDeleteSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesGetConnectionInfoSyncSamples.java => IntegrationRuntimesGetConnectionInfoSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesGetMonitoringDataSyncSamples.java => IntegrationRuntimesGetMonitoringDataSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesGetSyncSamples.java => IntegrationRuntimesGetSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesGetStatusSyncSamples.java => IntegrationRuntimesGetStatusSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesListAuthKeysSyncSamples.java => IntegrationRuntimesListAuthKeysSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesListByFactorySyncSamples.java => IntegrationRuntimesListByFactorySamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSyncSamples.java => IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java} (96%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesRegenerateAuthKeySyncSamples.java => IntegrationRuntimesRegenerateAuthKeySamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesRemoveLinksSyncSamples.java => IntegrationRuntimesRemoveLinksSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesSyncCredentialsSyncSamples.java => IntegrationRuntimesSyncCredentialsSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesUpdateSyncSamples.java => IntegrationRuntimesUpdateSamples.java} (91%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{IntegrationRuntimesUpgradeSyncSamples.java => IntegrationRuntimesUpgradeSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{LinkedServicesCreateOrUpdateSyncSamples.java => LinkedServicesCreateOrUpdateSamples.java} (96%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{LinkedServicesDeleteSyncSamples.java => LinkedServicesDeleteSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{LinkedServicesGetSyncSamples.java => LinkedServicesGetSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{LinkedServicesListByFactorySyncSamples.java => LinkedServicesListByFactorySamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ManagedPrivateEndpointsCreateOrUpdateSyncSamples.java => ManagedPrivateEndpointsCreateOrUpdateSamples.java} (93%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ManagedPrivateEndpointsDeleteSyncSamples.java => ManagedPrivateEndpointsDeleteSamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ManagedPrivateEndpointsGetSyncSamples.java => ManagedPrivateEndpointsGetSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ManagedPrivateEndpointsListByFactorySyncSamples.java => ManagedPrivateEndpointsListByFactorySamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ManagedVirtualNetworksCreateOrUpdateSyncSamples.java => ManagedVirtualNetworksCreateOrUpdateSamples.java} (92%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ManagedVirtualNetworksGetSyncSamples.java => ManagedVirtualNetworksGetSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{ManagedVirtualNetworksListByFactorySyncSamples.java => ManagedVirtualNetworksListByFactorySamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{OperationsListSyncSamples.java => OperationsListSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelineRunsCancelSyncSamples.java => PipelineRunsCancelSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelineRunsGetSyncSamples.java => PipelineRunsGetSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelineRunsQueryByFactorySyncSamples.java => PipelineRunsQueryByFactorySamples.java} (93%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelinesCreateOrUpdateSyncSamples.java => PipelinesCreateOrUpdateSamples.java} (98%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelinesCreateRunSyncSamples.java => PipelinesCreateRunSamples.java} (94%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelinesDeleteSyncSamples.java => PipelinesDeleteSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelinesGetSyncSamples.java => PipelinesGetSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PipelinesListByFactorySyncSamples.java => PipelinesListByFactorySamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PrivateEndPointConnectionsListByFactorySyncSamples.java => PrivateEndPointConnectionsListByFactorySamples.java} (86%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples.java => PrivateEndpointConnectionOperationCreateOrUpdateSamples.java} (98%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PrivateEndpointConnectionOperationDeleteSyncSamples.java => PrivateEndpointConnectionOperationDeleteSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PrivateEndpointConnectionOperationGetSyncSamples.java => PrivateEndpointConnectionOperationGetSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{PrivateLinkResourcesGetSyncSamples.java => PrivateLinkResourcesGetSamples.java} (89%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggerRunsCancelSyncSamples.java => TriggerRunsCancelSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggerRunsQueryByFactorySyncSamples.java => TriggerRunsQueryByFactorySamples.java} (93%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggerRunsRerunSyncSamples.java => TriggerRunsRerunSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggersCreateOrUpdateSyncSamples.java => TriggersCreateOrUpdateSamples.java} (97%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggersDeleteSyncSamples.java => TriggersDeleteSamples.java} (90%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggersGetEventSubscriptionStatusSyncSamples.java => TriggersGetEventSubscriptionStatusSamples.java} (87%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggersGetSyncSamples.java => TriggersGetSamples.java} (91%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggersListByFactorySyncSamples.java => TriggersListByFactorySamples.java} (88%) rename sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/{TriggersQueryByFactorySyncSamples.java => TriggersQueryByFactorySamples.java} (90%) 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/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/ExecuteDataFlowActivityTypePropertiesComputeTests.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/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/IcebergDatasetTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTypePropertiesTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergSinkTests.java delete mode 100644 sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergWriteSettingsTests.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/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/ServiceNowV2DatasetTypePropertiesTests.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/SqlServerBaseLinkedServiceTypePropertiesTests.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/SsisEnvironmentTests.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/SsisPackageTests.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/TeradataImportCommandTests.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/TeradataSinkTests.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 ebcffa68fe80..6f9b5368c840 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md @@ -1,14 +1,48 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2025-04-30) + +- 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 -### Breaking Changes +* `models.AmazonRdsForOracleAuthenticationType` was added + +#### `models.AmazonRdsForOracleLinkedService` was modified + +* `cryptoChecksumClient()` was added +* `withEncryptionClient(java.lang.Object)` was added +* `fetchSize()` was added +* `withInitialLobFetchSize(java.lang.Object)` was added +* `encryptionTypesClient()` was added +* `cryptoChecksumTypesClient()` was added +* `supportV1DataTypes()` was added +* `withStatementCacheSize(java.lang.Object)` was added +* `withFetchSize(java.lang.Object)` was added +* `username()` was added +* `withCryptoChecksumTypesClient(java.lang.Object)` was added +* `enableBulkLoad()` was added +* `server()` was added +* `withEncryptionTypesClient(java.lang.Object)` was added +* `withFetchTswtzAsTimestamp(java.lang.Object)` was added +* `withAuthenticationType(models.AmazonRdsForOracleAuthenticationType)` was added +* `withServer(java.lang.Object)` was added +* `encryptionClient()` was added +* `statementCacheSize()` was added +* `withEnableBulkLoad(java.lang.Object)` was added +* `authenticationType()` was added +* `withSupportV1DataTypes(java.lang.Object)` was added +* `fetchTswtzAsTimestamp()` was added +* `withCryptoChecksumClient(java.lang.Object)` was added +* `withUsername(java.lang.Object)` was added +* `initializationString()` was added +* `withInitializationString(java.lang.Object)` was added +* `initialLobFetchSize()` was added -### Bugs Fixed +#### `models.AzureDatabricksLinkedService` was modified -### Other Changes +* `withDataSecurityMode(java.lang.Object)` was added +* `dataSecurityMode()` was added ## 1.1.0 (2025-04-10) diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/README.md b/sdk/datafactory/azure-resourcemanager-datafactory/README.md index cd3b1148f9fe..a8f3426705b9 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.1.0 + 1.2.0-beta.1 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md index 40812bb6077e..270be640be82 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md +++ b/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md @@ -3,1084 +3,1163 @@ ## ActivityRuns -- [QueryByPipelineRunSync](#activityruns_querybypipelinerunsync) +- [QueryByPipelineRun](#activityruns_querybypipelinerun) ## ChangeDataCapture -- [CreateOrUpdateSync](#changedatacapture_createorupdatesync) -- [DeleteSync](#changedatacapture_deletesync) -- [GetSync](#changedatacapture_getsync) -- [ListByFactorySync](#changedatacapture_listbyfactorysync) -- [StartSync](#changedatacapture_startsync) -- [StatusSync](#changedatacapture_statussync) -- [StopSync](#changedatacapture_stopsync) +- [CreateOrUpdate](#changedatacapture_createorupdate) +- [Delete](#changedatacapture_delete) +- [Get](#changedatacapture_get) +- [ListByFactory](#changedatacapture_listbyfactory) +- [Start](#changedatacapture_start) +- [Status](#changedatacapture_status) +- [Stop](#changedatacapture_stop) ## CredentialOperations -- [CreateOrUpdateSync](#credentialoperations_createorupdatesync) -- [DeleteSync](#credentialoperations_deletesync) -- [GetSync](#credentialoperations_getsync) -- [ListByFactorySync](#credentialoperations_listbyfactorysync) +- [CreateOrUpdate](#credentialoperations_createorupdate) +- [Delete](#credentialoperations_delete) +- [Get](#credentialoperations_get) +- [ListByFactory](#credentialoperations_listbyfactory) ## DataFlowDebugSession -- [AddDataFlowSync](#dataflowdebugsession_adddataflowsync) +- [AddDataFlow](#dataflowdebugsession_adddataflow) - [Create](#dataflowdebugsession_create) -- [DeleteSync](#dataflowdebugsession_deletesync) +- [Delete](#dataflowdebugsession_delete) - [ExecuteCommand](#dataflowdebugsession_executecommand) -- [QueryByFactorySync](#dataflowdebugsession_querybyfactorysync) +- [QueryByFactory](#dataflowdebugsession_querybyfactory) ## DataFlows -- [CreateOrUpdateSync](#dataflows_createorupdatesync) -- [DeleteSync](#dataflows_deletesync) -- [GetSync](#dataflows_getsync) -- [ListByFactorySync](#dataflows_listbyfactorysync) +- [CreateOrUpdate](#dataflows_createorupdate) +- [Delete](#dataflows_delete) +- [Get](#dataflows_get) +- [ListByFactory](#dataflows_listbyfactory) ## Datasets -- [CreateOrUpdateSync](#datasets_createorupdatesync) -- [DeleteSync](#datasets_deletesync) -- [GetSync](#datasets_getsync) -- [ListByFactorySync](#datasets_listbyfactorysync) +- [CreateOrUpdate](#datasets_createorupdate) +- [Delete](#datasets_delete) +- [Get](#datasets_get) +- [ListByFactory](#datasets_listbyfactory) ## ExposureControl -- [GetFeatureValueByFactorySync](#exposurecontrol_getfeaturevaluebyfactorysync) -- [GetFeatureValueSync](#exposurecontrol_getfeaturevaluesync) -- [QueryFeatureValuesByFactorySync](#exposurecontrol_queryfeaturevaluesbyfactorysync) +- [GetFeatureValue](#exposurecontrol_getfeaturevalue) +- [GetFeatureValueByFactory](#exposurecontrol_getfeaturevaluebyfactory) +- [QueryFeatureValuesByFactory](#exposurecontrol_queryfeaturevaluesbyfactory) ## Factories -- [ConfigureFactoryRepoSync](#factories_configurefactoryreposync) -- [CreateOrUpdateSync](#factories_createorupdatesync) -- [DeleteSync](#factories_deletesync) -- [GetByResourceGroupSync](#factories_getbyresourcegroupsync) -- [GetDataPlaneAccessSync](#factories_getdataplaneaccesssync) -- [GetGitHubAccessTokenSync](#factories_getgithubaccesstokensync) -- [ListByResourceGroupSync](#factories_listbyresourcegroupsync) -- [ListSync](#factories_listsync) -- [UpdateSync](#factories_updatesync) +- [ConfigureFactoryRepo](#factories_configurefactoryrepo) +- [CreateOrUpdate](#factories_createorupdate) +- [Delete](#factories_delete) +- [GetByResourceGroup](#factories_getbyresourcegroup) +- [GetDataPlaneAccess](#factories_getdataplaneaccess) +- [GetGitHubAccessToken](#factories_getgithubaccesstoken) +- [List](#factories_list) +- [ListByResourceGroup](#factories_listbyresourcegroup) +- [Update](#factories_update) ## GlobalParameters -- [CreateOrUpdateSync](#globalparameters_createorupdatesync) -- [DeleteSync](#globalparameters_deletesync) -- [GetSync](#globalparameters_getsync) -- [ListByFactorySync](#globalparameters_listbyfactorysync) +- [CreateOrUpdate](#globalparameters_createorupdate) +- [Delete](#globalparameters_delete) +- [Get](#globalparameters_get) +- [ListByFactory](#globalparameters_listbyfactory) ## IntegrationRuntimeNodes -- [DeleteSync](#integrationruntimenodes_deletesync) -- [GetIpAddressSync](#integrationruntimenodes_getipaddresssync) -- [GetSync](#integrationruntimenodes_getsync) -- [UpdateSync](#integrationruntimenodes_updatesync) +- [Delete](#integrationruntimenodes_delete) +- [Get](#integrationruntimenodes_get) +- [GetIpAddress](#integrationruntimenodes_getipaddress) +- [Update](#integrationruntimenodes_update) ## IntegrationRuntimeObjectMetadata -- [GetSync](#integrationruntimeobjectmetadata_getsync) +- [Get](#integrationruntimeobjectmetadata_get) - [Refresh](#integrationruntimeobjectmetadata_refresh) ## IntegrationRuntimes -- [CreateLinkedIntegrationRuntimeSync](#integrationruntimes_createlinkedintegrationruntimesync) -- [CreateOrUpdateSync](#integrationruntimes_createorupdatesync) -- [DeleteSync](#integrationruntimes_deletesync) -- [GetConnectionInfoSync](#integrationruntimes_getconnectioninfosync) -- [GetMonitoringDataSync](#integrationruntimes_getmonitoringdatasync) -- [GetStatusSync](#integrationruntimes_getstatussync) -- [GetSync](#integrationruntimes_getsync) -- [ListAuthKeysSync](#integrationruntimes_listauthkeyssync) -- [ListByFactorySync](#integrationruntimes_listbyfactorysync) -- [ListOutboundNetworkDependenciesEndpointsSync](#integrationruntimes_listoutboundnetworkdependenciesendpointssync) -- [RegenerateAuthKeySync](#integrationruntimes_regenerateauthkeysync) -- [RemoveLinksSync](#integrationruntimes_removelinkssync) +- [CreateLinkedIntegrationRuntime](#integrationruntimes_createlinkedintegrationruntime) +- [CreateOrUpdate](#integrationruntimes_createorupdate) +- [Delete](#integrationruntimes_delete) +- [Get](#integrationruntimes_get) +- [GetConnectionInfo](#integrationruntimes_getconnectioninfo) +- [GetMonitoringData](#integrationruntimes_getmonitoringdata) +- [GetStatus](#integrationruntimes_getstatus) +- [ListAuthKeys](#integrationruntimes_listauthkeys) +- [ListByFactory](#integrationruntimes_listbyfactory) +- [ListOutboundNetworkDependenciesEndpoints](#integrationruntimes_listoutboundnetworkdependenciesendpoints) +- [RegenerateAuthKey](#integrationruntimes_regenerateauthkey) +- [RemoveLinks](#integrationruntimes_removelinks) - [Start](#integrationruntimes_start) - [Stop](#integrationruntimes_stop) -- [SyncCredentialsSync](#integrationruntimes_synccredentialssync) -- [UpdateSync](#integrationruntimes_updatesync) -- [UpgradeSync](#integrationruntimes_upgradesync) +- [SyncCredentials](#integrationruntimes_synccredentials) +- [Update](#integrationruntimes_update) +- [Upgrade](#integrationruntimes_upgrade) ## LinkedServices -- [CreateOrUpdateSync](#linkedservices_createorupdatesync) -- [DeleteSync](#linkedservices_deletesync) -- [GetSync](#linkedservices_getsync) -- [ListByFactorySync](#linkedservices_listbyfactorysync) +- [CreateOrUpdate](#linkedservices_createorupdate) +- [Delete](#linkedservices_delete) +- [Get](#linkedservices_get) +- [ListByFactory](#linkedservices_listbyfactory) ## ManagedPrivateEndpoints -- [CreateOrUpdateSync](#managedprivateendpoints_createorupdatesync) -- [DeleteSync](#managedprivateendpoints_deletesync) -- [GetSync](#managedprivateendpoints_getsync) -- [ListByFactorySync](#managedprivateendpoints_listbyfactorysync) +- [CreateOrUpdate](#managedprivateendpoints_createorupdate) +- [Delete](#managedprivateendpoints_delete) +- [Get](#managedprivateendpoints_get) +- [ListByFactory](#managedprivateendpoints_listbyfactory) ## ManagedVirtualNetworks -- [CreateOrUpdateSync](#managedvirtualnetworks_createorupdatesync) -- [GetSync](#managedvirtualnetworks_getsync) -- [ListByFactorySync](#managedvirtualnetworks_listbyfactorysync) +- [CreateOrUpdate](#managedvirtualnetworks_createorupdate) +- [Get](#managedvirtualnetworks_get) +- [ListByFactory](#managedvirtualnetworks_listbyfactory) ## Operations -- [ListSync](#operations_listsync) +- [List](#operations_list) ## PipelineRuns -- [CancelSync](#pipelineruns_cancelsync) -- [GetSync](#pipelineruns_getsync) -- [QueryByFactorySync](#pipelineruns_querybyfactorysync) +- [Cancel](#pipelineruns_cancel) +- [Get](#pipelineruns_get) +- [QueryByFactory](#pipelineruns_querybyfactory) ## Pipelines -- [CreateOrUpdateSync](#pipelines_createorupdatesync) -- [CreateRunSync](#pipelines_createrunsync) -- [DeleteSync](#pipelines_deletesync) -- [GetSync](#pipelines_getsync) -- [ListByFactorySync](#pipelines_listbyfactorysync) +- [CreateOrUpdate](#pipelines_createorupdate) +- [CreateRun](#pipelines_createrun) +- [Delete](#pipelines_delete) +- [Get](#pipelines_get) +- [ListByFactory](#pipelines_listbyfactory) ## PrivateEndPointConnections -- [ListByFactorySync](#privateendpointconnections_listbyfactorysync) +- [ListByFactory](#privateendpointconnections_listbyfactory) ## PrivateEndpointConnectionOperation -- [CreateOrUpdateSync](#privateendpointconnectionoperation_createorupdatesync) -- [DeleteSync](#privateendpointconnectionoperation_deletesync) -- [GetSync](#privateendpointconnectionoperation_getsync) +- [CreateOrUpdate](#privateendpointconnectionoperation_createorupdate) +- [Delete](#privateendpointconnectionoperation_delete) +- [Get](#privateendpointconnectionoperation_get) ## PrivateLinkResources -- [GetSync](#privatelinkresources_getsync) +- [Get](#privatelinkresources_get) ## TriggerRuns -- [CancelSync](#triggerruns_cancelsync) -- [QueryByFactorySync](#triggerruns_querybyfactorysync) -- [RerunSync](#triggerruns_rerunsync) +- [Cancel](#triggerruns_cancel) +- [QueryByFactory](#triggerruns_querybyfactory) +- [Rerun](#triggerruns_rerun) ## Triggers -- [CreateOrUpdateSync](#triggers_createorupdatesync) -- [DeleteSync](#triggers_deletesync) -- [GetEventSubscriptionStatusSync](#triggers_geteventsubscriptionstatussync) -- [GetSync](#triggers_getsync) -- [ListByFactorySync](#triggers_listbyfactorysync) -- [QueryByFactorySync](#triggers_querybyfactorysync) +- [CreateOrUpdate](#triggers_createorupdate) +- [Delete](#triggers_delete) +- [Get](#triggers_get) +- [GetEventSubscriptionStatus](#triggers_geteventsubscriptionstatus) +- [ListByFactory](#triggers_listbyfactory) +- [QueryByFactory](#triggers_querybyfactory) - [Start](#triggers_start) - [Stop](#triggers_stop) - [SubscribeToEvents](#triggers_subscribetoevents) - [UnsubscribeFromEvents](#triggers_unsubscribefromevents) -### ActivityRuns_QueryByPipelineRunSync +### ActivityRuns_QueryByPipelineRun ```java /** - * Samples for Factories DeleteSync. + * Samples for IntegrationRuntimeNodes GetIpAddress. */ -public final class FactoriesDeleteSyncSamples { +public final class IntegrationRuntimeNodesGetIpAddressSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * IntegrationRuntimeNodes_GetIpAddress.json */ /** - * Sample code: Factories_Delete. + * Sample code: IntegrationRuntimeNodes_GetIpAddress. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories() - .deleteByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", - com.azure.core.util.Context.NONE); + public static void + integrationRuntimeNodesGetIpAddress(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimeNodes() + .getIpAddressWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + "Node_1", com.azure.core.util.Context.NONE); } } ``` -### ChangeDataCapture_CreateOrUpdateSync +### ChangeDataCapture_CreateOrUpdate ```java /** - * Samples for IntegrationRuntimes GetSync. + * Samples for IntegrationRuntimes GetConnectionInfo. */ -public final class IntegrationRuntimesGetSyncSamples { +public final class IntegrationRuntimesGetConnectionInfoSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_Get.json + * IntegrationRuntimes_GetConnectionInfo.json */ /** - * Sample code: IntegrationRuntimes_Get. + * Sample code: IntegrationRuntimes_GetConnectionInfo. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + public static void + integrationRuntimesGetConnectionInfo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { manager.integrationRuntimes() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, + .getConnectionInfoWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` -### ChangeDataCapture_DeleteSync +### ChangeDataCapture_Delete ```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLinkedService; +import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation; +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.DataFlowSource; +import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; +import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; +import com.azure.resourcemanager.datafactory.models.DatasetReference; +import com.azure.resourcemanager.datafactory.models.DelimitedTextDataset; +import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; +import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; +import com.azure.resourcemanager.datafactory.models.MappingDataFlow; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + /** - * Samples for PrivateEndPointConnections ListByFactorySync. + * Samples for DataFlowDebugSession AddDataFlow. */ -public final class PrivateEndPointConnectionsListByFactorySyncSamples { +public final class DataFlowDebugSessionAddDataFlowSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * PrivateEndPointConnections_ListByFactory.json + * DataFlowDebugSession_AddDataFlow.json */ /** - * Sample code: privateEndPointConnections_ListByFactory. + * Sample code: DataFlowDebugSession_AddDataFlow. * * @param manager Entry point to DataFactoryManager. */ - public static void - privateEndPointConnectionsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateEndPointConnections() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + public static void dataFlowDebugSessionAddDataFlow(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + manager.dataFlowDebugSessions() + .addDataFlowWithResponse("exampleResourceGroup", "exampleFactoryName", new DataFlowDebugPackage() + .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e") + .withDataFlow(new DataFlowDebugResource().withName("dataflow1") + .withProperties(new MappingDataFlow() + .withSources(Arrays.asList(new DataFlowSource().withName("source1") + .withDataset(new DatasetReference().withReferenceName("DelimitedText2")))) + .withSinks(Arrays.asList()) + .withTransformations(Arrays.asList()) + .withScript( + "\n\nsource(output(\n\t\tColumn_1 as string\n\t),\n\tallowSchemaDrift: true,\n\tvalidateSchema: false) ~> source1"))) + .withDatasets(Arrays.asList(new DatasetDebugResource().withName("dataset1") + .withProperties(new DelimitedTextDataset() + .withSchema(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("[{\"type\":\"String\"}]", Object.class, SerializerEncoding.JSON)) + .withLinkedServiceName(new LinkedServiceReference().withReferenceName("linkedService5")) + .withAnnotations(Arrays.asList()) + .withLocation(new AzureBlobStorageLocation().withFileName("Ansiencoding.csv") + .withContainer("dataflow-sample-data")) + .withColumnDelimiter(",") + .withQuoteChar("\"") + .withEscapeChar("\\") + .withFirstRowAsHeader(true)))) + .withLinkedServices(Arrays.asList(new LinkedServiceDebugResource().withName("linkedService1") + .withProperties(new AzureBlobStorageLinkedService().withAnnotations(Arrays.asList()) + .withConnectionString( + "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;") + .withEncryptedCredential("fakeTokenPlaceholder")))) + .withDebugSettings(new DataFlowDebugPackageDebugSettings() + .withSourceSettings(Arrays.asList( + new DataFlowSourceSetting().withSourceName("source1") + .withRowLimit(1000) + .withAdditionalProperties(mapOf()), + new DataFlowSourceSetting().withSourceName("source2") + .withRowLimit(222) + .withAdditionalProperties(mapOf()))) + .withParameters(mapOf("sourcePath", "Toy")) + .withDatasetParameters(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"Movies\":{\"path\":\"abc\"},\"Output\":{\"time\":\"def\"}}", Object.class, + SerializerEncoding.JSON))) + .withAdditionalProperties(mapOf()), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } ``` -### ChangeDataCapture_GetSync +### ChangeDataCapture_Get ```java -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -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.MappingDataFlow; -import java.util.Arrays; - /** - * Samples for DataFlows CreateOrUpdateSync. + * Samples for Factories ListByResourceGroup. */ -public final class DataFlowsCreateOrUpdateSyncSamples { +public final class FactoriesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * Factories_ListByResourceGroup.json */ /** - * Sample code: DataFlows_Create. + * Sample code: Factories_ListByResourceGroup. * * @param manager Entry point to DataFactoryManager. */ - public static void dataFlowsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlows() - .define("exampleDataFlow") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new MappingDataFlow().withDescription( - "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.") - .withSources(Arrays.asList( - new DataFlowSource().withName("USDCurrency") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), - new DataFlowSource().withName("CADSource") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("USDSink") - .withDataset(new DatasetReference().withReferenceName("USDOutput")), - new DataFlowSink().withName("CADSink") - .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,", - "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),", - "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(", - "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,", - "CurrentConversionRate as double", "),", "allowSchemaDrift: true,", - "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union", - "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", - "NewCurrencyColumn split(Country == 'USD',", - "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", - "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", - "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) - .create(); + public static void factoriesListByResourceGroup(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories().listByResourceGroup("exampleResourceGroup", com.azure.core.util.Context.NONE); } +} +``` +### ChangeDataCapture_ListByFactory + +```java +/** + * Samples for IntegrationRuntimes Start. + */ +public final class IntegrationRuntimesStartSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * IntegrationRuntimes_Start.json */ /** - * Sample code: DataFlows_Update. + * Sample code: IntegrationRuntimes_Start. * * @param manager Entry point to DataFactoryManager. */ - public static void dataFlowsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - DataFlowResource resource = manager.dataFlows() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new MappingDataFlow().withDescription( - "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.") - .withSources(Arrays.asList( - new DataFlowSource().withName("USDCurrency") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), - new DataFlowSource().withName("CADSource") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("USDSink") - .withDataset(new DatasetReference().withReferenceName("USDOutput")), - new DataFlowSink().withName("CADSink") - .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,", - "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),", - "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(", - "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,", - "CurrentConversionRate as double", "),", "allowSchemaDrift: true,", - "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union", - "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", - "NewCurrencyColumn split(Country == 'USD',", - "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", - "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", - "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) - .apply(); + public static void integrationRuntimesStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .start("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", + com.azure.core.util.Context.NONE); } } ``` -### ChangeDataCapture_ListByFactorySync +### ChangeDataCapture_Start ```java /** - * Samples for ManagedPrivateEndpoints GetSync. + * Samples for IntegrationRuntimes Stop. */ -public final class ManagedPrivateEndpointsGetSyncSamples { +public final class IntegrationRuntimesStopSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ManagedPrivateEndpoints_Get.json + * IntegrationRuntimes_Stop.json */ /** - * Sample code: ManagedPrivateEndpoints_Get. + * Sample code: IntegrationRuntimes_Stop. * * @param manager Entry point to DataFactoryManager. */ - public static void managedPrivateEndpointsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedPrivateEndpoints() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", - "exampleManagedPrivateEndpointName", null, com.azure.core.util.Context.NONE); + public static void integrationRuntimesStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .stop("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", + com.azure.core.util.Context.NONE); } } ``` -### ChangeDataCapture_StartSync +### ChangeDataCapture_Status ```java /** - * Samples for Factories ListByResourceGroupSync. + * Samples for IntegrationRuntimes SyncCredentials. */ -public final class FactoriesListByResourceGroupSyncSamples { +public final class IntegrationRuntimesSyncCredentialsSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Factories_ListByResourceGroup.json + * IntegrationRuntimes_SyncCredentials.json */ /** - * Sample code: Factories_ListByResourceGroup. + * Sample code: IntegrationRuntimes_SyncCredentials. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesListByResourceGroup(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().listByResourceGroup("exampleResourceGroup", com.azure.core.util.Context.NONE); + public static void + integrationRuntimesSyncCredentials(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .syncCredentialsWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + com.azure.core.util.Context.NONE); } } ``` -### ChangeDataCapture_StatusSync +### ChangeDataCapture_Stop ```java /** - * Samples for PipelineRuns CancelSync. + * Samples for Pipelines Delete. */ -public final class PipelineRunsCancelSyncSamples { +public final class PipelinesDeleteSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel. - * json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json */ /** - * Sample code: PipelineRuns_Cancel. + * Sample code: Pipelines_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelineRunsCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelineRuns() - .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "16ac5348-ff82-4f95-a80d-638c1d47b721", - null, com.azure.core.util.Context.NONE); + public static void pipelinesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.pipelines() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", + com.azure.core.util.Context.NONE); } } ``` -### ChangeDataCapture_StopSync +### CredentialOperations_CreateOrUpdate ```java -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; /** - * Samples for ManagedPrivateEndpoints CreateOrUpdateSync. + * Samples for IntegrationRuntimes CreateOrUpdate. */ -public final class ManagedPrivateEndpointsCreateOrUpdateSyncSamples { +public final class IntegrationRuntimesCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ManagedPrivateEndpoints_Create.json + * IntegrationRuntimes_Create.json */ /** - * Sample code: ManagedVirtualNetworks_Create. + * Sample code: IntegrationRuntimes_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedPrivateEndpoints() - .define("exampleManagedPrivateEndpointName") - .withExistingManagedVirtualNetwork("exampleResourceGroup", "exampleFactoryName", - "exampleManagedVirtualNetworkName") - .withProperties(new ManagedPrivateEndpoint().withFqdns(Arrays.asList()) - .withGroupId("blob") - .withPrivateLinkResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage") - .withAdditionalProperties(mapOf())) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + public static void integrationRuntimesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .define("exampleIntegrationRuntime") + .withExistingFactory("exampleResourceGroup", "exampleFactoryName") + .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime")) + .create(); } } ``` -### CredentialOperations_CreateOrUpdateSync +### CredentialOperations_Delete ```java /** - * Samples for ChangeDataCapture StartSync. + * Samples for IntegrationRuntimes GetStatus. */ -public final class ChangeDataCaptureStartSyncSamples { +public final class IntegrationRuntimesGetStatusSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ChangeDataCapture_Start.json + * IntegrationRuntimes_GetStatus.json */ /** - * Sample code: ChangeDataCapture_Start. + * Sample code: IntegrationRuntimes_GetStatus. * * @param manager Entry point to DataFactoryManager. */ - public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.changeDataCaptures() - .startWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", + public static void integrationRuntimesGetStatus(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .getStatusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` -### CredentialOperations_DeleteSync +### CredentialOperations_Get ```java /** - * Samples for PrivateEndpointConnectionOperation DeleteSync. + * Samples for PipelineRuns Get. */ -public final class PrivateEndpointConnectionOperationDeleteSyncSamples { +public final class PipelineRunsGetSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * DeletePrivateEndpointConnection.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json */ /** - * Sample code: Delete a private endpoint connection for a datafactory. + * Sample code: PipelineRuns_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void deleteAPrivateEndpointConnectionForADatafactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateEndpointConnectionOperations() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", + public static void pipelineRunsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.pipelineRuns() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", com.azure.core.util.Context.NONE); } } ``` -### CredentialOperations_GetSync +### CredentialOperations_ListByFactory ```java /** - * Samples for IntegrationRuntimes Start. + * Samples for Triggers Delete. */ -public final class IntegrationRuntimesStartSamples { +public final class TriggersDeleteSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_Start.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json */ /** - * Sample code: IntegrationRuntimes_Start. + * Sample code: Triggers_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .start("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", + public static void triggersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.triggers() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE); } } ``` -### CredentialOperations_ListByFactorySync +### DataFlowDebugSession_AddDataFlow ```java /** - * Samples for IntegrationRuntimes Stop. + * Samples for IntegrationRuntimes Upgrade. */ -public final class IntegrationRuntimesStopSamples { +public final class IntegrationRuntimesUpgradeSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_Stop.json + * IntegrationRuntimes_Upgrade.json */ /** - * Sample code: IntegrationRuntimes_Stop. + * Sample code: IntegrationRuntimes_Upgrade. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { manager.integrationRuntimes() - .stop("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", + .upgradeWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` -### DataFlowDebugSession_AddDataFlowSync +### DataFlowDebugSession_Create ```java -import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import java.util.Map; - /** - * Samples for GlobalParameters CreateOrUpdateSync. + * Samples for DataFlowDebugSession QueryByFactory. */ -public final class GlobalParametersCreateOrUpdateSyncSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * GlobalParameters_Create.json - */ - /** - * Sample code: GlobalParameters_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void globalParametersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.globalParameters() - .define("default") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties((Map) null) - .create(); - } - +public final class DataFlowDebugSessionQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * GlobalParameters_Update.json + * DataFlowDebugSession_QueryByFactory.json */ /** - * Sample code: GlobalParameters_Update. + * Sample code: DataFlowDebugSession_QueryByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void globalParametersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - GlobalParameterResource resource = manager.globalParameters() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().apply(); + public static void + dataFlowDebugSessionQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.dataFlowDebugSessions() + .queryByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### DataFlowDebugSession_Create +### DataFlowDebugSession_Delete ```java /** - * Samples for Triggers DeleteSync. + * Samples for LinkedServices Get. */ -public final class TriggersDeleteSyncSamples { +public final class LinkedServicesGetSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get. + * json */ /** - * Sample code: Triggers_Delete. + * Sample code: LinkedServices_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", + public static void linkedServicesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.linkedServices() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, com.azure.core.util.Context.NONE); } } ``` -### DataFlowDebugSession_DeleteSync +### DataFlowDebugSession_ExecuteCommand ```java /** - * Samples for PipelineRuns GetSync. + * Samples for Pipelines ListByFactory. */ -public final class PipelineRunsGetSyncSamples { +public final class PipelinesListByFactorySamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * Pipelines_ListByFactory.json */ /** - * Sample code: PipelineRuns_Get. + * Sample code: Pipelines_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelineRunsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelineRuns() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - com.azure.core.util.Context.NONE); + public static void pipelinesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.pipelines() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### DataFlowDebugSession_ExecuteCommand +### DataFlowDebugSession_QueryByFactory ```java +import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; +import com.azure.resourcemanager.datafactory.models.MapperPolicy; +import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; +import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; +import java.util.List; + /** - * Samples for LinkedServices GetSync. + * Samples for ChangeDataCapture CreateOrUpdate. */ -public final class LinkedServicesGetSyncSamples { +public final class ChangeDataCaptureCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get. - * json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * ChangeDataCapture_Create.json */ /** - * Sample code: LinkedServices_Get. + * Sample code: ChangeDataCapture_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void linkedServicesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.linkedServices() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, - com.azure.core.util.Context.NONE); + public static void changeDataCaptureCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.changeDataCaptures() + .define("exampleChangeDataCapture") + .withExistingFactory("exampleResourceGroup", "exampleFactoryName") + .withSourceConnectionsInfo((List) null) + .withTargetConnectionsInfo((List) null) + .withPolicy((MapperPolicy) null) + .withDescription( + "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings.") + .withAllowVNetOverride(false) + .create(); } -} -``` - -### DataFlowDebugSession_QueryByFactorySync - -```java -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.util.Arrays; -/** - * Samples for ExposureControl QueryFeatureValuesByFactorySync. - */ -public final class ExposureControlQueryFeatureValuesByFactorySyncSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ExposureControl_QueryFeatureValuesByFactory.json + * ChangeDataCapture_Update.json */ /** - * Sample code: ExposureControl_QueryFeatureValuesByFactory. + * Sample code: ChangeDataCapture_Update. * * @param manager Entry point to DataFactoryManager. */ - public static void - exposureControlQueryFeatureValuesByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.exposureControls() - .queryFeatureValuesByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", - new ExposureControlBatchRequest().withExposureControlRequests(Arrays.asList( - new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - new ExposureControlRequest().withFeatureName("ADFSampleFeature").withFeatureType("Feature"))), - com.azure.core.util.Context.NONE); + public static void changeDataCaptureUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + ChangeDataCaptureResource resource = manager.changeDataCaptures() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null, + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withDescription( + "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings.") + .withAllowVNetOverride(false) + .withStatus("Stopped") + .apply(); } } ``` -### DataFlows_CreateOrUpdateSync +### DataFlows_CreateOrUpdate ```java -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; - /** - * Samples for Factories GetGitHubAccessTokenSync. + * Samples for IntegrationRuntimes ListAuthKeys. */ -public final class FactoriesGetGitHubAccessTokenSyncSamples { +public final class IntegrationRuntimesListAuthKeysSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Factories_GetGitHubAccessToken.json + * IntegrationRuntimes_ListAuthKeys.json */ /** - * Sample code: Factories_GetGitHubAccessToken. + * Sample code: IntegrationRuntimes_ListAuthKeys. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesGetGitHubAccessToken(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories() - .getGitHubAccessTokenWithResponse("exampleResourceGroup", "exampleFactoryName", - new GitHubAccessTokenRequest().withGitHubAccessCode("fakeTokenPlaceholder") - .withGitHubClientId("some") - .withGitHubAccessTokenBaseUrl("fakeTokenPlaceholder"), + public static void + integrationRuntimesListAuthKeys(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .listAuthKeysWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` -### DataFlows_DeleteSync +### DataFlows_Delete ```java /** - * Samples for IntegrationRuntimes GetStatusSync. + * Samples for IntegrationRuntimes Get. */ -public final class IntegrationRuntimesGetStatusSyncSamples { +public final class IntegrationRuntimesGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_GetStatus.json + * IntegrationRuntimes_Get.json */ /** - * Sample code: IntegrationRuntimes_GetStatus. + * Sample code: IntegrationRuntimes_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesGetStatus(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + public static void integrationRuntimesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { manager.integrationRuntimes() - .getStatusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, com.azure.core.util.Context.NONE); } } ``` -### DataFlows_GetSync +### DataFlows_Get ```java +import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; +import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; + /** - * Samples for IntegrationRuntimes ListAuthKeysSync. + * Samples for IntegrationRuntimes Update. */ -public final class IntegrationRuntimesListAuthKeysSyncSamples { +public final class IntegrationRuntimesUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_ListAuthKeys.json + * IntegrationRuntimes_Update.json */ /** - * Sample code: IntegrationRuntimes_ListAuthKeys. + * Sample code: IntegrationRuntimes_Update. * * @param manager Entry point to DataFactoryManager. */ - public static void - integrationRuntimesListAuthKeys(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .listAuthKeysWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + public static void integrationRuntimesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + IntegrationRuntimeResource resource = manager.integrationRuntimes() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, + com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); } } ``` -### DataFlows_ListByFactorySync +### DataFlows_ListByFactory ```java /** - * Samples for DataFlows DeleteSync. + * Samples for ManagedVirtualNetworks ListByFactory. */ -public final class DataFlowsDeleteSyncSamples { +public final class ManagedVirtualNetworksListByFactorySamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * ManagedVirtualNetworks_ListByFactory.json */ /** - * Sample code: DataFlows_Delete. + * Sample code: ManagedVirtualNetworks_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void dataFlowsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlows() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", - com.azure.core.util.Context.NONE); + public static void + managedVirtualNetworksListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.managedVirtualNetworks() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### Datasets_CreateOrUpdateSync +### Datasets_CreateOrUpdate ```java /** - * Samples for DataFlows GetSync. + * Samples for Factories GetByResourceGroup. */ -public final class DataFlowsGetSyncSamples { +public final class FactoriesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json */ /** - * Sample code: DataFlows_Get. + * Sample code: Factories_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void dataFlowsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlows() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, + public static void factoriesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories() + .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, com.azure.core.util.Context.NONE); } } ``` -### Datasets_DeleteSync +### Datasets_Delete ```java -/** - * Samples for ManagedPrivateEndpoints DeleteSync. +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.datafactory.models.BlobSink; +import com.azure.resourcemanager.datafactory.models.BlobSource; +import com.azure.resourcemanager.datafactory.models.CopyActivity; +import com.azure.resourcemanager.datafactory.models.DatasetReference; +import com.azure.resourcemanager.datafactory.models.Expression; +import com.azure.resourcemanager.datafactory.models.ForEachActivity; +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.PipelinePolicy; +import com.azure.resourcemanager.datafactory.models.PipelineResource; +import com.azure.resourcemanager.datafactory.models.VariableSpecification; +import com.azure.resourcemanager.datafactory.models.VariableType; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Pipelines CreateOrUpdate. */ -public final class ManagedPrivateEndpointsDeleteSyncSamples { +public final class PipelinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ManagedPrivateEndpoints_Delete.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json */ /** - * Sample code: ManagedVirtualNetworks_Delete. + * Sample code: Pipelines_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void managedVirtualNetworksDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedPrivateEndpoints() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", - "exampleManagedPrivateEndpointName", com.azure.core.util.Context.NONE); + public static void pipelinesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + manager.pipelines() + .define("examplePipeline") + .withExistingFactory("exampleResourceGroup", "exampleFactoryName") + .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity") + .withIsSequential(true) + .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList")) + .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity") + .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") + .withParameters( + mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer")))) + .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") + .withParameters(mapOf("MyFileName", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class, + SerializerEncoding.JSON), + "MyFolderPath", "examplecontainer")))) + .withSource(new BlobSource()) + .withSink(new BlobSink()) + .withDataIntegrationUnits(32))))) + .withParameters(mapOf("JobId", new ParameterSpecification().withType(ParameterType.STRING), + "OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY))) + .withVariables(mapOf("TestVariableArray", new VariableSpecification().withType(VariableType.ARRAY))) + .withRunDimensions(mapOf("JobId", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.JobId\"}", Object.class, + SerializerEncoding.JSON))) + .withPolicy(new PipelinePolicy() + .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) + .create(); } -} -``` -### Datasets_GetSync - -```java -/** - * Samples for Operations ListSync. - */ -public final class OperationsListSyncSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json */ /** - * Sample code: Operations_List. + * Sample code: Pipelines_Update. * * @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); + public static void pipelinesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + PipelineResource resource = manager.pipelines() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withDescription("Example description") + .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity") + .withIsSequential(true) + .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList")) + .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity") + .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") + .withParameters( + mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer")))) + .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") + .withParameters(mapOf("MyFileName", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class, + SerializerEncoding.JSON), + "MyFolderPath", "examplecontainer")))) + .withSource(new BlobSource()) + .withSink(new BlobSink()) + .withDataIntegrationUnits(32))))) + .withParameters(mapOf("OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY))) + .withPolicy(new PipelinePolicy() + .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) + .apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } ``` -### Datasets_ListByFactorySync +### Datasets_Get ```java /** - * Samples for ManagedVirtualNetworks GetSync. + * Samples for Triggers UnsubscribeFromEvents. */ -public final class ManagedVirtualNetworksGetSyncSamples { +public final class TriggersUnsubscribeFromEventsSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ManagedVirtualNetworks_Get.json + * Triggers_UnsubscribeFromEvents.json */ /** - * Sample code: ManagedVirtualNetworks_Get. + * Sample code: Triggers_UnsubscribeFromEvents. * * @param manager Entry point to DataFactoryManager. */ - public static void managedVirtualNetworksGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedVirtualNetworks() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", null, + public static void triggersUnsubscribeFromEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.triggers() + .unsubscribeFromEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE); } } ``` -### ExposureControl_GetFeatureValueByFactorySync +### Datasets_ListByFactory ```java -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; +import com.azure.resourcemanager.datafactory.models.DataFlowResource; +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.MappingDataFlow; +import java.util.Arrays; /** - * Samples for IntegrationRuntimes CreateOrUpdateSync. + * Samples for DataFlows CreateOrUpdate. */ -public final class IntegrationRuntimesCreateOrUpdateSyncSamples { +public final class DataFlowsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_Create.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json */ /** - * Sample code: IntegrationRuntimes_Create. + * Sample code: DataFlows_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .define("exampleIntegrationRuntime") + public static void dataFlowsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.dataFlows() + .define("exampleDataFlow") .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime")) + .withProperties(new MappingDataFlow().withDescription( + "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.") + .withSources(Arrays.asList( + new DataFlowSource().withName("USDCurrency") + .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), + new DataFlowSource().withName("CADSource") + .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) + .withSinks(Arrays.asList( + new DataFlowSink().withName("USDSink") + .withDataset(new DatasetReference().withReferenceName("USDOutput")), + new DataFlowSink().withName("CADSink") + .withDataset(new DatasetReference().withReferenceName("CADOutput")))) + .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,", + "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),", + "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(", + "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,", + "CurrentConversionRate as double", "),", "allowSchemaDrift: true,", + "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union", + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", + "NewCurrencyColumn split(Country == 'USD',", + "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) .create(); } -} -``` -### ExposureControl_GetFeatureValueSync - -```java -/** - * Samples for Triggers UnsubscribeFromEvents. - */ -public final class TriggersUnsubscribeFromEventsSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Triggers_UnsubscribeFromEvents.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json */ /** - * Sample code: Triggers_UnsubscribeFromEvents. + * Sample code: DataFlows_Update. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersUnsubscribeFromEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers() - .unsubscribeFromEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", - com.azure.core.util.Context.NONE); + public static void dataFlowsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + DataFlowResource resource = manager.dataFlows() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new MappingDataFlow().withDescription( + "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.") + .withSources(Arrays.asList( + new DataFlowSource().withName("USDCurrency") + .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), + new DataFlowSource().withName("CADSource") + .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) + .withSinks(Arrays.asList( + new DataFlowSink().withName("USDSink") + .withDataset(new DatasetReference().withReferenceName("USDOutput")), + new DataFlowSink().withName("CADSink") + .withDataset(new DatasetReference().withReferenceName("CADOutput")))) + .withScriptLines(Arrays.asList("source(output(", "PreviousConversionRate as double,", + "Country as string,", "DateTime1 as string,", "CurrentConversionRate as double", "),", + "allowSchemaDrift: false,", "validateSchema: false) ~> USDCurrency", "source(output(", + "PreviousConversionRate as double,", "Country as string,", "DateTime1 as string,", + "CurrentConversionRate as double", "),", "allowSchemaDrift: true,", + "validateSchema: false) ~> CADSource", "USDCurrency, CADSource union(byName: true)~> Union", + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", + "NewCurrencyColumn split(Country == 'USD',", + "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"))) + .apply(); } } ``` -### ExposureControl_QueryFeatureValuesByFactorySync +### ExposureControl_GetFeatureValue ```java +import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; + /** - * Samples for PrivateLinkResources GetSync. + * Samples for IntegrationRuntimeObjectMetadata Get. */ -public final class PrivateLinkResourcesGetSyncSamples { +public final class IntegrationRuntimeObjectMetadataGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * GetPrivateLinkResources.json + * IntegrationRuntimeObjectMetadata_Get.json */ /** - * Sample code: Get private link resources of a site. + * Sample code: IntegrationRuntimeObjectMetadata_Get. * * @param manager Entry point to DataFactoryManager. */ public static void - getPrivateLinkResourcesOfASite(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateLinkResources() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + integrationRuntimeObjectMetadataGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimeObjectMetadatas() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "testactivityv2", + new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), com.azure.core.util.Context.NONE); } } ``` -### Factories_ConfigureFactoryRepoSync +### ExposureControl_GetFeatureValueByFactory ```java -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeyName; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; +import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; /** - * Samples for IntegrationRuntimes RegenerateAuthKeySync. + * Samples for IntegrationRuntimeNodes Update. */ -public final class IntegrationRuntimesRegenerateAuthKeySyncSamples { +public final class IntegrationRuntimeNodesUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_RegenerateAuthKey.json - */ - /** - * Sample code: IntegrationRuntimes_RegenerateAuthKey. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void - integrationRuntimesRegenerateAuthKey(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .regenerateAuthKeyWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", - new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), - com.azure.core.util.Context.NONE); - } -} -``` - -### Factories_CreateOrUpdateSync - -```java -/** - * Samples for Factories GetByResourceGroupSync. - */ -public final class FactoriesGetByResourceGroupSyncSamples { - /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json + * IntegrationRuntimeNodes_Update.json */ /** - * Sample code: Factories_Get. + * Sample code: IntegrationRuntimeNodes_Update. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories() - .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, - com.azure.core.util.Context.NONE); + public static void integrationRuntimeNodesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimeNodes() + .updateWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", + new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), com.azure.core.util.Context.NONE); } } ``` -### Factories_DeleteSync +### ExposureControl_QueryFeatureValuesByFactory ```java /** - * Samples for DataFlows ListByFactorySync. + * Samples for ManagedPrivateEndpoints Get. */ -public final class DataFlowsListByFactorySyncSamples { +public final class ManagedPrivateEndpointsGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * DataFlows_ListByFactory.json + * ManagedPrivateEndpoints_Get.json */ /** - * Sample code: DataFlows_ListByFactory. + * Sample code: ManagedPrivateEndpoints_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void dataFlowsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlows() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + public static void managedPrivateEndpointsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.managedPrivateEndpoints() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", + "exampleManagedPrivateEndpointName", null, com.azure.core.util.Context.NONE); } } ``` -### Factories_GetByResourceGroupSync +### Factories_ConfigureFactoryRepo ```java /** - * Samples for IntegrationRuntimeNodes DeleteSync. + * Samples for GlobalParameters Delete. */ -public final class IntegrationRuntimeNodesDeleteSyncSamples { +public final class GlobalParametersDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimeNodes_Delete.json + * GlobalParameters_Delete.json */ /** - * Sample code: IntegrationRuntimesNodes_Delete. + * Sample code: GlobalParameters_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void - integrationRuntimesNodesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimeNodes() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", + public static void globalParametersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.globalParameters() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE); } } ``` -### Factories_GetDataPlaneAccessSync +### Factories_CreateOrUpdate ```java import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; @@ -1088,9 +1167,9 @@ import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprova import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; /** - * Samples for PrivateEndpointConnectionOperation CreateOrUpdateSync. + * Samples for PrivateEndpointConnectionOperation CreateOrUpdate. */ -public final class PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples { +public final class PrivateEndpointConnectionOperationCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ApproveRejectPrivateEndpointConnection.json @@ -1116,321 +1195,203 @@ public final class PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples { } ``` -### Factories_GetGitHubAccessTokenSync - -```java -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import java.time.OffsetDateTime; - -/** - * Samples for ActivityRuns QueryByPipelineRunSync. - */ -public final class ActivityRunsQueryByPipelineRunSyncSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ActivityRuns_QueryByPipelineRun.json - */ - /** - * Sample code: ActivityRuns_QueryByPipelineRun. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void - activityRunsQueryByPipelineRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.activityRuns() - .queryByPipelineRunWithResponse("exampleResourceGroup", "exampleFactoryName", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")), - com.azure.core.util.Context.NONE); - } -} -``` - -### Factories_ListByResourceGroupSync - -```java -/** - * Samples for Pipelines ListByFactorySync. - */ -public final class PipelinesListByFactorySyncSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Pipelines_ListByFactory.json - */ - /** - * Sample code: Pipelines_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelines() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); - } -} -``` - -### Factories_ListSync - -```java -/** - * Samples for LinkedServices DeleteSync. - */ -public final class LinkedServicesDeleteSyncSamples { - /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete - * .json - */ - /** - * Sample code: LinkedServices_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.linkedServices() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", - com.azure.core.util.Context.NONE); - } -} -``` - -### Factories_UpdateSync +### Factories_Delete ```java -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLinkedService; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation; -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.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DelimitedTextDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for DataFlowDebugSession AddDataFlowSync. - */ -public final class DataFlowDebugSessionAddDataFlowSyncSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * DataFlowDebugSession_AddDataFlow.json - */ - /** - * Sample code: DataFlowDebugSession_AddDataFlow. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionAddDataFlow(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager.dataFlowDebugSessions() - .addDataFlowWithResponse("exampleResourceGroup", "exampleFactoryName", new DataFlowDebugPackage() - .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e") - .withDataFlow(new DataFlowDebugResource().withName("dataflow1") - .withProperties(new MappingDataFlow() - .withSources(Arrays.asList(new DataFlowSource().withName("source1") - .withDataset(new DatasetReference().withReferenceName("DelimitedText2")))) - .withSinks(Arrays.asList()) - .withTransformations(Arrays.asList()) - .withScript( - "\n\nsource(output(\n\t\tColumn_1 as string\n\t),\n\tallowSchemaDrift: true,\n\tvalidateSchema: false) ~> source1"))) - .withDatasets(Arrays.asList(new DatasetDebugResource().withName("dataset1") - .withProperties(new DelimitedTextDataset() - .withSchema(SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("[{\"type\":\"String\"}]", Object.class, SerializerEncoding.JSON)) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("linkedService5")) - .withAnnotations(Arrays.asList()) - .withLocation(new AzureBlobStorageLocation().withFileName("Ansiencoding.csv") - .withContainer("dataflow-sample-data")) - .withColumnDelimiter(",") - .withQuoteChar("\"") - .withEscapeChar("\\") - .withFirstRowAsHeader(true)))) - .withLinkedServices(Arrays.asList(new LinkedServiceDebugResource().withName("linkedService1") - .withProperties(new AzureBlobStorageLinkedService().withAnnotations(Arrays.asList()) - .withConnectionString( - "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;") - .withEncryptedCredential("fakeTokenPlaceholder")))) - .withDebugSettings(new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("source1") - .withRowLimit(1000) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("source2") - .withRowLimit(222) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("sourcePath", "Toy")) - .withDatasetParameters(SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"Movies\":{\"path\":\"abc\"},\"Output\":{\"time\":\"def\"}}", Object.class, - SerializerEncoding.JSON))) - .withAdditionalProperties(mapOf()), com.azure.core.util.Context.NONE); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} -``` - -### GlobalParameters_CreateOrUpdateSync - -```java -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; /** - * Samples for ManagedVirtualNetworks CreateOrUpdateSync. + * Samples for Factories GetGitHubAccessToken. */ -public final class ManagedVirtualNetworksCreateOrUpdateSyncSamples { +public final class FactoriesGetGitHubAccessTokenSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ManagedVirtualNetworks_Create.json + * Factories_GetGitHubAccessToken.json */ /** - * Sample code: ManagedVirtualNetworks_Create. + * Sample code: Factories_GetGitHubAccessToken. * * @param manager Entry point to DataFactoryManager. */ - public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedVirtualNetworks() - .define("exampleManagedVirtualNetworkName") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new ManagedVirtualNetwork().withAdditionalProperties(mapOf())) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + public static void factoriesGetGitHubAccessToken(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories() + .getGitHubAccessTokenWithResponse("exampleResourceGroup", "exampleFactoryName", + new GitHubAccessTokenRequest().withGitHubAccessCode("fakeTokenPlaceholder") + .withGitHubClientId("some") + .withGitHubAccessTokenBaseUrl("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } ``` -### GlobalParameters_DeleteSync +### Factories_GetByResourceGroup ```java /** - * Samples for IntegrationRuntimes DeleteSync. + * Samples for Triggers ListByFactory. */ -public final class IntegrationRuntimesDeleteSyncSamples { +public final class TriggersListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_Delete.json + * Triggers_ListByFactory.json */ /** - * Sample code: IntegrationRuntimes_Delete. + * Sample code: Triggers_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + public static void triggersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.triggers() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### GlobalParameters_GetSync +### Factories_GetDataPlaneAccess ```java +import com.azure.resourcemanager.datafactory.models.GlobalParameterResource; +import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; +import java.util.Map; + /** - * Samples for ChangeDataCapture GetSync. + * Samples for GlobalParameters CreateOrUpdate. */ -public final class ChangeDataCaptureGetSyncSamples { +public final class GlobalParametersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get - * .json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * GlobalParameters_Create.json */ /** - * Sample code: ChangeDataCapture_Get. + * Sample code: GlobalParameters_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void changeDataCaptureGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.changeDataCaptures() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null, - com.azure.core.util.Context.NONE); + public static void globalParametersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.globalParameters() + .define("default") + .withExistingFactory("exampleResourceGroup", "exampleFactoryName") + .withProperties((Map) null) + .create(); + } + + /* + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * GlobalParameters_Update.json + */ + /** + * Sample code: GlobalParameters_Update. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void globalParametersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + GlobalParameterResource resource = manager.globalParameters() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); } } ``` -### GlobalParameters_ListByFactorySync +### Factories_GetGitHubAccessToken ```java /** - * Samples for CredentialOperations GetSync. + * Samples for IntegrationRuntimeNodes Get. */ -public final class CredentialOperationsGetSyncSamples { +public final class IntegrationRuntimeNodesGetSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * IntegrationRuntimeNodes_Get.json */ /** - * Sample code: Credentials_Get. + * Sample code: IntegrationRuntimeNodes_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void credentialsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.credentialOperations() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", null, + public static void integrationRuntimeNodesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimeNodes() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimeNodes_DeleteSync +### Factories_List ```java -import com.azure.resourcemanager.datafactory.models.Factory; +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.datafactory.models.AzureBlobDataset; +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 com.azure.resourcemanager.datafactory.models.TextFormat; +import java.io.IOException; import java.util.HashMap; import java.util.Map; /** - * Samples for Factories UpdateSync. + * Samples for Datasets CreateOrUpdate. */ -public final class FactoriesUpdateSyncSamples { +public final class DatasetsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json */ /** - * Sample code: Factories_Update. + * Sample code: Datasets_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - Factory resource = manager.factories() - .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, + public static void datasetsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + manager.datasets() + .define("exampleDataset") + .withExistingFactory("exampleResourceGroup", "exampleFactoryName") + .withProperties(new AzureBlobDataset() + .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) + .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING), + "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING))) + .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class, + SerializerEncoding.JSON)) + .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class, + SerializerEncoding.JSON)) + .withFormat(new TextFormat())) + .create(); + } + + /* + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json + */ + /** + * Sample code: Datasets_Update. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void datasetsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + DatasetResource resource = manager.datasets() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, com.azure.core.util.Context.NONE) .getValue(); - resource.update().withTags(mapOf("exampleTag", "exampleValue")).apply(); + resource.update() + .withProperties(new AzureBlobDataset().withDescription("Example description") + .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) + .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING), + "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING))) + .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class, + SerializerEncoding.JSON)) + .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class, + SerializerEncoding.JSON)) + .withFormat(new TextFormat())) + .apply(); } // Use "Map.of" if available @@ -1447,412 +1408,380 @@ public final class FactoriesUpdateSyncSamples { } ``` -### IntegrationRuntimeNodes_GetIpAddressSync +### Factories_ListByResourceGroup ```java /** - * Samples for CredentialOperations ListByFactorySync. + * Samples for IntegrationRuntimeNodes Delete. */ -public final class CredentialOperationsListByFactorySyncSamples { +public final class IntegrationRuntimeNodesDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Credentials_ListByFactory.json - */ - /** - * Sample code: Credentials_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.credentialOperations() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); - } -} -``` - -### IntegrationRuntimeNodes_GetSync - -```java -/** - * Samples for ChangeDataCapture ListByFactorySync. - */ -public final class ChangeDataCaptureListByFactorySyncSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ChangeDataCapture_ListByFactory.json + * IntegrationRuntimeNodes_Delete.json */ /** - * Sample code: ChangeDataCapture_ListByFactory. + * Sample code: IntegrationRuntimesNodes_Delete. * * @param manager Entry point to DataFactoryManager. */ public static void - changeDataCaptureListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.changeDataCaptures() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + integrationRuntimesNodesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimeNodes() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", + com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimeNodes_UpdateSync +### Factories_Update ```java /** - * Samples for Datasets DeleteSync. + * Samples for CredentialOperations Delete. */ -public final class DatasetsDeleteSyncSamples { +public final class CredentialOperationsDeleteSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete. + * json */ /** - * Sample code: Datasets_Delete. + * Sample code: Credentials_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void datasetsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.datasets() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", + public static void credentialsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.credentialOperations() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimeObjectMetadata_GetSync +### GlobalParameters_CreateOrUpdate ```java -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; - /** - * Samples for IntegrationRuntimeObjectMetadata GetSync. + * Samples for ManagedPrivateEndpoints ListByFactory. */ -public final class IntegrationRuntimeObjectMetadataGetSyncSamples { +public final class ManagedPrivateEndpointsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimeObjectMetadata_Get.json + * ManagedPrivateEndpoints_ListByFactory.json */ /** - * Sample code: IntegrationRuntimeObjectMetadata_Get. + * Sample code: ManagedPrivateEndpoints_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ public static void - integrationRuntimeObjectMetadataGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimeObjectMetadatas() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "testactivityv2", - new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), com.azure.core.util.Context.NONE); - } -} -``` - -### IntegrationRuntimeObjectMetadata_Refresh - -```java -/** - * Samples for ChangeDataCapture DeleteSync. - */ -public final class ChangeDataCaptureDeleteSyncSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ChangeDataCapture_Delete.json - */ - /** - * Sample code: ChangeDataCapture_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void changeDataCaptureDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.changeDataCaptures() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", + managedPrivateEndpointsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.managedPrivateEndpoints() + .listByFactory("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_CreateLinkedIntegrationRuntimeSync +### GlobalParameters_Delete ```java -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; - /** - * Samples for Factories ConfigureFactoryRepoSync. + * Samples for Datasets Delete. */ -public final class FactoriesConfigureFactoryRepoSyncSamples { +public final class DatasetsDeleteSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Factories_ConfigureFactoryRepo.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json */ /** - * Sample code: Factories_ConfigureFactoryRepo. + * Sample code: Datasets_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesConfigureFactoryRepo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories() - .configureFactoryRepoWithResponse("East US", new FactoryRepoUpdate().withFactoryResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName") - .withRepoConfiguration(new FactoryVstsConfiguration().withAccountName("ADF") - .withRepositoryName("repo") - .withCollaborationBranch("master") - .withRootFolder("/") - .withLastCommitId("") - .withProjectName("project") - .withTenantId("")), + public static void datasetsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.datasets() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_CreateOrUpdateSync +### GlobalParameters_Get ```java -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; - /** - * Samples for IntegrationRuntimes UpdateSync. + * Samples for LinkedServices Delete. */ -public final class IntegrationRuntimesUpdateSyncSamples { +public final class LinkedServicesDeleteSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_Update.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete + * .json */ /** - * Sample code: IntegrationRuntimes_Update. + * Sample code: LinkedServices_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - IntegrationRuntimeResource resource = manager.integrationRuntimes() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, - com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); + public static void linkedServicesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.linkedServices() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", + com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_DeleteSync +### GlobalParameters_ListByFactory ```java /** - * Samples for Pipelines GetSync. + * Samples for DataFlows Get. */ -public final class PipelinesGetSyncSamples { +public final class DataFlowsGetSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json */ /** - * Sample code: Pipelines_Get. + * Sample code: DataFlows_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelinesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelines() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, + public static void dataFlowsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.dataFlows() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_GetConnectionInfoSync +### IntegrationRuntimeNodes_Delete ```java /** - * Samples for PrivateEndpointConnectionOperation GetSync. + * Samples for ManagedPrivateEndpoints Delete. */ -public final class PrivateEndpointConnectionOperationGetSyncSamples { +public final class ManagedPrivateEndpointsDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * GetPrivateEndpointConnection.json + * ManagedPrivateEndpoints_Delete.json */ /** - * Sample code: Get a private endpoint connection for a datafactory. + * Sample code: ManagedVirtualNetworks_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void - getAPrivateEndpointConnectionForADatafactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateEndpointConnectionOperations() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", null, - com.azure.core.util.Context.NONE); + public static void managedVirtualNetworksDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.managedPrivateEndpoints() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", + "exampleManagedPrivateEndpointName", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_GetMonitoringDataSync +### IntegrationRuntimeNodes_Get ```java +import com.azure.resourcemanager.datafactory.models.RunFilterParameters; +import com.azure.resourcemanager.datafactory.models.RunQueryFilter; +import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; +import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; +import java.time.OffsetDateTime; +import java.util.Arrays; + /** - * Samples for ChangeDataCapture StatusSync. + * Samples for PipelineRuns QueryByFactory. */ -public final class ChangeDataCaptureStatusSyncSamples { +public final class PipelineRunsQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ChangeDataCapture_Status.json + * PipelineRuns_QueryByFactory.json */ /** - * Sample code: ChangeDataCapture_Start. + * Sample code: PipelineRuns_QueryByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.changeDataCaptures() - .statusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", + public static void pipelineRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.pipelineRuns() + .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", + new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) + .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) + .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.PIPELINE_NAME) + .withOperator(RunQueryFilterOperator.EQUALS) + .withValues(Arrays.asList("examplePipeline")))), com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_GetStatusSync +### IntegrationRuntimeNodes_GetIpAddress ```java -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.List; +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.datafactory.models.AzureStorageLinkedService; +import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; +import java.io.IOException; /** - * Samples for ChangeDataCapture CreateOrUpdateSync. + * Samples for LinkedServices CreateOrUpdate. */ -public final class ChangeDataCaptureCreateOrUpdateSyncSamples { +public final class LinkedServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ChangeDataCapture_Create.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create + * .json */ /** - * Sample code: ChangeDataCapture_Create. + * Sample code: LinkedServices_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void changeDataCaptureCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.changeDataCaptures() - .define("exampleChangeDataCapture") + public static void linkedServicesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + manager.linkedServices() + .define("exampleLinkedService") .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withSourceConnectionsInfo((List) null) - .withTargetConnectionsInfo((List) null) - .withPolicy((MapperPolicy) null) - .withDescription( - "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings.") - .withAllowVNetOverride(false) + .withProperties(new AzureStorageLinkedService().withConnectionString(SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", + Object.class, SerializerEncoding.JSON))) .create(); } /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ChangeDataCapture_Update.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update + * .json */ /** - * Sample code: ChangeDataCapture_Update. + * Sample code: LinkedServices_Update. * * @param manager Entry point to DataFactoryManager. */ - public static void changeDataCaptureUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - ChangeDataCaptureResource resource = manager.changeDataCaptures() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null, + public static void linkedServicesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + LinkedServiceResource resource = manager.linkedServices() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withDescription( - "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings.") - .withAllowVNetOverride(false) - .withStatus("Stopped") + .withProperties(new AzureStorageLinkedService().withDescription("Example description") + .withConnectionString(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize( + "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", + Object.class, SerializerEncoding.JSON))) .apply(); } } ``` -### IntegrationRuntimes_GetSync +### IntegrationRuntimeNodes_Update ```java +import com.azure.resourcemanager.datafactory.models.Factory; +import java.util.HashMap; +import java.util.Map; + /** - * Samples for ManagedPrivateEndpoints ListByFactorySync. + * Samples for Factories Update. */ -public final class ManagedPrivateEndpointsListByFactorySyncSamples { +public final class FactoriesUpdateSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ManagedPrivateEndpoints_ListByFactory.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json */ /** - * Sample code: ManagedPrivateEndpoints_ListByFactory. + * Sample code: Factories_Update. * * @param manager Entry point to DataFactoryManager. */ - public static void - managedPrivateEndpointsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedPrivateEndpoints() - .listByFactory("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", - com.azure.core.util.Context.NONE); + public static void factoriesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + Factory resource = manager.factories() + .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, + com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("exampleTag", "exampleValue")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } ``` -### IntegrationRuntimes_ListAuthKeysSync +### IntegrationRuntimeObjectMetadata_Get ```java -import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; +import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; /** - * Samples for CredentialOperations CreateOrUpdateSync. + * Samples for IntegrationRuntimes RemoveLinks. */ -public final class CredentialOperationsCreateOrUpdateSyncSamples { +public final class IntegrationRuntimesRemoveLinksSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create. - * json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * IntegrationRuntimes_RemoveLinks.json */ /** - * Sample code: Credentials_Create. + * Sample code: IntegrationRuntimes_Upgrade. * * @param manager Entry point to DataFactoryManager. */ - public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.credentialOperations() - .define("exampleCredential") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new ManagedIdentityCredential().withResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami")) - .create(); + public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .removeLinksWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("exampleFactoryName-linked"), + com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_ListByFactorySync +### IntegrationRuntimeObjectMetadata_Refresh ```java /** - * Samples for Pipelines DeleteSync. + * Samples for ChangeDataCapture Get. */ -public final class PipelinesDeleteSyncSamples { +public final class ChangeDataCaptureGetSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get + * .json */ /** - * Sample code: Pipelines_Delete. + * Sample code: ChangeDataCapture_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelinesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelines() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", + public static void changeDataCaptureGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.changeDataCaptures() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", null, com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_ListOutboundNetworkDependenciesEndpointsSync +### IntegrationRuntimes_CreateLinkedIntegrationRuntime ```java import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; /** - * Samples for ExposureControl GetFeatureValueByFactorySync. + * Samples for ExposureControl GetFeatureValueByFactory. */ -public final class ExposureControlGetFeatureValueByFactorySyncSamples { +public final class ExposureControlGetFeatureValueByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ExposureControl_GetFeatureValueByFactory.json @@ -1873,517 +1802,456 @@ public final class ExposureControlGetFeatureValueByFactorySyncSamples { } ``` -### IntegrationRuntimes_RegenerateAuthKeySync +### IntegrationRuntimes_CreateOrUpdate ```java +import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; + /** - * Samples for Triggers SubscribeToEvents. + * Samples for Triggers QueryByFactory. */ -public final class TriggersSubscribeToEventsSamples { +public final class TriggersQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Triggers_SubscribeToEvents.json + * Triggers_QueryByFactory.json */ /** - * Sample code: Triggers_SubscribeToEvents. + * Sample code: Triggers_QueryByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersSubscribeToEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + public static void triggersQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { manager.triggers() - .subscribeToEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", - com.azure.core.util.Context.NONE); - } -} -``` - -### IntegrationRuntimes_RemoveLinksSync - -```java -/** - * Samples for CredentialOperations DeleteSync. - */ -public final class CredentialOperationsDeleteSyncSamples { - /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete. - * json - */ - /** - * Sample code: Credentials_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void credentialsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.credentialOperations() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", + .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", + new TriggerFilterParameters().withParentTriggerName("exampleTrigger"), com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_Start +### IntegrationRuntimes_Delete ```java /** - * Samples for Triggers Start. + * Samples for Triggers SubscribeToEvents. */ -public final class TriggersStartSamples { +public final class TriggersSubscribeToEventsSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * Triggers_SubscribeToEvents.json */ /** - * Sample code: Triggers_Start. + * Sample code: Triggers_SubscribeToEvents. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + public static void triggersSubscribeToEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { manager.triggers() - .start("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE); + .subscribeToEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", + com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_Stop +### IntegrationRuntimes_Get ```java /** - * Samples for IntegrationRuntimeNodes GetSync. + * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. */ -public final class IntegrationRuntimeNodesGetSyncSamples { +public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimeNodes_Get.json + * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json */ /** - * Sample code: IntegrationRuntimeNodes_Get. + * Sample code: IntegrationRuntimes_OutboundNetworkDependenciesEndpoints. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimeNodesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimeNodes() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", - com.azure.core.util.Context.NONE); + public static void integrationRuntimesOutboundNetworkDependenciesEndpoints( + com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .listOutboundNetworkDependenciesEndpointsWithResponse("exampleResourceGroup", "exampleFactoryName", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_SyncCredentialsSync +### IntegrationRuntimes_GetConnectionInfo ```java -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureStorageLinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import java.io.IOException; - /** - * Samples for LinkedServices CreateOrUpdateSync. + * Samples for Triggers Start. */ -public final class LinkedServicesCreateOrUpdateSyncSamples { - /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create - * .json - */ - /** - * Sample code: LinkedServices_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager.linkedServices() - .define("exampleLinkedService") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new AzureStorageLinkedService().withConnectionString(SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", - Object.class, SerializerEncoding.JSON))) - .create(); - } - +public final class TriggersStartSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update - * .json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json */ /** - * Sample code: LinkedServices_Update. + * Sample code: Triggers_Start. * * @param manager Entry point to DataFactoryManager. */ - public static void linkedServicesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - LinkedServiceResource resource = manager.linkedServices() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new AzureStorageLinkedService().withDescription("Example description") - .withConnectionString(SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", - Object.class, SerializerEncoding.JSON))) - .apply(); + public static void triggersStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.triggers() + .start("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_UpdateSync +### IntegrationRuntimes_GetMonitoringData ```java -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; - /** - * Samples for ExposureControl GetFeatureValueSync. + * Samples for GlobalParameters ListByFactory. */ -public final class ExposureControlGetFeatureValueSyncSamples { +public final class GlobalParametersListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ExposureControl_GetFeatureValue.json + * GlobalParameters_ListByFactory.json */ /** - * Sample code: ExposureControl_GetFeatureValue. + * Sample code: GlobalParameters_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void - exposureControlGetFeatureValue(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.exposureControls() - .getFeatureValueWithResponse("WestEurope", - new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - com.azure.core.util.Context.NONE); + public static void globalParametersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.globalParameters() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### IntegrationRuntimes_UpgradeSync +### IntegrationRuntimes_GetStatus ```java /** - * Samples for GlobalParameters GetSync. + * Samples for ManagedVirtualNetworks Get. */ -public final class GlobalParametersGetSyncSamples { +public final class ManagedVirtualNetworksGetSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get. - * json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * ManagedVirtualNetworks_Get.json */ /** - * Sample code: GlobalParameters_Get. + * Sample code: ManagedVirtualNetworks_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void globalParametersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.globalParameters() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE); + public static void managedVirtualNetworksGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.managedVirtualNetworks() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", null, + com.azure.core.util.Context.NONE); } } ``` -### LinkedServices_CreateOrUpdateSync +### IntegrationRuntimes_ListAuthKeys ```java -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerEncoding; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for Pipelines CreateRunSync. + * Samples for IntegrationRuntimes ListByFactory. */ -public final class PipelinesCreateRunSyncSamples { +public final class IntegrationRuntimesListByFactorySamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun. - * json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * IntegrationRuntimes_ListByFactory.json */ /** - * Sample code: Pipelines_CreateRun. + * Sample code: IntegrationRuntimes_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelinesCreateRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager.pipelines() - .createRunWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, null, null, - null, - mapOf("OutputBlobNameList", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)), - com.azure.core.util.Context.NONE); + public static void + integrationRuntimesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } +} +``` - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; +### IntegrationRuntimes_ListByFactory + +```java +/** + * Samples for Factories CreateOrUpdate. + */ +public final class FactoriesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * Factories_CreateOrUpdate.json + */ + /** + * Sample code: Factories_CreateOrUpdate. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void factoriesCreateOrUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories() + .define("exampleFactoryName") + .withRegion("East US") + .withExistingResourceGroup("exampleResourceGroup") + .create(); } } ``` -### LinkedServices_DeleteSync +### IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints ```java +import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; + /** - * Samples for ChangeDataCapture StopSync. + * Samples for IntegrationRuntimes CreateLinkedIntegrationRuntime. */ -public final class ChangeDataCaptureStopSyncSamples { +public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ChangeDataCapture_Stop.json + * IntegrationRuntimes_CreateLinkedIntegrationRuntime.json */ /** - * Sample code: ChangeDataCapture_Stop. + * Sample code: IntegrationRuntimes_CreateLinkedIntegrationRuntime. * * @param manager Entry point to DataFactoryManager. */ - public static void changeDataCaptureStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.changeDataCaptures() - .stopWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", + public static void integrationRuntimesCreateLinkedIntegrationRuntime( + com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .createLinkedIntegrationRuntimeWithResponse("exampleResourceGroup", "exampleFactoryName", + "exampleIntegrationRuntime", + new CreateLinkedIntegrationRuntimeRequest().withName("bfa92911-9fb6-4fbe-8f23-beae87bc1c83") + .withSubscriptionId("061774c7-4b5a-4159-a55b-365581830283") + .withDataFactoryName("e9955d6d-56ea-4be3-841c-52a12c1a9981") + .withDataFactoryLocation("West US"), com.azure.core.util.Context.NONE); } } ``` -### LinkedServices_GetSync +### IntegrationRuntimes_RegenerateAuthKey ```java /** - * Samples for Datasets GetSync. + * Samples for PrivateLinkResources Get. */ -public final class DatasetsGetSyncSamples { +public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * GetPrivateLinkResources.json */ /** - * Sample code: Datasets_Get. + * Sample code: Get private link resources of a site. * * @param manager Entry point to DataFactoryManager. */ - public static void datasetsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.datasets() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, - com.azure.core.util.Context.NONE); + public static void + getPrivateLinkResourcesOfASite(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.privateLinkResources() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### LinkedServices_ListByFactorySync +### IntegrationRuntimes_RemoveLinks ```java -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.BlobSink; -import com.azure.resourcemanager.datafactory.models.BlobSource; -import com.azure.resourcemanager.datafactory.models.CopyActivity; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.ForEachActivity; -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.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.io.IOException; -import java.util.Arrays; +import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; import java.util.HashMap; import java.util.Map; /** - * Samples for Pipelines CreateOrUpdateSync. + * Samples for ManagedVirtualNetworks CreateOrUpdate. */ -public final class PipelinesCreateOrUpdateSyncSamples { +public final class ManagedVirtualNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * ManagedVirtualNetworks_Create.json */ /** - * Sample code: Pipelines_Create. + * Sample code: ManagedVirtualNetworks_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelinesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager.pipelines() - .define("examplePipeline") + public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.managedVirtualNetworks() + .define("exampleManagedVirtualNetworkName") .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity") - .withIsSequential(true) - .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList")) - .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity") - .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") - .withParameters( - mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer")))) - .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") - .withParameters(mapOf("MyFileName", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class, - SerializerEncoding.JSON), - "MyFolderPath", "examplecontainer")))) - .withSource(new BlobSource()) - .withSink(new BlobSink()) - .withDataIntegrationUnits(32))))) - .withParameters(mapOf("JobId", new ParameterSpecification().withType(ParameterType.STRING), - "OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY))) - .withVariables(mapOf("TestVariableArray", new VariableSpecification().withType(VariableType.ARRAY))) - .withRunDimensions(mapOf("JobId", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.JobId\"}", Object.class, - SerializerEncoding.JSON))) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) + .withProperties(new ManagedVirtualNetwork().withAdditionalProperties(mapOf())) .create(); } + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IntegrationRuntimes_Start + +```java +import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; + +/** + * Samples for CredentialOperations CreateOrUpdate. + */ +public final class CredentialOperationsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create. + * json */ /** - * Sample code: Pipelines_Update. + * Sample code: Credentials_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelinesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - PipelineResource resource = manager.pipelines() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withDescription("Example description") - .withActivities(Arrays.asList(new ForEachActivity().withName("ExampleForeachActivity") - .withIsSequential(true) - .withItems(new Expression().withValue("@pipeline().parameters.OutputBlobNameList")) - .withActivities(Arrays.asList(new CopyActivity().withName("ExampleCopyActivity") - .withInputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") - .withParameters( - mapOf("MyFileName", "examplecontainer.csv", "MyFolderPath", "examplecontainer")))) - .withOutputs(Arrays.asList(new DatasetReference().withReferenceName("exampleDataset") - .withParameters(mapOf("MyFileName", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"type\":\"Expression\",\"value\":\"@item()\"}", Object.class, - SerializerEncoding.JSON), - "MyFolderPath", "examplecontainer")))) - .withSource(new BlobSource()) - .withSink(new BlobSink()) - .withDataIntegrationUnits(32))))) - .withParameters(mapOf("OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY))) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) - .apply(); + public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.credentialOperations() + .define("exampleCredential") + .withExistingFactory("exampleResourceGroup", "exampleFactoryName") + .withProperties(new ManagedIdentityCredential().withResourceId( + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami")) + .create(); } +} +``` - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; +### IntegrationRuntimes_Stop + +```java +import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; +import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; + +/** + * Samples for Factories ConfigureFactoryRepo. + */ +public final class FactoriesConfigureFactoryRepoSamples { + /* + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * Factories_ConfigureFactoryRepo.json + */ + /** + * Sample code: Factories_ConfigureFactoryRepo. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void factoriesConfigureFactoryRepo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories() + .configureFactoryRepoWithResponse("East US", new FactoryRepoUpdate().withFactoryResourceId( + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName") + .withRepoConfiguration(new FactoryVstsConfiguration().withAccountName("ADF") + .withRepositoryName("repo") + .withCollaborationBranch("master") + .withRootFolder("/") + .withLastCommitId("") + .withProjectName("project") + .withTenantId("")), + com.azure.core.util.Context.NONE); } } ``` -### ManagedPrivateEndpoints_CreateOrUpdateSync +### IntegrationRuntimes_SyncCredentials ```java /** - * Samples for TriggerRuns CancelSync. + * Samples for ChangeDataCapture Status. */ -public final class TriggerRunsCancelSyncSamples { +public final class ChangeDataCaptureStatusSamples { /* - * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel. - * json + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * ChangeDataCapture_Status.json */ /** - * Sample code: Triggers_Cancel. + * Sample code: ChangeDataCapture_Start. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggerRuns() - .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", com.azure.core.util.Context.NONE); + public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.changeDataCaptures() + .statusWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", + com.azure.core.util.Context.NONE); } } ``` -### ManagedPrivateEndpoints_DeleteSync +### IntegrationRuntimes_Update ```java /** - * Samples for IntegrationRuntimes SyncCredentialsSync. + * Samples for DataFlows Delete. */ -public final class IntegrationRuntimesSyncCredentialsSyncSamples { +public final class DataFlowsDeleteSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_SyncCredentials.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json */ /** - * Sample code: IntegrationRuntimes_SyncCredentials. + * Sample code: DataFlows_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void - integrationRuntimesSyncCredentials(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .syncCredentialsWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + public static void dataFlowsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.dataFlows() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", com.azure.core.util.Context.NONE); } } ``` -### ManagedPrivateEndpoints_GetSync +### IntegrationRuntimes_Upgrade ```java +import com.azure.resourcemanager.datafactory.models.RunFilterParameters; +import com.azure.resourcemanager.datafactory.models.RunQueryFilter; +import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; +import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; +import java.time.OffsetDateTime; +import java.util.Arrays; + /** - * Samples for IntegrationRuntimes ListByFactorySync. + * Samples for TriggerRuns QueryByFactory. */ -public final class IntegrationRuntimesListByFactorySyncSamples { +public final class TriggerRunsQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_ListByFactory.json + * TriggerRuns_QueryByFactory.json */ /** - * Sample code: IntegrationRuntimes_ListByFactory. + * Sample code: TriggerRuns_QueryByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void - integrationRuntimesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + public static void triggerRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.triggerRuns() + .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", + new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) + .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) + .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.TRIGGER_NAME) + .withOperator(RunQueryFilterOperator.EQUALS) + .withValues(Arrays.asList("exampleTrigger")))), + com.azure.core.util.Context.NONE); } } ``` -### ManagedPrivateEndpoints_ListByFactorySync +### LinkedServices_CreateOrUpdate ```java /** - * Samples for Triggers GetEventSubscriptionStatusSync. + * Samples for Triggers GetEventSubscriptionStatus. */ -public final class TriggersGetEventSubscriptionStatusSyncSamples { +public final class TriggersGetEventSubscriptionStatusSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Triggers_GetEventSubscriptionStatus.json @@ -2402,106 +2270,106 @@ public final class TriggersGetEventSubscriptionStatusSyncSamples { } ``` -### ManagedVirtualNetworks_CreateOrUpdateSync +### LinkedServices_Delete ```java /** - * Samples for Factories CreateOrUpdateSync. + * Samples for Factories List. */ -public final class FactoriesCreateOrUpdateSyncSamples { +public final class FactoriesListSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Factories_CreateOrUpdate.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json */ /** - * Sample code: Factories_CreateOrUpdate. + * Sample code: Factories_List. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesCreateOrUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories() - .define("exampleFactoryName") - .withRegion("East US") - .withExistingResourceGroup("exampleResourceGroup") - .create(); + public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories().list(com.azure.core.util.Context.NONE); } } ``` -### ManagedVirtualNetworks_GetSync +### LinkedServices_Get ```java import com.azure.core.management.serializer.SerializerFactory; import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureBlobDataset; -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 com.azure.resourcemanager.datafactory.models.TextFormat; +import com.azure.resourcemanager.datafactory.models.PipelineReference; +import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; +import com.azure.resourcemanager.datafactory.models.ScheduleTrigger; +import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; +import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; +import com.azure.resourcemanager.datafactory.models.TriggerResource; import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; /** - * Samples for Datasets CreateOrUpdateSync. + * Samples for Triggers CreateOrUpdate. */ -public final class DatasetsCreateOrUpdateSyncSamples { +public final class TriggersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json */ /** - * Sample code: Datasets_Create. + * Sample code: Triggers_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void datasetsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + public static void triggersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) throws IOException { - manager.datasets() - .define("exampleDataset") + manager.triggers() + .define("exampleTrigger") .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new AzureBlobDataset() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) - .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING), - "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING))) - .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class, - SerializerEncoding.JSON)) - .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class, - SerializerEncoding.JSON)) - .withFormat(new TextFormat())) + .withProperties(new ScheduleTrigger() + .withPipelines(Arrays.asList(new TriggerPipelineReference() + .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline")) + .withParameters(mapOf("OutputBlobNameList", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON))))) + .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE) + .withInterval(4) + .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:13.8441801Z")) + .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:13.8441801Z")) + .withTimeZone("UTC") + .withAdditionalProperties(mapOf()))) .create(); } /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json */ /** - * Sample code: Datasets_Update. + * Sample code: Triggers_Update. * * @param manager Entry point to DataFactoryManager. */ - public static void datasetsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + public static void triggersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) throws IOException { - DatasetResource resource = manager.datasets() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, + TriggerResource resource = manager.triggers() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null, com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withProperties(new AzureBlobDataset().withDescription("Example description") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) - .withParameters(mapOf("MyFileName", new ParameterSpecification().withType(ParameterType.STRING), - "MyFolderPath", new ParameterSpecification().withType(ParameterType.STRING))) - .withFolderPath(SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", Object.class, - SerializerEncoding.JSON)) - .withFileName(SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", Object.class, - SerializerEncoding.JSON)) - .withFormat(new TextFormat())) + .withProperties(new ScheduleTrigger().withDescription("Example description") + .withPipelines(Arrays.asList(new TriggerPipelineReference() + .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline")) + .withParameters(mapOf("OutputBlobNameList", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON))))) + .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE) + .withInterval(4) + .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:14.905167Z")) + .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:14.905167Z")) + .withTimeZone("UTC") + .withAdditionalProperties(mapOf()))) .apply(); } @@ -2519,253 +2387,262 @@ public final class DatasetsCreateOrUpdateSyncSamples { } ``` -### ManagedVirtualNetworks_ListByFactorySync +### LinkedServices_ListByFactory + +```java +import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; + +/** + * Samples for DataFlowDebugSession Delete. + */ +public final class DataFlowDebugSessionDeleteSamples { + /* + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * DataFlowDebugSession_Delete.json + */ + /** + * Sample code: DataFlowDebugSession_Delete. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void dataFlowDebugSessionDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.dataFlowDebugSessions() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", + new DeleteDataFlowDebugSessionRequest().withSessionId("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"), + com.azure.core.util.Context.NONE); + } +} +``` + +### ManagedPrivateEndpoints_CreateOrUpdate ```java /** - * Samples for Factories ListSync. + * Samples for PipelineRuns Cancel. */ -public final class FactoriesListSyncSamples { +public final class PipelineRunsCancelSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel. + * json */ /** - * Sample code: Factories_List. + * Sample code: PipelineRuns_Cancel. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().list(com.azure.core.util.Context.NONE); + public static void pipelineRunsCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.pipelineRuns() + .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "16ac5348-ff82-4f95-a80d-638c1d47b721", + null, com.azure.core.util.Context.NONE); } } ``` -### Operations_ListSync +### ManagedPrivateEndpoints_Delete ```java /** - * Samples for Triggers ListByFactorySync. + * Samples for Triggers Stop. */ -public final class TriggersListByFactorySyncSamples { +public final class TriggersStopSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Triggers_ListByFactory.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json */ /** - * Sample code: Triggers_ListByFactory. + * Sample code: Triggers_Stop. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + public static void triggersStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { manager.triggers() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + .stop("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE); + } +} +``` + +### ManagedPrivateEndpoints_Get + +```java +import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; + +/** + * Samples for ExposureControl GetFeatureValue. + */ +public final class ExposureControlGetFeatureValueSamples { + /* + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * ExposureControl_GetFeatureValue.json + */ + /** + * Sample code: ExposureControl_GetFeatureValue. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void + exposureControlGetFeatureValue(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.exposureControls() + .getFeatureValueWithResponse("WestEurope", + new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac") + .withFeatureType("Feature"), + com.azure.core.util.Context.NONE); } } ``` -### PipelineRuns_CancelSync +### ManagedPrivateEndpoints_ListByFactory ```java /** - * Samples for Triggers Stop. + * Samples for Factories Delete. */ -public final class TriggersStopSamples { +public final class FactoriesDeleteSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json */ /** - * Sample code: Triggers_Stop. + * Sample code: Factories_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers() - .stop("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", com.azure.core.util.Context.NONE); + public static void factoriesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories() + .deleteByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", + com.azure.core.util.Context.NONE); } } ``` -### PipelineRuns_GetSync +### ManagedVirtualNetworks_CreateOrUpdate ```java /** - * Samples for GlobalParameters ListByFactorySync. + * Samples for IntegrationRuntimes GetMonitoringData. */ -public final class GlobalParametersListByFactorySyncSamples { +public final class IntegrationRuntimesGetMonitoringDataSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * GlobalParameters_ListByFactory.json + * IntegrationRuntimes_GetMonitoringData.json */ /** - * Sample code: GlobalParameters_ListByFactory. + * Sample code: IntegrationRuntimes_GetMonitoringData. * * @param manager Entry point to DataFactoryManager. */ - public static void globalParametersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.globalParameters() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + public static void + integrationRuntimesGetMonitoringData(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .getMonitoringDataWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + com.azure.core.util.Context.NONE); } } ``` -### PipelineRuns_QueryByFactorySync +### ManagedVirtualNetworks_Get ```java -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.time.OffsetDateTime; +import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; +import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; import java.util.Arrays; /** - * Samples for PipelineRuns QueryByFactorySync. + * Samples for ExposureControl QueryFeatureValuesByFactory. */ -public final class PipelineRunsQueryByFactorySyncSamples { +public final class ExposureControlQueryFeatureValuesByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * PipelineRuns_QueryByFactory.json + * ExposureControl_QueryFeatureValuesByFactory.json */ /** - * Sample code: PipelineRuns_QueryByFactory. + * Sample code: ExposureControl_QueryFeatureValuesByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void pipelineRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelineRuns() - .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", - new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) - .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.PIPELINE_NAME) - .withOperator(RunQueryFilterOperator.EQUALS) - .withValues(Arrays.asList("examplePipeline")))), + public static void + exposureControlQueryFeatureValuesByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.exposureControls() + .queryFeatureValuesByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", + new ExposureControlBatchRequest().withExposureControlRequests(Arrays.asList( + new ExposureControlRequest().withFeatureName("ADFIntegrationRuntimeSharingRbac") + .withFeatureType("Feature"), + new ExposureControlRequest().withFeatureName("ADFSampleFeature").withFeatureType("Feature"))), com.azure.core.util.Context.NONE); } } ``` -### Pipelines_CreateOrUpdateSync +### ManagedVirtualNetworks_ListByFactory ```java -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.ScheduleTrigger; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for Triggers CreateOrUpdateSync. + * Samples for Operations List. */ -public final class TriggersCreateOrUpdateSyncSamples { +public final class OperationsListSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json */ /** - * Sample code: Triggers_Create. + * Sample code: Operations_List. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager.triggers() - .define("exampleTrigger") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new ScheduleTrigger() - .withPipelines(Arrays.asList(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline")) - .withParameters(mapOf("OutputBlobNameList", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON))))) - .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE) - .withInterval(4) - .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:13.8441801Z")) - .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:13.8441801Z")) - .withTimeZone("UTC") - .withAdditionalProperties(mapOf()))) - .create(); + public static void operationsList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); } +} +``` +### Operations_List + +```java +/** + * Samples for Triggers Get. + */ +public final class TriggersGetSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json */ /** - * Sample code: Triggers_Update. + * Sample code: Triggers_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - TriggerResource resource = manager.triggers() + public static void triggersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.triggers() .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null, - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ScheduleTrigger().withDescription("Example description") - .withPipelines(Arrays.asList(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("examplePipeline")) - .withParameters(mapOf("OutputBlobNameList", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON))))) - .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.MINUTE) - .withInterval(4) - .withStartTime(OffsetDateTime.parse("2018-06-16T00:39:14.905167Z")) - .withEndTime(OffsetDateTime.parse("2018-06-16T00:55:14.905167Z")) - .withTimeZone("UTC") - .withAdditionalProperties(mapOf()))) - .apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + com.azure.core.util.Context.NONE); } } ``` -### Pipelines_CreateRunSync +### PipelineRuns_Cancel ```java /** - * Samples for ManagedVirtualNetworks ListByFactorySync. + * Samples for DataFlows ListByFactory. */ -public final class ManagedVirtualNetworksListByFactorySyncSamples { +public final class DataFlowsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * ManagedVirtualNetworks_ListByFactory.json + * DataFlows_ListByFactory.json */ /** - * Sample code: ManagedVirtualNetworks_ListByFactory. + * Sample code: DataFlows_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void - managedVirtualNetworksListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedVirtualNetworks() + public static void dataFlowsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.dataFlows() .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### Pipelines_DeleteSync +### PipelineRuns_Get ```java import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; @@ -2820,32 +2697,31 @@ public final class DataFlowDebugSessionCreateSamples { } ``` -### Pipelines_GetSync +### PipelineRuns_QueryByFactory ```java /** - * Samples for IntegrationRuntimes GetMonitoringDataSync. + * Samples for ChangeDataCapture Delete. */ -public final class IntegrationRuntimesGetMonitoringDataSyncSamples { +public final class ChangeDataCaptureDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_GetMonitoringData.json + * ChangeDataCapture_Delete.json */ /** - * Sample code: IntegrationRuntimes_GetMonitoringData. + * Sample code: ChangeDataCapture_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void - integrationRuntimesGetMonitoringData(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .getMonitoringDataWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + public static void changeDataCaptureDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.changeDataCaptures() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", com.azure.core.util.Context.NONE); } } ``` -### Pipelines_ListByFactorySync +### Pipelines_CreateOrUpdate ```java /** @@ -2869,283 +2745,373 @@ public final class IntegrationRuntimeObjectMetadataRefreshSamples { } ``` -### PrivateEndPointConnections_ListByFactorySync +### Pipelines_CreateRun ```java /** - * Samples for GlobalParameters DeleteSync. + * Samples for Pipelines Get. */ -public final class GlobalParametersDeleteSyncSamples { +public final class PipelinesGetSamples { + /* + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json + */ + /** + * Sample code: Pipelines_Get. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void pipelinesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.pipelines() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, + com.azure.core.util.Context.NONE); + } +} +``` + +### Pipelines_Delete + +```java +/** + * Samples for PrivateEndpointConnectionOperation Delete. + */ +public final class PrivateEndpointConnectionOperationDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * GlobalParameters_Delete.json + * DeletePrivateEndpointConnection.json */ /** - * Sample code: GlobalParameters_Delete. + * Sample code: Delete a private endpoint connection for a datafactory. * * @param manager Entry point to DataFactoryManager. */ - public static void globalParametersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.globalParameters() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "default", + public static void deleteAPrivateEndpointConnectionForADatafactory( + com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.privateEndpointConnectionOperations() + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", com.azure.core.util.Context.NONE); } } ``` -### PrivateEndpointConnectionOperation_CreateOrUpdateSync +### Pipelines_Get ```java -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; +/** + * Samples for CredentialOperations Get. + */ +public final class CredentialOperationsGetSamples { + /* + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json + */ + /** + * Sample code: Credentials_Get. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void credentialsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.credentialOperations() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", null, + com.azure.core.util.Context.NONE); + } +} +``` + +### Pipelines_ListByFactory +```java /** - * Samples for IntegrationRuntimeNodes UpdateSync. + * Samples for LinkedServices ListByFactory. */ -public final class IntegrationRuntimeNodesUpdateSyncSamples { +public final class LinkedServicesListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimeNodes_Update.json + * LinkedServices_ListByFactory.json */ /** - * Sample code: IntegrationRuntimeNodes_Update. + * Sample code: LinkedServices_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimeNodesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimeNodes() - .updateWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), com.azure.core.util.Context.NONE); + public static void linkedServicesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.linkedServices() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### PrivateEndpointConnectionOperation_DeleteSync +### PrivateEndPointConnections_ListByFactory ```java /** - * Samples for IntegrationRuntimes UpgradeSync. + * Samples for IntegrationRuntimes Delete. */ -public final class IntegrationRuntimesUpgradeSyncSamples { +public final class IntegrationRuntimesDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_Upgrade.json + * IntegrationRuntimes_Delete.json */ /** - * Sample code: IntegrationRuntimes_Upgrade. + * Sample code: IntegrationRuntimes_Delete. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + public static void integrationRuntimesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { manager.integrationRuntimes() - .upgradeWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` -### PrivateEndpointConnectionOperation_GetSync +### PrivateEndpointConnectionOperation_CreateOrUpdate ```java /** - * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpointsSync. + * Samples for CredentialOperations ListByFactory. */ -public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSyncSamples { +public final class CredentialOperationsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json + * Credentials_ListByFactory.json */ /** - * Sample code: IntegrationRuntimes_OutboundNetworkDependenciesEndpoints. + * Sample code: Credentials_ListByFactory. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void credentialsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.credentialOperations() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateEndpointConnectionOperation_Delete + +```java +/** + * Samples for GlobalParameters Get. + */ +public final class GlobalParametersGetSamples { + /* + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get. + * json + */ + /** + * Sample code: GlobalParameters_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesOutboundNetworkDependenciesEndpoints( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse("exampleResourceGroup", "exampleFactoryName", - "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); + public static void globalParametersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.globalParameters() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", com.azure.core.util.Context.NONE); } } ``` -### PrivateLinkResources_GetSync +### PrivateEndpointConnectionOperation_Get ```java /** - * Samples for DataFlowDebugSession QueryByFactorySync. + * Samples for PrivateEndPointConnections ListByFactory. */ -public final class DataFlowDebugSessionQueryByFactorySyncSamples { +public final class PrivateEndPointConnectionsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * DataFlowDebugSession_QueryByFactory.json + * PrivateEndPointConnections_ListByFactory.json */ /** - * Sample code: DataFlowDebugSession_QueryByFactory. + * Sample code: privateEndPointConnections_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ public static void - dataFlowDebugSessionQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlowDebugSessions() - .queryByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + privateEndPointConnectionsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.privateEndPointConnections() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### TriggerRuns_CancelSync +### PrivateLinkResources_Get ```java -import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; +import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; /** - * Samples for Triggers QueryByFactorySync. + * Samples for ManagedPrivateEndpoints CreateOrUpdate. */ -public final class TriggersQueryByFactorySyncSamples { +public final class ManagedPrivateEndpointsCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Triggers_QueryByFactory.json + * ManagedPrivateEndpoints_Create.json */ /** - * Sample code: Triggers_QueryByFactory. + * Sample code: ManagedVirtualNetworks_Create. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers() - .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", - new TriggerFilterParameters().withParentTriggerName("exampleTrigger"), - com.azure.core.util.Context.NONE); + public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.managedPrivateEndpoints() + .define("exampleManagedPrivateEndpointName") + .withExistingManagedVirtualNetwork("exampleResourceGroup", "exampleFactoryName", + "exampleManagedVirtualNetworkName") + .withProperties(new ManagedPrivateEndpoint().withFqdns(Arrays.asList()) + .withGroupId("blob") + .withPrivateLinkResourceId( + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage") + .withAdditionalProperties(mapOf())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } ``` -### TriggerRuns_QueryByFactorySync +### TriggerRuns_Cancel ```java -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; +import com.azure.resourcemanager.datafactory.models.RunFilterParameters; +import java.time.OffsetDateTime; /** - * Samples for DataFlowDebugSession DeleteSync. + * Samples for ActivityRuns QueryByPipelineRun. */ -public final class DataFlowDebugSessionDeleteSyncSamples { +public final class ActivityRunsQueryByPipelineRunSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * DataFlowDebugSession_Delete.json + * ActivityRuns_QueryByPipelineRun.json */ /** - * Sample code: DataFlowDebugSession_Delete. + * Sample code: ActivityRuns_QueryByPipelineRun. * * @param manager Entry point to DataFactoryManager. */ - public static void dataFlowDebugSessionDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlowDebugSessions() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", - new DeleteDataFlowDebugSessionRequest().withSessionId("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"), + public static void + activityRunsQueryByPipelineRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.activityRuns() + .queryByPipelineRunWithResponse("exampleResourceGroup", "exampleFactoryName", + "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", + new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) + .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")), com.azure.core.util.Context.NONE); } } ``` -### TriggerRuns_RerunSync +### TriggerRuns_QueryByFactory ```java /** - * Samples for Datasets ListByFactorySync. + * Samples for ChangeDataCapture Start. */ -public final class DatasetsListByFactorySyncSamples { +public final class ChangeDataCaptureStartSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Datasets_ListByFactory.json + * ChangeDataCapture_Start.json */ /** - * Sample code: Datasets_ListByFactory. + * Sample code: ChangeDataCapture_Start. * * @param manager Entry point to DataFactoryManager. */ - public static void datasetsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.datasets() - .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); + public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.changeDataCaptures() + .startWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", + com.azure.core.util.Context.NONE); } } ``` -### Triggers_CreateOrUpdateSync +### TriggerRuns_Rerun ```java -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; - /** - * Samples for IntegrationRuntimes RemoveLinksSync. + * Samples for ChangeDataCapture Stop. */ -public final class IntegrationRuntimesRemoveLinksSyncSamples { +public final class ChangeDataCaptureStopSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_RemoveLinks.json + * ChangeDataCapture_Stop.json */ /** - * Sample code: IntegrationRuntimes_Upgrade. + * Sample code: ChangeDataCapture_Stop. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .removeLinksWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("exampleFactoryName-linked"), + public static void changeDataCaptureStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.changeDataCaptures() + .stopWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", com.azure.core.util.Context.NONE); } } ``` -### Triggers_DeleteSync +### Triggers_CreateOrUpdate ```java /** - * Samples for IntegrationRuntimes GetConnectionInfoSync. + * Samples for ChangeDataCapture ListByFactory. */ -public final class IntegrationRuntimesGetConnectionInfoSyncSamples { +public final class ChangeDataCaptureListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_GetConnectionInfo.json + * ChangeDataCapture_ListByFactory.json */ /** - * Sample code: IntegrationRuntimes_GetConnectionInfo. + * Sample code: ChangeDataCapture_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ public static void - integrationRuntimesGetConnectionInfo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .getConnectionInfoWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + changeDataCaptureListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.changeDataCaptures() + .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } ``` -### Triggers_GetEventSubscriptionStatusSync +### Triggers_Delete ```java /** - * Samples for Triggers GetSync. + * Samples for Datasets Get. */ -public final class TriggersGetSyncSamples { +public final class DatasetsGetSamples { /* * x-ms-original-file: - * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json */ /** - * Sample code: Triggers_Get. + * Sample code: Datasets_Get. * * @param manager Entry point to DataFactoryManager. */ - public static void triggersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null, + public static void datasetsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.datasets() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, com.azure.core.util.Context.NONE); } } ``` -### Triggers_GetSync +### Triggers_Get ```java import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; @@ -3177,62 +3143,86 @@ public final class DataFlowDebugSessionExecuteCommandSamples { } ``` -### Triggers_ListByFactorySync +### Triggers_GetEventSubscriptionStatus ```java /** - * Samples for IntegrationRuntimeNodes GetIpAddressSync. + * Samples for PrivateEndpointConnectionOperation Get. */ -public final class IntegrationRuntimeNodesGetIpAddressSyncSamples { +public final class PrivateEndpointConnectionOperationGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimeNodes_GetIpAddress.json + * GetPrivateEndpointConnection.json */ /** - * Sample code: IntegrationRuntimeNodes_GetIpAddress. + * Sample code: Get a private endpoint connection for a datafactory. * * @param manager Entry point to DataFactoryManager. */ public static void - integrationRuntimeNodesGetIpAddress(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimeNodes() - .getIpAddressWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", - "Node_1", com.azure.core.util.Context.NONE); + getAPrivateEndpointConnectionForADatafactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.privateEndpointConnectionOperations() + .getWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", null, + com.azure.core.util.Context.NONE); } } ``` -### Triggers_QueryByFactorySync +### Triggers_ListByFactory ```java -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.time.OffsetDateTime; -import java.util.Arrays; +import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeyName; +import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; /** - * Samples for TriggerRuns QueryByFactorySync. + * Samples for IntegrationRuntimes RegenerateAuthKey. */ -public final class TriggerRunsQueryByFactorySyncSamples { +public final class IntegrationRuntimesRegenerateAuthKeySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * TriggerRuns_QueryByFactory.json + * IntegrationRuntimes_RegenerateAuthKey.json */ /** - * Sample code: TriggerRuns_QueryByFactory. + * Sample code: IntegrationRuntimes_RegenerateAuthKey. * * @param manager Entry point to DataFactoryManager. */ - public static void triggerRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggerRuns() - .queryByFactoryWithResponse("exampleResourceGroup", "exampleFactoryName", - new RunFilterParameters().withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) - .withFilters(Arrays.asList(new RunQueryFilter().withOperand(RunQueryFilterOperand.TRIGGER_NAME) - .withOperator(RunQueryFilterOperator.EQUALS) - .withValues(Arrays.asList("exampleTrigger")))), + public static void + integrationRuntimesRegenerateAuthKey(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.integrationRuntimes() + .regenerateAuthKeyWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", + new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), + com.azure.core.util.Context.NONE); + } +} +``` + +### Triggers_QueryByFactory + +```java +import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; + +/** + * Samples for Factories GetDataPlaneAccess. + */ +public final class FactoriesGetDataPlaneAccessSamples { + /* + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ + * Factories_GetDataPlaneAccess.json + */ + /** + * Sample code: Factories_GetDataPlaneAccess. + * + * @param manager Entry point to DataFactoryManager. + */ + public static void factoriesGetDataPlaneAccess(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.factories() + .getDataPlaneAccessWithResponse("exampleResourceGroup", "exampleFactoryName", + new UserAccessPolicy().withPermissions("r") + .withAccessResourcePath("") + .withProfileName("DefaultProfile") + .withStartTime("2018-11-10T02:46:20.2659347Z") + .withExpireTime("2018-11-10T09:46:20.2659347Z"), com.azure.core.util.Context.NONE); } } @@ -3242,20 +3232,20 @@ public final class TriggerRunsQueryByFactorySyncSamples { ```java /** - * Samples for LinkedServices ListByFactorySync. + * Samples for Datasets ListByFactory. */ -public final class LinkedServicesListByFactorySyncSamples { +public final class DatasetsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * LinkedServices_ListByFactory.json + * Datasets_ListByFactory.json */ /** - * Sample code: LinkedServices_ListByFactory. + * Sample code: Datasets_ListByFactory. * * @param manager Entry point to DataFactoryManager. */ - public static void linkedServicesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.linkedServices() + public static void datasetsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.datasets() .listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE); } } @@ -3264,30 +3254,24 @@ public final class LinkedServicesListByFactorySyncSamples { ### Triggers_Stop ```java -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; - /** - * Samples for Factories GetDataPlaneAccessSync. + * Samples for TriggerRuns Cancel. */ -public final class FactoriesGetDataPlaneAccessSyncSamples { +public final class TriggerRunsCancelSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * Factories_GetDataPlaneAccess.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel. + * json */ /** - * Sample code: Factories_GetDataPlaneAccess. + * Sample code: Triggers_Cancel. * * @param manager Entry point to DataFactoryManager. */ - public static void factoriesGetDataPlaneAccess(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories() - .getDataPlaneAccessWithResponse("exampleResourceGroup", "exampleFactoryName", - new UserAccessPolicy().withPermissions("r") - .withAccessResourcePath("") - .withProfileName("DefaultProfile") - .withStartTime("2018-11-10T02:46:20.2659347Z") - .withExpireTime("2018-11-10T09:46:20.2659347Z"), - com.azure.core.util.Context.NONE); + public static void triggersCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { + manager.triggerRuns() + .cancelWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", + "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", com.azure.core.util.Context.NONE); } } ``` @@ -3295,32 +3279,48 @@ public final class FactoriesGetDataPlaneAccessSyncSamples { ### Triggers_SubscribeToEvents ```java -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; /** - * Samples for IntegrationRuntimes CreateLinkedIntegrationRuntimeSync. + * Samples for Pipelines CreateRun. */ -public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples { +public final class PipelinesCreateRunSamples { /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ - * IntegrationRuntimes_CreateLinkedIntegrationRuntime.json + * x-ms-original-file: + * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun. + * json */ /** - * Sample code: IntegrationRuntimes_CreateLinkedIntegrationRuntime. + * Sample code: Pipelines_CreateRun. * * @param manager Entry point to DataFactoryManager. */ - public static void integrationRuntimesCreateLinkedIntegrationRuntime( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes() - .createLinkedIntegrationRuntimeWithResponse("exampleResourceGroup", "exampleFactoryName", - "exampleIntegrationRuntime", - new CreateLinkedIntegrationRuntimeRequest().withName("bfa92911-9fb6-4fbe-8f23-beae87bc1c83") - .withSubscriptionId("061774c7-4b5a-4159-a55b-365581830283") - .withDataFactoryName("e9955d6d-56ea-4be3-841c-52a12c1a9981") - .withDataFactoryLocation("West US"), + public static void pipelinesCreateRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) + throws IOException { + manager.pipelines() + .createRunWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, null, null, + null, + mapOf("OutputBlobNameList", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)), com.azure.core.util.Context.NONE); } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } } ``` @@ -3328,9 +3328,9 @@ public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples ```java /** - * Samples for TriggerRuns RerunSync. + * Samples for TriggerRuns Rerun. */ -public final class TriggerRunsRerunSyncSamples { +public final class TriggerRunsRerunSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml index 3ad4431a3d79..d36ae43a832e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml +++ b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml @@ -45,6 +45,7 @@ UTF-8 0 0 + true diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java index b0682f3245e0..f47a32db48c1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.datafactory.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleAuthenticationType; import com.azure.resourcemanager.datafactory.models.SecretBase; import java.io.IOException; @@ -20,15 +20,100 @@ public final class AmazonRdsForLinkedServiceTypeProperties implements JsonSerializable { /* - * The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Only used for Version 1.0. */ private Object connectionString; + /* + * The location of AmazonRdsForOracle database you want to connect to, the supported forms include connector + * descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). Type: string. Only + * used for Version 2.0. + */ + private Object server; + + /* + * Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0. + */ + private AmazonRdsForOracleAuthenticationType authenticationType; + + /* + * The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. + */ + private Object username; + /* * The Azure key vault secret reference of password in connection string. */ private SecretBase password; + /* + * Specifies the encryption client behavior. Supported values are accepted, rejected, requested or required, default + * value is required. Type: string. Only used for Version 2.0. + */ + private Object encryptionClient; + + /* + * Specifies the encryption algorithms that client can use. Supported values are AES128, AES192, AES256, 3DES112, + * 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + */ + private Object encryptionTypesClient; + + /* + * Specifies the desired data integrity behavior when this client connects to a server. Supported values are + * accepted, rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + */ + private Object cryptoChecksumClient; + + /* + * Specifies the crypto-checksum algorithms that client can use. Supported values are SHA1, SHA256, SHA384, SHA512, + * default value is (SHA512). Type: string. Only used for Version 2.0. + */ + private Object cryptoChecksumTypesClient; + + /* + * Specifies the amount that the source initially fetches for LOB columns, default value is 0. Type: integer. Only + * used for Version 2.0. + */ + private Object initialLobFetchSize; + + /* + * Specifies the number of bytes that the driver allocates to fetch the data in one database round-trip, default + * value is 10485760. Type: integer. Only used for Version 2.0. + */ + private Object fetchSize; + + /* + * Specifies the number of cursors or statements to be cached for each database connection, default value is 0. + * Type: integer. Only used for Version 2.0. + */ + private Object statementCacheSize; + + /* + * Specifies a command that is issued immediately after connecting to the database to manage session settings. Type: + * string. Only used for Version 2.0. + */ + private Object initializationString; + + /* + * Specifies whether to use bulk copy or batch insert when loading data into the database, default value is true. + * Type: boolean. Only used for Version 2.0. + */ + private Object enableBulkLoad; + + /* + * Specifies whether to use the Version 1.0 data type mappings. Do not set this to true unless you want to keep + * backward compatibility with Version 1.0's data type mappings, default value is false. Type: boolean. Only used + * for Version 2.0. + */ + private Object supportV1DataTypes; + + /* + * Specifies whether the driver returns column value with the TIMESTAMP WITH TIME ZONE data type as DateTime or + * string. This setting is ignored if supportV1DataTypes is not true, default value is true. Type: boolean. Only + * used for Version 2.0. + */ + private Object fetchTswtzAsTimestamp; + /* * The encrypted credential used for authentication. Credentials are encrypted using the integration runtime * credential manager. Type: string. @@ -43,7 +128,7 @@ public AmazonRdsForLinkedServiceTypeProperties() { /** * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @return the connectionString value. */ @@ -53,7 +138,7 @@ public Object connectionString() { /** * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @param connectionString the connectionString value to set. * @return the AmazonRdsForLinkedServiceTypeProperties object itself. @@ -63,6 +148,73 @@ public AmazonRdsForLinkedServiceTypeProperties withConnectionString(Object conne return this; } + /** + * Get the server property: The location of AmazonRdsForOracle database you want to connect to, the supported forms + * include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). + * Type: string. Only used for Version 2.0. + * + * @return the server value. + */ + public Object server() { + return this.server; + } + + /** + * Set the server property: The location of AmazonRdsForOracle database you want to connect to, the supported forms + * include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). + * Type: string. Only used for Version 2.0. + * + * @param server the server value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the authenticationType property: Authentication type for connecting to the AmazonRdsForOracle database. Only + * used for Version 2.0. + * + * @return the authenticationType value. + */ + public AmazonRdsForOracleAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType property: Authentication type for connecting to the AmazonRdsForOracle database. Only + * used for Version 2.0. + * + * @param authenticationType the authenticationType value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties + withAuthenticationType(AmazonRdsForOracleAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username property: The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. + * + * @return the username value. + */ + public Object username() { + return this.username; + } + + /** + * Set the username property: The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. + * + * @param username the username value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withUsername(Object username) { + this.username = username; + return this; + } + /** * Get the password property: The Azure key vault secret reference of password in connection string. * @@ -83,6 +235,256 @@ public AmazonRdsForLinkedServiceTypeProperties withPassword(SecretBase password) return this; } + /** + * Get the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @return the encryptionClient value. + */ + public Object encryptionClient() { + return this.encryptionClient; + } + + /** + * Set the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @param encryptionClient the encryptionClient value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withEncryptionClient(Object encryptionClient) { + this.encryptionClient = encryptionClient; + return this; + } + + /** + * Get the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @return the encryptionTypesClient value. + */ + public Object encryptionTypesClient() { + return this.encryptionTypesClient; + } + + /** + * Set the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @param encryptionTypesClient the encryptionTypesClient value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withEncryptionTypesClient(Object encryptionTypesClient) { + this.encryptionTypesClient = encryptionTypesClient; + return this; + } + + /** + * Get the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @return the cryptoChecksumClient value. + */ + public Object cryptoChecksumClient() { + return this.cryptoChecksumClient; + } + + /** + * Set the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @param cryptoChecksumClient the cryptoChecksumClient value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withCryptoChecksumClient(Object cryptoChecksumClient) { + this.cryptoChecksumClient = cryptoChecksumClient; + return this; + } + + /** + * Get the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @return the cryptoChecksumTypesClient value. + */ + public Object cryptoChecksumTypesClient() { + return this.cryptoChecksumTypesClient; + } + + /** + * Set the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @param cryptoChecksumTypesClient the cryptoChecksumTypesClient value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withCryptoChecksumTypesClient(Object cryptoChecksumTypesClient) { + this.cryptoChecksumTypesClient = cryptoChecksumTypesClient; + return this; + } + + /** + * Get the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the initialLobFetchSize value. + */ + public Object initialLobFetchSize() { + return this.initialLobFetchSize; + } + + /** + * Set the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @param initialLobFetchSize the initialLobFetchSize value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withInitialLobFetchSize(Object initialLobFetchSize) { + this.initialLobFetchSize = initialLobFetchSize; + return this; + } + + /** + * Get the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @return the fetchSize value. + */ + public Object fetchSize() { + return this.fetchSize; + } + + /** + * Set the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @param fetchSize the fetchSize value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withFetchSize(Object fetchSize) { + this.fetchSize = fetchSize; + return this; + } + + /** + * Get the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the statementCacheSize value. + */ + public Object statementCacheSize() { + return this.statementCacheSize; + } + + /** + * Set the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @param statementCacheSize the statementCacheSize value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withStatementCacheSize(Object statementCacheSize) { + this.statementCacheSize = statementCacheSize; + return this; + } + + /** + * Get the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @return the initializationString value. + */ + public Object initializationString() { + return this.initializationString; + } + + /** + * Set the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @param initializationString the initializationString value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withInitializationString(Object initializationString) { + this.initializationString = initializationString; + return this; + } + + /** + * Get the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @return the enableBulkLoad value. + */ + public Object enableBulkLoad() { + return this.enableBulkLoad; + } + + /** + * Set the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @param enableBulkLoad the enableBulkLoad value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withEnableBulkLoad(Object enableBulkLoad) { + this.enableBulkLoad = enableBulkLoad; + return this; + } + + /** + * Get the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @return the supportV1DataTypes value. + */ + public Object supportV1DataTypes() { + return this.supportV1DataTypes; + } + + /** + * Set the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @param supportV1DataTypes the supportV1DataTypes value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withSupportV1DataTypes(Object supportV1DataTypes) { + this.supportV1DataTypes = supportV1DataTypes; + return this; + } + + /** + * Get the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @return the fetchTswtzAsTimestamp value. + */ + public Object fetchTswtzAsTimestamp() { + return this.fetchTswtzAsTimestamp; + } + + /** + * Set the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @param fetchTswtzAsTimestamp the fetchTswtzAsTimestamp value to set. + * @return the AmazonRdsForLinkedServiceTypeProperties object itself. + */ + public AmazonRdsForLinkedServiceTypeProperties withFetchTswtzAsTimestamp(Object fetchTswtzAsTimestamp) { + this.fetchTswtzAsTimestamp = fetchTswtzAsTimestamp; + return this; + } + /** * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted * using the integration runtime credential manager. Type: string. @@ -111,18 +513,11 @@ public AmazonRdsForLinkedServiceTypeProperties withEncryptedCredential(String en * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (connectionString() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property connectionString in model AmazonRdsForLinkedServiceTypeProperties")); - } if (password() != null) { password().validate(); } } - private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForLinkedServiceTypeProperties.class); - /** * {@inheritDoc} */ @@ -130,7 +525,22 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeUntypedField("connectionString", this.connectionString); + jsonWriter.writeUntypedField("server", this.server); + jsonWriter.writeStringField("authenticationType", + this.authenticationType == null ? null : this.authenticationType.toString()); + jsonWriter.writeUntypedField("username", this.username); jsonWriter.writeJsonField("password", this.password); + jsonWriter.writeUntypedField("encryptionClient", this.encryptionClient); + jsonWriter.writeUntypedField("encryptionTypesClient", this.encryptionTypesClient); + jsonWriter.writeUntypedField("cryptoChecksumClient", this.cryptoChecksumClient); + jsonWriter.writeUntypedField("cryptoChecksumTypesClient", this.cryptoChecksumTypesClient); + jsonWriter.writeUntypedField("initialLobFetchSize", this.initialLobFetchSize); + jsonWriter.writeUntypedField("fetchSize", this.fetchSize); + jsonWriter.writeUntypedField("statementCacheSize", this.statementCacheSize); + jsonWriter.writeUntypedField("initializationString", this.initializationString); + jsonWriter.writeUntypedField("enableBulkLoad", this.enableBulkLoad); + jsonWriter.writeUntypedField("supportV1DataTypes", this.supportV1DataTypes); + jsonWriter.writeUntypedField("fetchTswtzAsTimestamp", this.fetchTswtzAsTimestamp); jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential); return jsonWriter.writeEndObject(); } @@ -141,7 +551,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AmazonRdsForLinkedServiceTypeProperties if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AmazonRdsForLinkedServiceTypeProperties. */ public static AmazonRdsForLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException { @@ -154,8 +563,38 @@ public static AmazonRdsForLinkedServiceTypeProperties fromJson(JsonReader jsonRe if ("connectionString".equals(fieldName)) { deserializedAmazonRdsForLinkedServiceTypeProperties.connectionString = reader.readUntyped(); + } else if ("server".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.server = reader.readUntyped(); + } else if ("authenticationType".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.authenticationType + = AmazonRdsForOracleAuthenticationType.fromString(reader.getString()); + } else if ("username".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.username = reader.readUntyped(); } else if ("password".equals(fieldName)) { deserializedAmazonRdsForLinkedServiceTypeProperties.password = SecretBase.fromJson(reader); + } else if ("encryptionClient".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.encryptionClient = reader.readUntyped(); + } else if ("encryptionTypesClient".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.encryptionTypesClient = reader.readUntyped(); + } else if ("cryptoChecksumClient".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.cryptoChecksumClient = reader.readUntyped(); + } else if ("cryptoChecksumTypesClient".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.cryptoChecksumTypesClient + = reader.readUntyped(); + } else if ("initialLobFetchSize".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.initialLobFetchSize = reader.readUntyped(); + } else if ("fetchSize".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.fetchSize = reader.readUntyped(); + } else if ("statementCacheSize".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.statementCacheSize = reader.readUntyped(); + } else if ("initializationString".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.initializationString = reader.readUntyped(); + } else if ("enableBulkLoad".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.enableBulkLoad = reader.readUntyped(); + } else if ("supportV1DataTypes".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.supportV1DataTypes = reader.readUntyped(); + } else if ("fetchTswtzAsTimestamp".equals(fieldName)) { + deserializedAmazonRdsForLinkedServiceTypeProperties.fetchTswtzAsTimestamp = reader.readUntyped(); } else if ("encryptedCredential".equals(fieldName)) { deserializedAmazonRdsForLinkedServiceTypeProperties.encryptedCredential = reader.getString(); } else { diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java index e265b16d8d06..5777137a9c7f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java @@ -135,6 +135,11 @@ public final class AzureDatabricksLinkedServiceTypeProperties */ private CredentialReference credential; + /* + * The data security mode for the Databricks Cluster. Type: string (or Expression with resultType string). + */ + private Object dataSecurityMode; + /** * Creates an instance of AzureDatabricksLinkedServiceTypeProperties class. */ @@ -572,6 +577,28 @@ public AzureDatabricksLinkedServiceTypeProperties withCredential(CredentialRefer return this; } + /** + * Get the dataSecurityMode property: The data security mode for the Databricks Cluster. Type: string (or Expression + * with resultType string). + * + * @return the dataSecurityMode value. + */ + public Object dataSecurityMode() { + return this.dataSecurityMode; + } + + /** + * Set the dataSecurityMode property: The data security mode for the Databricks Cluster. Type: string (or Expression + * with resultType string). + * + * @param dataSecurityMode the dataSecurityMode value to set. + * @return the AzureDatabricksLinkedServiceTypeProperties object itself. + */ + public AzureDatabricksLinkedServiceTypeProperties withDataSecurityMode(Object dataSecurityMode) { + this.dataSecurityMode = dataSecurityMode; + return this; + } + /** * Validates the instance. * @@ -621,6 +648,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential); jsonWriter.writeUntypedField("policyId", this.policyId); jsonWriter.writeJsonField("credential", this.credential); + jsonWriter.writeUntypedField("dataSecurityMode", this.dataSecurityMode); return jsonWriter.writeEndObject(); } @@ -687,6 +715,8 @@ public static AzureDatabricksLinkedServiceTypeProperties fromJson(JsonReader jso } else if ("credential".equals(fieldName)) { deserializedAzureDatabricksLinkedServiceTypeProperties.credential = CredentialReference.fromJson(reader); + } else if ("dataSecurityMode".equals(fieldName)) { + deserializedAzureDatabricksLinkedServiceTypeProperties.dataSecurityMode = reader.readUntyped(); } else { reader.skipChildren(); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java index 5c26cb6e200a..3b469e33beb0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ActivityRunsClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.ActivityRunsClient; import com.azure.resourcemanager.datafactory.fluent.models.ActivityRunsQueryResponseInner; import com.azure.resourcemanager.datafactory.models.RunFilterParameters; @@ -70,17 +69,6 @@ Mono> queryByPipelineRun(@HostParam("$h @PathParam("runId") String runId, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") RunFilterParameters filterParameters, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response queryByPipelineRunSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("runId") String runId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RunFilterParameters filterParameters, @HeaderParam("Accept") String accept, - Context context); } /** @@ -130,6 +118,52 @@ private Mono> queryByPipelineRunWithRes .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Query activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param filterParameters Parameters to filter the activity runs. + * @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 activity runs along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> queryByPipelineRunWithResponseAsync(String resourceGroupName, + String factoryName, String runId, RunFilterParameters filterParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (runId == null) { + return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); + } + if (filterParameters == null) { + return Mono + .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); + } else { + filterParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.queryByPipelineRun(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, runId, this.client.getApiVersion(), filterParameters, accept, context); + } + /** * Query activity runs based on input filter conditions. * @@ -165,36 +199,8 @@ private Mono queryByPipelineRunAsync(String reso @ServiceMethod(returns = ReturnType.SINGLE) public Response queryByPipelineRunWithResponse(String resourceGroupName, String factoryName, String runId, RunFilterParameters filterParameters, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - if (filterParameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return service.queryByPipelineRunSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, runId, this.client.getApiVersion(), filterParameters, accept, context); + return queryByPipelineRunWithResponseAsync(resourceGroupName, factoryName, runId, filterParameters, context) + .block(); } /** @@ -215,6 +221,4 @@ public ActivityRunsQueryResponseInner queryByPipelineRun(String resourceGroupNam return queryByPipelineRunWithResponse(resourceGroupName, factoryName, runId, filterParameters, Context.NONE) .getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(ActivityRunsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ChangeDataCapturesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ChangeDataCapturesClientImpl.java index 0ec6d4bfb969..31914efdfc05 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ChangeDataCapturesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ChangeDataCapturesClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.ChangeDataCapturesClient; import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureListResponse; @@ -76,15 +75,6 @@ Mono> listByFactory(@HostParam("$host") @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}") @ExpectedResponses({ 200 }) @@ -97,18 +87,6 @@ Mono> createOrUpdate(@HostParam("$host" @BodyParam("application/json") ChangeDataCaptureResourceInner changeDataCapture, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("changeDataCaptureName") String changeDataCaptureName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") ChangeDataCaptureResourceInner changeDataCapture, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}") @ExpectedResponses({ 200 }) @@ -120,17 +98,6 @@ Mono> get(@HostParam("$host") String en @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("changeDataCaptureName") String changeDataCaptureName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}") @ExpectedResponses({ 200, 204 }) @@ -141,16 +108,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("changeDataCaptureName") String changeDataCaptureName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("changeDataCaptureName") String changeDataCaptureName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start") @ExpectedResponses({ 200 }) @@ -161,16 +118,6 @@ Mono> start(@HostParam("$host") String endpoint, @PathParam("changeDataCaptureName") String changeDataCaptureName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response startSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("changeDataCaptureName") String changeDataCaptureName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop") @ExpectedResponses({ 200 }) @@ -181,15 +128,6 @@ Mono> stop(@HostParam("$host") String endpoint, @PathParam("changeDataCaptureName") String changeDataCaptureName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response stopSync(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("changeDataCaptureName") String changeDataCaptureName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status") @ExpectedResponses({ 200 }) @@ -200,16 +138,6 @@ Mono> status(@HostParam("$host") String endpoint, @PathParam("changeDataCaptureName") String changeDataCaptureName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response statusSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("changeDataCaptureName") String changeDataCaptureName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -217,14 +145,6 @@ Response statusSync(@HostParam("$host") String endpoint, Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -270,15 +190,38 @@ private Mono> listByFactorySingleP * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of change data capture resources as paginated response with {@link PagedFlux}. + * @return a list of change data capture resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -289,35 +232,12 @@ private PagedFlux listByFactoryAsync(String reso * @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 change data capture resources along with {@link PagedResponse}. + * @return a list of change data capture resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -329,35 +249,13 @@ private PagedResponse listByFactorySinglePage(St * @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 change data capture resources along with {@link PagedResponse}. + * @return a list of change data capture resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, + Context context) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -372,8 +270,7 @@ private PagedResponse listByFactorySinglePage(St */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -390,8 +287,7 @@ public PagedIterable listByFactory(String resour @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -445,6 +341,57 @@ private Mono> createOrUpdateWithRespons .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a change data capture resource. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param changeDataCaptureName The change data capture name. + * @param changeDataCapture Change data capture resource definition. + * @param ifMatch ETag of the change data capture entity. Should only be specified for update, for which it should + * match existing entity or can be * for unconditional update. + * @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 change data capture resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String changeDataCaptureName, ChangeDataCaptureResourceInner changeDataCapture, + String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (changeDataCaptureName == null) { + return Mono + .error(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); + } + if (changeDataCapture == null) { + return Mono + .error(new IllegalArgumentException("Parameter changeDataCapture is required and cannot be null.")); + } else { + changeDataCapture.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, changeDataCaptureName, this.client.getApiVersion(), ifMatch, changeDataCapture, accept, + context); + } + /** * Creates or updates a change data capture resource. * @@ -484,38 +431,8 @@ private Mono createOrUpdateAsync(String resource public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String changeDataCaptureName, ChangeDataCaptureResourceInner changeDataCapture, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (changeDataCaptureName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); - } - if (changeDataCapture == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter changeDataCapture is required and cannot be null.")); - } else { - changeDataCapture.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, changeDataCaptureName, this.client.getApiVersion(), ifMatch, changeDataCapture, accept, - context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, changeDataCaptureName, changeDataCapture, + ifMatch, context).block(); } /** @@ -581,6 +498,48 @@ private Mono> getWithResponseAsync(Stri .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a change data capture. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param changeDataCaptureName The change data capture name. + * @param ifNoneMatch ETag of the change data capture entity. Should only be specified for get. If the ETag matches + * the existing entity tag, or if * was provided, then no content will be returned. + * @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 change data capture along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String changeDataCaptureName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (changeDataCaptureName == null) { + return Mono + .error(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + changeDataCaptureName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a change data capture. * @@ -617,31 +576,8 @@ private Mono getAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String changeDataCaptureName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (changeDataCaptureName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, changeDataCaptureName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, changeDataCaptureName, ifNoneMatch, context) + .block(); } /** @@ -703,6 +639,46 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a change data capture. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param changeDataCaptureName The change data capture name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String changeDataCaptureName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (changeDataCaptureName == null) { + return Mono + .error(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, changeDataCaptureName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a change data capture. * @@ -735,31 +711,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String changeDataCaptureName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (changeDataCaptureName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, changeDataCaptureName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, changeDataCaptureName, context).block(); } /** @@ -817,6 +769,46 @@ private Mono> startWithResponseAsync(String resourceGroupName, St .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Starts a change data capture. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param changeDataCaptureName The change data capture name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> startWithResponseAsync(String resourceGroupName, String factoryName, + String changeDataCaptureName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (changeDataCaptureName == null) { + return Mono + .error(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.start(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + changeDataCaptureName, this.client.getApiVersion(), accept, context); + } + /** * Starts a change data capture. * @@ -849,31 +841,7 @@ private Mono startAsync(String resourceGroupName, String factoryName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response startWithResponse(String resourceGroupName, String factoryName, String changeDataCaptureName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (changeDataCaptureName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, changeDataCaptureName, this.client.getApiVersion(), accept, context); + return startWithResponseAsync(resourceGroupName, factoryName, changeDataCaptureName, context).block(); } /** @@ -931,6 +899,46 @@ private Mono> stopWithResponseAsync(String resourceGroupName, Str .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Stops a change data capture. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param changeDataCaptureName The change data capture name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> stopWithResponseAsync(String resourceGroupName, String factoryName, + String changeDataCaptureName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (changeDataCaptureName == null) { + return Mono + .error(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.stop(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + changeDataCaptureName, this.client.getApiVersion(), accept, context); + } + /** * Stops a change data capture. * @@ -963,31 +971,7 @@ private Mono stopAsync(String resourceGroupName, String factoryName, Strin @ServiceMethod(returns = ReturnType.SINGLE) public Response stopWithResponse(String resourceGroupName, String factoryName, String changeDataCaptureName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (changeDataCaptureName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, changeDataCaptureName, this.client.getApiVersion(), accept, context); + return stopWithResponseAsync(resourceGroupName, factoryName, changeDataCaptureName, context).block(); } /** @@ -1046,6 +1030,47 @@ private Mono> statusWithResponseAsync(String resourceGroupName, .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets the current status for the change data capture resource. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param changeDataCaptureName The change data capture name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status for the change data capture resource along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> statusWithResponseAsync(String resourceGroupName, String factoryName, + String changeDataCaptureName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (changeDataCaptureName == null) { + return Mono + .error(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.status(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, changeDataCaptureName, this.client.getApiVersion(), accept, context); + } + /** * Gets the current status for the change data capture resource. * @@ -1078,31 +1103,7 @@ private Mono statusAsync(String resourceGroupName, String factoryName, S @ServiceMethod(returns = ReturnType.SINGLE) public Response statusWithResponse(String resourceGroupName, String factoryName, String changeDataCaptureName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (changeDataCaptureName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter changeDataCaptureName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.statusSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, changeDataCaptureName, this.client.getApiVersion(), accept, context); + return statusWithResponseAsync(resourceGroupName, factoryName, changeDataCaptureName, context).block(); } /** @@ -1148,33 +1149,6 @@ private Mono> listByFactoryNextSin .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. - * @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 change data capture resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -1183,26 +1157,23 @@ private PagedResponse listByFactoryNextSinglePag * @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 change data capture resources along with {@link PagedResponse}. + * @return a list of change data capture resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, + private Mono> listByFactoryNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(ChangeDataCapturesClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsClientImpl.java index 0ab9f46a6f01..2b1c1c3713d2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/CredentialOperationsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.CredentialOperationsClient; import com.azure.resourcemanager.datafactory.fluent.models.CredentialResourceInner; import com.azure.resourcemanager.datafactory.models.CredentialListResponse; @@ -75,15 +74,6 @@ Mono> listByFactory(@HostParam("$host") String @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}") @ExpectedResponses({ 200 }) @@ -95,17 +85,6 @@ Mono> createOrUpdate(@HostParam("$host") Strin @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") CredentialResourceInner credential, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("credentialName") String credentialName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") CredentialResourceInner credential, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}") @ExpectedResponses({ 200, 304 }) @@ -116,16 +95,6 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("credentialName") String credentialName, @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}") - @ExpectedResponses({ 200, 304 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("credentialName") String credentialName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}") @ExpectedResponses({ 200, 204 }) @@ -136,16 +105,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("credentialName") String credentialName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("credentialName") String credentialName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -153,14 +112,6 @@ Response deleteSync(@HostParam("$host") String endpoint, Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -205,15 +156,37 @@ private Mono> listByFactorySinglePageAsyn * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources as paginated response with {@link PagedFlux}. + * @return a list of credential resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -224,35 +197,12 @@ private PagedFlux listByFactoryAsync(String resourceGro * @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 credential resources along with {@link PagedResponse}. + * @return a list of credential resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -264,35 +214,13 @@ private PagedResponse listByFactorySinglePage(String re * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of credential resources along with {@link PagedResponse}. + * @return a list of credential resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -307,8 +235,7 @@ private PagedResponse listByFactorySinglePage(String re */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -325,8 +252,7 @@ public PagedIterable listByFactory(String resourceGroup @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -377,6 +303,54 @@ private Mono> createOrUpdateWithResponseAsync( .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a credential. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name. + * @param credential Credential resource definition. + * @param ifMatch ETag of the credential entity. Should only be specified for update, for which it should match + * existing entity or can be * for unconditional update. + * @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 credential resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String credentialName, CredentialResourceInner credential, String ifMatch, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (credentialName == null) { + return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); + } + if (credential == null) { + return Mono.error(new IllegalArgumentException("Parameter credential is required and cannot be null.")); + } else { + credential.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, credentialName, this.client.getApiVersion(), ifMatch, credential, accept, context); + } + /** * Creates or updates a credential. * @@ -415,37 +389,8 @@ private Mono createOrUpdateAsync(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String credentialName, CredentialResourceInner credential, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - if (credential == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter credential is required and cannot be null.")); - } else { - credential.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, credentialName, this.client.getApiVersion(), ifMatch, credential, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, credentialName, credential, ifMatch, + context).block(); } /** @@ -510,6 +455,47 @@ private Mono> getWithResponseAsync(String reso .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a credential. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name. + * @param ifNoneMatch ETag of the credential entity. Should only be specified for get. If the ETag matches the + * existing entity tag, or if * was provided, then no content will be returned. + * @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 credential along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String factoryName, + String credentialName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (credentialName == null) { + return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + credentialName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a credential. * @@ -546,31 +532,7 @@ private Mono getAsync(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String credentialName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, credentialName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, credentialName, ifNoneMatch, context).block(); } /** @@ -629,6 +591,45 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a credential. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String credentialName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (credentialName == null) { + return Mono.error(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, credentialName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a credential. * @@ -660,31 +661,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String credentialName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (credentialName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter credentialName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, credentialName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, credentialName, context).block(); } /** @@ -728,33 +705,6 @@ private Mono> listByFactoryNextSinglePage .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. - * @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 credential resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -763,25 +713,22 @@ private PagedResponse listByFactoryNextSinglePage(Strin * @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 credential resources along with {@link PagedResponse}. + * @return a list of credential resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, Context context) { + private Mono> listByFactoryNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(CredentialOperationsClientImpl.class); } 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 50ced65b620e..a8b083a34e5f 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 @@ -15,15 +15,12 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; -import com.azure.core.management.polling.SyncPollerFactory; -import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.datafactory.fluent.ActivityRunsClient; @@ -550,23 +547,6 @@ public PollerFlux, U> getLroResult(Mono type of poll result. - * @param type of final result. - * @return SyncPoller for poll result and final result. - */ - public SyncPoller, U> getLroResult(Response activationResponse, - Type pollResultType, Type finalResultType, Context context) { - return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, - defaultPollInterval, () -> activationResponse, context); - } - /** * Gets the final result, or an error, based on last async poll response. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java index d97f93791b20..bf97df1977a0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowDebugSessionsClientImpl.java @@ -26,10 +26,8 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.datafactory.fluent.DataFlowDebugSessionsClient; @@ -89,17 +87,6 @@ Mono>> create(@HostParam("$host") String endpoint, @BodyParam("application/json") CreateDataFlowDebugSessionRequest request, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CreateDataFlowDebugSessionRequest request, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions") @ExpectedResponses({ 200 }) @@ -109,15 +96,6 @@ Mono> queryByFactory(@HostParam("$h @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response queryByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession") @ExpectedResponses({ 200 }) @@ -128,16 +106,6 @@ Mono> addDataFlow(@HostParam("$ @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DataFlowDebugPackage request, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response addDataFlowSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DataFlowDebugPackage request, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession") @ExpectedResponses({ 200 }) @@ -149,17 +117,6 @@ Mono> delete(@HostParam("$host") String endpoint, @BodyParam("application/json") DeleteDataFlowDebugSessionRequest request, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DeleteDataFlowDebugSessionRequest request, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand") @ExpectedResponses({ 200, 202 }) @@ -171,17 +128,6 @@ Mono>> executeCommand(@HostParam("$host") String endpo @BodyParam("application/json") DataFlowDebugCommandRequest request, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response executeCommandSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataFlowDebugCommandRequest request, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -189,14 +135,6 @@ Response executeCommandSync(@HostParam("$host") String endpoint, Mono> queryByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response queryByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -247,41 +185,40 @@ private Mono>> createWithResponseAsync(String resource * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param request Data flow debug session definition. + * @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 response body structure for creating data flow debug session along with {@link Response}. + * @return response body structure for creating data flow debug session along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createWithResponse(String resourceGroupName, String factoryName, - CreateDataFlowDebugSessionRequest request) { + private Mono>> createWithResponseAsync(String resourceGroupName, String factoryName, + CreateDataFlowDebugSessionRequest request, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (request == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter request is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); } else { request.validate(); } final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), request, accept, Context.NONE); + context = this.client.mergeContext(context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), request, accept, context); } /** @@ -290,42 +227,19 @@ private Response createWithResponse(String resourceGroupName, String * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param request Data flow debug session definition. - * @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 response body structure for creating data flow debug session along with {@link Response}. + * @return the {@link PollerFlux} for polling of response body structure for creating data flow debug session. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createWithResponse(String resourceGroupName, String factoryName, - CreateDataFlowDebugSessionRequest request, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return service.createSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), request, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, CreateDataFlowDebugSessionResponseInner> + beginCreateAsync(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { + Mono>> mono = createWithResponseAsync(resourceGroupName, factoryName, request); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), CreateDataFlowDebugSessionResponseInner.class, + CreateDataFlowDebugSessionResponseInner.class, this.client.getContext()); } /** @@ -334,6 +248,7 @@ private Response createWithResponse(String resourceGroupName, String * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param request Data flow debug session definition. + * @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. @@ -341,12 +256,15 @@ private Response createWithResponse(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CreateDataFlowDebugSessionResponseInner> - beginCreateAsync(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - Mono>> mono = createWithResponseAsync(resourceGroupName, factoryName, request); + beginCreateAsync(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createWithResponseAsync(resourceGroupName, factoryName, request, context); return this.client .getLroResult(mono, this.client.getHttpPipeline(), CreateDataFlowDebugSessionResponseInner.class, - CreateDataFlowDebugSessionResponseInner.class, this.client.getContext()); + CreateDataFlowDebugSessionResponseInner.class, context); } /** @@ -363,11 +281,7 @@ private Response createWithResponse(String resourceGroupName, String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CreateDataFlowDebugSessionResponseInner> beginCreate(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - Response response = createWithResponse(resourceGroupName, factoryName, request); - return this.client - .getLroResult(response, - CreateDataFlowDebugSessionResponseInner.class, CreateDataFlowDebugSessionResponseInner.class, - Context.NONE); + return this.beginCreateAsync(resourceGroupName, factoryName, request).getSyncPoller(); } /** @@ -386,10 +300,7 @@ private Response createWithResponse(String resourceGroupName, String public SyncPoller, CreateDataFlowDebugSessionResponseInner> beginCreate(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - Response response = createWithResponse(resourceGroupName, factoryName, request, context); - return this.client - .getLroResult(response, - CreateDataFlowDebugSessionResponseInner.class, CreateDataFlowDebugSessionResponseInner.class, context); + return this.beginCreateAsync(resourceGroupName, factoryName, request, context).getSyncPoller(); } /** @@ -410,6 +321,25 @@ private Mono createAsync(String resourc .flatMap(this.client::getLroFinalResultOrError); } + /** + * Creates a data flow debug session. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param request Data flow debug session definition. + * @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 response body structure for creating data flow debug session on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync(String resourceGroupName, String factoryName, + CreateDataFlowDebugSessionRequest request, Context context) { + return beginCreateAsync(resourceGroupName, factoryName, request, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Creates a data flow debug session. * @@ -424,7 +354,7 @@ private Mono createAsync(String resourc @ServiceMethod(returns = ReturnType.SINGLE) public CreateDataFlowDebugSessionResponseInner create(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request) { - return beginCreate(resourceGroupName, factoryName, request).getFinalResult(); + return createAsync(resourceGroupName, factoryName, request).block(); } /** @@ -442,7 +372,7 @@ public CreateDataFlowDebugSessionResponseInner create(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public CreateDataFlowDebugSessionResponseInner create(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context) { - return beginCreate(resourceGroupName, factoryName, request, context).getFinalResult(); + return createAsync(resourceGroupName, factoryName, request, context).block(); } /** @@ -488,15 +418,38 @@ private Mono> queryByFactorySingleP * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of active debug sessions as paginated response with {@link PagedFlux}. + * @return a list of active debug sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux queryByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> queryByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> queryByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> queryByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .queryByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -507,35 +460,12 @@ private PagedFlux queryByFactoryAsync(String reso * @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 active debug sessions along with {@link PagedResponse}. + * @return a list of active debug sessions as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse queryByFactorySinglePage(String resourceGroupName, - String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.queryByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux queryByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> queryByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> queryByFactoryNextSinglePageAsync(nextLink)); } /** @@ -547,35 +477,13 @@ private PagedResponse queryByFactorySinglePage(St * @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 active debug sessions along with {@link PagedResponse}. + * @return a list of active debug sessions as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse queryByFactorySinglePage(String resourceGroupName, - String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.queryByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux queryByFactoryAsync(String resourceGroupName, String factoryName, + Context context) { + return new PagedFlux<>(() -> queryByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> queryByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -590,8 +498,7 @@ private PagedResponse queryByFactorySinglePage(St */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable queryByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> queryByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> queryByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(queryByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -608,8 +515,7 @@ public PagedIterable queryByFactory(String resour @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable queryByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> queryByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> queryByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(queryByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -654,6 +560,48 @@ public PagedIterable queryByFactory(String resour .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Add a data flow into debug session. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param request Data flow debug session definition with debug content. + * @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 response body structure for starting data flow debug session along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> addDataFlowWithResponseAsync( + String resourceGroupName, String factoryName, DataFlowDebugPackage request, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (request == null) { + return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); + } else { + request.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.addDataFlow(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), request, accept, context); + } + /** * Add a data flow into debug session. * @@ -687,33 +635,7 @@ private Mono addDataFlowAsync(String res @ServiceMethod(returns = ReturnType.SINGLE) public Response addDataFlowWithResponse(String resourceGroupName, String factoryName, DataFlowDebugPackage request, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return service.addDataFlowSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), request, accept, context); + return addDataFlowWithResponseAsync(resourceGroupName, factoryName, request, context).block(); } /** @@ -774,6 +696,47 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a data flow debug session. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param request Data flow debug session definition for deletion. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + DeleteDataFlowDebugSessionRequest request, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (request == null) { + return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); + } else { + request.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), request, accept, context); + } + /** * Deletes a data flow debug session. * @@ -806,33 +769,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, DeleteDataFlowDebugSessionRequest request, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), request, accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, request, context).block(); } /** @@ -898,42 +835,40 @@ private Mono>> executeCommandWithResponseAsync(String * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param request Data flow debug command definition. + * @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 response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response}. + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response executeCommandWithResponse(String resourceGroupName, String factoryName, - DataFlowDebugCommandRequest request) { + private Mono>> executeCommandWithResponseAsync(String resourceGroupName, + String factoryName, DataFlowDebugCommandRequest request, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (request == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter request is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); } else { request.validate(); } final String accept = "application/json"; - return service.executeCommandSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), request, accept, Context.NONE); + context = this.client.mergeContext(context); + return service.executeCommand(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), request, accept, context); } /** @@ -942,43 +877,20 @@ private Response executeCommandWithResponse(String resourceGroupName * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param request Data flow debug command definition. - * @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 response body structure of data flow result for data preview, statistics or expression preview along with - * {@link Response}. + * @return the {@link PollerFlux} for polling of response body structure of data flow result for data preview, + * statistics or expression preview. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response executeCommandWithResponse(String resourceGroupName, String factoryName, - DataFlowDebugCommandRequest request, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (request == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter request is required and cannot be null.")); - } else { - request.validate(); - } - final String accept = "application/json"; - return service.executeCommandSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), request, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, DataFlowDebugCommandResponseInner> + beginExecuteCommandAsync(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { + Mono>> mono + = executeCommandWithResponseAsync(resourceGroupName, factoryName, request); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), DataFlowDebugCommandResponseInner.class, + DataFlowDebugCommandResponseInner.class, this.client.getContext()); } /** @@ -987,6 +899,7 @@ private Response executeCommandWithResponse(String resourceGroupName * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param request Data flow debug command definition. + * @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. @@ -995,12 +908,14 @@ private Response executeCommandWithResponse(String resourceGroupName */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataFlowDebugCommandResponseInner> - beginExecuteCommandAsync(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { + beginExecuteCommandAsync(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, + Context context) { + context = this.client.mergeContext(context); Mono>> mono - = executeCommandWithResponseAsync(resourceGroupName, factoryName, request); + = executeCommandWithResponseAsync(resourceGroupName, factoryName, request, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), DataFlowDebugCommandResponseInner.class, - DataFlowDebugCommandResponseInner.class, this.client.getContext()); + DataFlowDebugCommandResponseInner.class, context); } /** @@ -1018,9 +933,7 @@ private Response executeCommandWithResponse(String resourceGroupName @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataFlowDebugCommandResponseInner> beginExecuteCommand(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - Response response = executeCommandWithResponse(resourceGroupName, factoryName, request); - return this.client.getLroResult(response, - DataFlowDebugCommandResponseInner.class, DataFlowDebugCommandResponseInner.class, Context.NONE); + return this.beginExecuteCommandAsync(resourceGroupName, factoryName, request).getSyncPoller(); } /** @@ -1040,9 +953,7 @@ private Response executeCommandWithResponse(String resourceGroupName public SyncPoller, DataFlowDebugCommandResponseInner> beginExecuteCommand(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - Response response = executeCommandWithResponse(resourceGroupName, factoryName, request, context); - return this.client.getLroResult(response, - DataFlowDebugCommandResponseInner.class, DataFlowDebugCommandResponseInner.class, context); + return this.beginExecuteCommandAsync(resourceGroupName, factoryName, request, context).getSyncPoller(); } /** @@ -1064,6 +975,26 @@ private Mono executeCommandAsync(String resou .flatMap(this.client::getLroFinalResultOrError); } + /** + * Execute a data flow debug command. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param request Data flow debug command definition. + * @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 response body structure of data flow result for data preview, statistics or expression preview on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono executeCommandAsync(String resourceGroupName, String factoryName, + DataFlowDebugCommandRequest request, Context context) { + return beginExecuteCommandAsync(resourceGroupName, factoryName, request, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Execute a data flow debug command. * @@ -1078,7 +1009,7 @@ private Mono executeCommandAsync(String resou @ServiceMethod(returns = ReturnType.SINGLE) public DataFlowDebugCommandResponseInner executeCommand(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request) { - return beginExecuteCommand(resourceGroupName, factoryName, request).getFinalResult(); + return executeCommandAsync(resourceGroupName, factoryName, request).block(); } /** @@ -1096,7 +1027,7 @@ public DataFlowDebugCommandResponseInner executeCommand(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) public DataFlowDebugCommandResponseInner executeCommand(String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context) { - return beginExecuteCommand(resourceGroupName, factoryName, request, context).getFinalResult(); + return executeCommandAsync(resourceGroupName, factoryName, request, context).block(); } /** @@ -1126,33 +1057,6 @@ private Mono> queryByFactoryNextSin .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. - * @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 active debug sessions along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse queryByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.queryByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -1161,26 +1065,23 @@ private PagedResponse queryByFactoryNextSinglePag * @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 active debug sessions along with {@link PagedResponse}. + * @return a list of active debug sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse queryByFactoryNextSinglePage(String nextLink, + private Mono> queryByFactoryNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.queryByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.queryByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(DataFlowDebugSessionsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java index 1669ad50c4cf..4f89ad3000a7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFlowsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.DataFlowsClient; import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; import com.azure.resourcemanager.datafactory.models.DataFlowListResponse; @@ -77,17 +76,6 @@ Mono> createOrUpdate(@HostParam("$host") String @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") DataFlowResourceInner dataFlow, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("dataFlowName") String dataFlowName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") DataFlowResourceInner dataFlow, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") @ExpectedResponses({ 200 }) @@ -98,16 +86,6 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("dataFlowName") String dataFlowName, @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("dataFlowName") String dataFlowName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") @ExpectedResponses({ 200, 204 }) @@ -118,16 +96,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("dataFlowName") String dataFlowName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("dataFlowName") String dataFlowName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows") @ExpectedResponses({ 200 }) @@ -137,15 +105,6 @@ Mono> listByFactory(@HostParam("$host") String en @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -153,14 +112,6 @@ Response listByFactorySync(@HostParam("$host") String endp Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -211,6 +162,53 @@ private Mono> createOrUpdateWithResponseAsync(St .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a data flow. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param dataFlowName The data flow name. + * @param dataFlow Data flow resource definition. + * @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match + * existing entity or can be * for unconditional update. + * @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 data flow resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String dataFlowName, DataFlowResourceInner dataFlow, String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (dataFlowName == null) { + return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); + } + if (dataFlow == null) { + return Mono.error(new IllegalArgumentException("Parameter dataFlow is required and cannot be null.")); + } else { + dataFlow.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, dataFlowName, this.client.getApiVersion(), ifMatch, dataFlow, accept, context); + } + /** * Creates or updates a data flow. * @@ -249,37 +247,8 @@ private Mono createOrUpdateAsync(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String dataFlowName, DataFlowResourceInner dataFlow, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - if (dataFlow == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataFlow is required and cannot be null.")); - } else { - dataFlow.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, dataFlowName, this.client.getApiVersion(), ifMatch, dataFlow, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch, context) + .block(); } /** @@ -344,6 +313,47 @@ private Mono> getWithResponseAsync(String resour .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a data flow. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param dataFlowName The data flow name. + * @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the + * existing entity tag, or if * was provided, then no content will be returned. + * @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 data flow along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String factoryName, + String dataFlowName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (dataFlowName == null) { + return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + dataFlowName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a data flow. * @@ -379,31 +389,7 @@ private Mono getAsync(String resourceGroupName, String fa @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String dataFlowName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, dataFlowName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch, context).block(); } /** @@ -462,6 +448,45 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a data flow. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param dataFlowName The data flow name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String dataFlowName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (dataFlowName == null) { + return Mono.error(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, dataFlowName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a data flow. * @@ -493,31 +518,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String dataFlowName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (dataFlowName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataFlowName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, dataFlowName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, dataFlowName, context).block(); } /** @@ -577,15 +578,37 @@ private Mono> listByFactorySinglePageAsync( * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources as paginated response with {@link PagedFlux}. + * @return a list of data flow resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -596,34 +619,12 @@ private PagedFlux listByFactoryAsync(String resourceGroup * @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 data flow resources along with {@link PagedResponse}. + * @return a list of data flow resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -635,35 +636,13 @@ private PagedResponse listByFactorySinglePage(String reso * @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 data flow resources along with {@link PagedResponse}. + * @return a list of data flow resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -678,8 +657,7 @@ private PagedResponse listByFactorySinglePage(String reso */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -696,8 +674,7 @@ public PagedIterable listByFactory(String resourceGroupNa @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -726,33 +703,6 @@ private Mono> listByFactoryNextSinglePageAs .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. - * @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 data flow resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -761,25 +711,22 @@ private PagedResponse listByFactoryNextSinglePage(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of data flow resources along with {@link PagedResponse}. + * @return a list of data flow resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, Context context) { + private Mono> listByFactoryNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(DataFlowsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java index b457051c686d..d1bf65df37e8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DatasetsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.DatasetsClient; import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; import com.azure.resourcemanager.datafactory.models.DatasetListResponse; @@ -74,15 +73,6 @@ Mono> listByFactory(@HostParam("$host") String end @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") @ExpectedResponses({ 200 }) @@ -94,17 +84,6 @@ Mono> createOrUpdate(@HostParam("$host") String e @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") DatasetResourceInner dataset, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("datasetName") String datasetName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") DatasetResourceInner dataset, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") @ExpectedResponses({ 200, 304 }) @@ -115,16 +94,6 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("datasetName") String datasetName, @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") - @ExpectedResponses({ 200, 304 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("datasetName") String datasetName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") @ExpectedResponses({ 200, 204 }) @@ -135,16 +104,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("datasetName") String datasetName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("datasetName") String datasetName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -152,14 +111,6 @@ Response deleteSync(@HostParam("$host") String endpoint, Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -204,15 +155,37 @@ private Mono> listByFactorySinglePageAsync(S * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of dataset resources as paginated response with {@link PagedFlux}. + * @return a list of dataset resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -223,34 +196,12 @@ private PagedFlux listByFactoryAsync(String resourceGroupN * @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 dataset resources along with {@link PagedResponse}. + * @return a list of dataset resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -262,35 +213,13 @@ private PagedResponse listByFactorySinglePage(String resou * @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 dataset resources along with {@link PagedResponse}. + * @return a list of dataset resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -305,8 +234,7 @@ private PagedResponse listByFactorySinglePage(String resou */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -323,8 +251,7 @@ public PagedIterable listByFactory(String resourceGroupNam @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -375,6 +302,53 @@ private Mono> createOrUpdateWithResponseAsync(Str .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param dataset Dataset resource definition. + * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match + * existing entity or can be * for unconditional update. + * @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 dataset resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String datasetName, DatasetResourceInner dataset, String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (datasetName == null) { + return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); + } + if (dataset == null) { + return Mono.error(new IllegalArgumentException("Parameter dataset is required and cannot be null.")); + } else { + dataset.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, datasetName, this.client.getApiVersion(), ifMatch, dataset, accept, context); + } + /** * Creates or updates a dataset. * @@ -413,37 +387,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String datasetName, DatasetResourceInner dataset, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - if (dataset == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataset is required and cannot be null.")); - } else { - dataset.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, datasetName, this.client.getApiVersion(), ifMatch, dataset, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, datasetName, dataset, ifMatch, context) + .block(); } /** @@ -507,6 +452,47 @@ private Mono> getWithResponseAsync(String resourc .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param ifNoneMatch ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing + * entity tag, or if * was provided, then no content will be returned. + * @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 dataset along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String factoryName, + String datasetName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (datasetName == null) { + return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + datasetName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a dataset. * @@ -542,31 +528,7 @@ private Mono getAsync(String resourceGroupName, String fac @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String datasetName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, datasetName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, datasetName, ifNoneMatch, context).block(); } /** @@ -625,6 +587,45 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String datasetName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (datasetName == null) { + return Mono.error(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, datasetName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a dataset. * @@ -656,31 +657,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String datasetName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (datasetName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter datasetName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, datasetName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, datasetName, context).block(); } /** @@ -724,33 +701,6 @@ private Mono> listByFactoryNextSinglePageAsy .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. - * @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 dataset resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -759,25 +709,22 @@ private PagedResponse listByFactoryNextSinglePage(String n * @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 dataset resources along with {@link PagedResponse}. + * @return a list of dataset resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, Context context) { + private Mono> listByFactoryNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(DatasetsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java index 51e04c95d78f..0f8f49c20402 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ExposureControlsClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.ExposureControlsClient; import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; @@ -72,16 +71,6 @@ Mono> getFeatureValue(@HostParam("$host") @BodyParam("application/json") ExposureControlRequest exposureControlRequest, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getFeatureValueSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("locationId") String locationId, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ExposureControlRequest exposureControlRequest, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue") @ExpectedResponses({ 200 }) @@ -93,17 +82,6 @@ Mono> getFeatureValueByFactory(@HostParam @BodyParam("application/json") ExposureControlRequest exposureControlRequest, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getFeatureValueByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ExposureControlRequest exposureControlRequest, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue") @ExpectedResponses({ 200 }) @@ -114,17 +92,6 @@ Mono> queryFeatureValuesByFactory( @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ExposureControlBatchRequest exposureControlBatchRequest, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response queryFeatureValuesByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ExposureControlBatchRequest exposureControlBatchRequest, - @HeaderParam("Accept") String accept, Context context); } /** @@ -165,6 +132,44 @@ private Mono> getFeatureValueWithResponse .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get exposure control feature for specific location. + * + * @param locationId The location identifier. + * @param exposureControlRequest The exposure control request. + * @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 exposure control feature for specific location along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getFeatureValueWithResponseAsync(String locationId, + ExposureControlRequest exposureControlRequest, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (locationId == null) { + return Mono.error(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); + } + if (exposureControlRequest == null) { + return Mono.error( + new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); + } else { + exposureControlRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getFeatureValue(this.client.getEndpoint(), this.client.getSubscriptionId(), locationId, + this.client.getApiVersion(), exposureControlRequest, accept, context); + } + /** * Get exposure control feature for specific location. * @@ -196,29 +201,7 @@ private Mono getFeatureValueAsync(String locationI @ServiceMethod(returns = ReturnType.SINGLE) public Response getFeatureValueWithResponse(String locationId, ExposureControlRequest exposureControlRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (locationId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); - } - if (exposureControlRequest == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); - } else { - exposureControlRequest.validate(); - } - final String accept = "application/json"; - return service.getFeatureValueSync(this.client.getEndpoint(), this.client.getSubscriptionId(), locationId, - this.client.getApiVersion(), exposureControlRequest, accept, context); + return getFeatureValueWithResponseAsync(locationId, exposureControlRequest, context).block(); } /** @@ -281,6 +264,49 @@ private Mono> getFeatureValueByFactoryWit .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get exposure control feature for specific factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param exposureControlRequest The exposure control request. + * @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 exposure control feature for specific factory along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getFeatureValueByFactoryWithResponseAsync( + String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (exposureControlRequest == null) { + return Mono.error( + new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); + } else { + exposureControlRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getFeatureValueByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, factoryName, this.client.getApiVersion(), exposureControlRequest, accept, context); + } + /** * Get exposure control feature for specific factory. * @@ -314,33 +340,8 @@ private Mono getFeatureValueByFactoryAsync(String @ServiceMethod(returns = ReturnType.SINGLE) public Response getFeatureValueByFactoryWithResponse(String resourceGroupName, String factoryName, ExposureControlRequest exposureControlRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (exposureControlRequest == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter exposureControlRequest is required and cannot be null.")); - } else { - exposureControlRequest.validate(); - } - final String accept = "application/json"; - return service.getFeatureValueByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, this.client.getApiVersion(), exposureControlRequest, accept, context); + return getFeatureValueByFactoryWithResponseAsync(resourceGroupName, factoryName, exposureControlRequest, + context).block(); } /** @@ -405,6 +406,50 @@ private Mono> queryFeatureValuesByFa .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get list of exposure control features for specific factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param exposureControlBatchRequest The exposure control request for list of features. + * @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 list of exposure control features for specific factory along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> queryFeatureValuesByFactoryWithResponseAsync( + String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (exposureControlBatchRequest == null) { + return Mono.error( + new IllegalArgumentException("Parameter exposureControlBatchRequest is required and cannot be null.")); + } else { + exposureControlBatchRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.queryFeatureValuesByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, factoryName, this.client.getApiVersion(), exposureControlBatchRequest, accept, context); + } + /** * Get list of exposure control features for specific factory. * @@ -438,34 +483,8 @@ private Mono queryFeatureValuesByFactoryAsync @ServiceMethod(returns = ReturnType.SINGLE) public Response queryFeatureValuesByFactoryWithResponse(String resourceGroupName, String factoryName, ExposureControlBatchRequest exposureControlBatchRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (exposureControlBatchRequest == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter exposureControlBatchRequest is required and cannot be null.")); - } else { - exposureControlBatchRequest.validate(); - } - final String accept = "application/json"; - return service.queryFeatureValuesByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, this.client.getApiVersion(), exposureControlBatchRequest, accept, context); + return queryFeatureValuesByFactoryWithResponseAsync(resourceGroupName, factoryName, exposureControlBatchRequest, + context).block(); } /** @@ -485,6 +504,4 @@ public ExposureControlBatchResponseInner queryFeatureValuesByFactory(String reso return queryFeatureValuesByFactoryWithResponse(resourceGroupName, factoryName, exposureControlBatchRequest, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(ExposureControlsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java index 7c8293514de4..7e099d9d2aa6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.FactoriesClient; import com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner; import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; @@ -82,14 +81,6 @@ Mono> list(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo") @ExpectedResponses({ 200 }) @@ -100,16 +91,6 @@ Mono> configureFactoryRepo(@HostParam("$host") String end @BodyParam("application/json") FactoryRepoUpdate factoryRepoUpdate, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response configureFactoryRepoSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("locationId") String locationId, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FactoryRepoUpdate factoryRepoUpdate, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories") @ExpectedResponses({ 200 }) @@ -119,15 +100,6 @@ Mono> listByResourceGroup(@HostParam("$host") Stri @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({ 200 }) @@ -138,16 +110,6 @@ Mono> createOrUpdate(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") FactoryInner factory, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") FactoryInner factory, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({ 200 }) @@ -159,17 +121,6 @@ Mono> update(@HostParam("$host") String endpoint, @BodyParam("application/json") FactoryUpdateParameters factoryUpdateParameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FactoryUpdateParameters factoryUpdateParameters, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({ 200, 304 }) @@ -180,16 +131,6 @@ Mono> getByResourceGroup(@HostParam("$host") String endpo @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") - @ExpectedResponses({ 200, 304 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") @ExpectedResponses({ 200, 204 }) @@ -199,15 +140,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken") @ExpectedResponses({ 200 }) @@ -219,17 +151,6 @@ Mono> getGitHubAccessToken(@HostParam(" @BodyParam("application/json") GitHubAccessTokenRequest gitHubAccessTokenRequest, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getGitHubAccessTokenSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GitHubAccessTokenRequest gitHubAccessTokenRequest, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess") @ExpectedResponses({ 200 }) @@ -240,16 +161,6 @@ Mono> getDataPlaneAccess(@HostParam("$host") @QueryParam("api-version") String apiVersion, @BodyParam("application/json") UserAccessPolicy policy, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getDataPlaneAccessSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") UserAccessPolicy policy, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -257,13 +168,6 @@ Response getDataPlaneAccessSync(@HostParam("$host") S Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -271,14 +175,6 @@ Response listNextSync(@PathParam(value = "nextLink", encode Mono> listByResourceGroupNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -310,13 +206,29 @@ private Mono> listSinglePageAsync() { /** * Lists factories under the specified subscription. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. + * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -324,25 +236,11 @@ private PagedFlux listAsync() { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -352,25 +250,12 @@ private PagedResponse listSinglePage() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** @@ -382,7 +267,7 @@ private PagedResponse listSinglePage(Context context) { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); + return new PagedIterable<>(listAsync()); } /** @@ -396,7 +281,7 @@ public PagedIterable list() { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); + return new PagedIterable<>(listAsync(context)); } /** @@ -437,6 +322,43 @@ private Mono> configureFactoryRepoWithResponseAsync(Strin .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Updates a factory's repo information. + * + * @param locationId The location identifier. + * @param factoryRepoUpdate Update factory repo request definition. + * @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 factory resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> configureFactoryRepoWithResponseAsync(String locationId, + FactoryRepoUpdate factoryRepoUpdate, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (locationId == null) { + return Mono.error(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); + } + if (factoryRepoUpdate == null) { + return Mono + .error(new IllegalArgumentException("Parameter factoryRepoUpdate is required and cannot be null.")); + } else { + factoryRepoUpdate.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.configureFactoryRepo(this.client.getEndpoint(), this.client.getSubscriptionId(), locationId, + this.client.getApiVersion(), factoryRepoUpdate, accept, context); + } + /** * Updates a factory's repo information. * @@ -467,29 +389,7 @@ private Mono configureFactoryRepoAsync(String locationId, FactoryR @ServiceMethod(returns = ReturnType.SINGLE) public Response configureFactoryRepoWithResponse(String locationId, FactoryRepoUpdate factoryRepoUpdate, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (locationId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter locationId is required and cannot be null.")); - } - if (factoryRepoUpdate == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryRepoUpdate is required and cannot be null.")); - } else { - factoryRepoUpdate.validate(); - } - final String accept = "application/json"; - return service.configureFactoryRepoSync(this.client.getEndpoint(), this.client.getSubscriptionId(), locationId, - this.client.getApiVersion(), factoryRepoUpdate, accept, context); + return configureFactoryRepoWithResponseAsync(locationId, factoryRepoUpdate, context).block(); } /** @@ -543,15 +443,34 @@ private Mono> listByResourceGroupSinglePageAsync(Str * Lists factories. * * @param resourceGroupName The resource group name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources as paginated response with {@link PagedFlux}. + * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -561,29 +480,12 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** @@ -594,29 +496,12 @@ private PagedResponse listByResourceGroupSinglePage(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. + * @return a list of factory resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** @@ -630,8 +515,7 @@ private PagedResponse listByResourceGroupSinglePage(String resourc */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePage(nextLink)); + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** @@ -646,8 +530,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** @@ -693,6 +576,49 @@ private Mono> createOrUpdateWithResponseAsync(String reso .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factory Factory resource definition. + * @param ifMatch ETag of the factory entity. Should only be specified for update, for which it should match + * existing entity or can be * for unconditional update. + * @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 factory resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String factoryName, + FactoryInner factory, String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (factory == null) { + return Mono.error(new IllegalArgumentException("Parameter factory is required and cannot be null.")); + } else { + factory.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), ifMatch, factory, accept, context); + } + /** * Creates or updates a factory. * @@ -728,33 +654,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (factory == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factory is required and cannot be null.")); - } else { - factory.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), ifMatch, factory, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, factory, ifMatch, context).block(); } /** @@ -787,7 +687,50 @@ public FactoryInner createOrUpdate(String resourceGroupName, String factoryName, */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String factoryName, - FactoryUpdateParameters factoryUpdateParameters) { + FactoryUpdateParameters factoryUpdateParameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (factoryUpdateParameters == null) { + return Mono.error( + new IllegalArgumentException("Parameter factoryUpdateParameters is required and cannot be null.")); + } else { + factoryUpdateParameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, factoryName, this.client.getApiVersion(), factoryUpdateParameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factoryUpdateParameters The parameters for updating a factory. + * @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 factory resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, String factoryName, + FactoryUpdateParameters factoryUpdateParameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -810,10 +753,9 @@ private Mono> updateWithResponseAsync(String resourceGrou factoryUpdateParameters.validate(); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, this.client.getApiVersion(), factoryUpdateParameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), factoryUpdateParameters, accept, context); } /** @@ -849,33 +791,7 @@ private Mono updateAsync(String resourceGroupName, String factoryN @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (factoryUpdateParameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryUpdateParameters is required and cannot be null.")); - } else { - factoryUpdateParameters.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), factoryUpdateParameters, accept, context); + return updateWithResponseAsync(resourceGroupName, factoryName, factoryUpdateParameters, context).block(); } /** @@ -933,6 +849,43 @@ private Mono> getByResourceGroupWithResponseAsync(String .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param ifNoneMatch ETag of the factory entity. Should only be specified for get. If the ETag matches the existing + * entity tag, or if * was provided, then no content will be returned. + * @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 factory along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String factoryName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a factory. * @@ -966,27 +919,7 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse(String resourceGroupName, String factoryName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getByResourceGroupWithResponseAsync(resourceGroupName, factoryName, ifNoneMatch, context).block(); } /** @@ -1039,6 +972,41 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a factory. * @@ -1067,27 +1035,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, context).block(); } /** @@ -1147,6 +1095,49 @@ private Mono> getGitHubAccessTokenWithR .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get GitHub Access Token. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param gitHubAccessTokenRequest Get GitHub access token request definition. + * @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 gitHub Access Token along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getGitHubAccessTokenWithResponseAsync( + String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (gitHubAccessTokenRequest == null) { + return Mono.error( + new IllegalArgumentException("Parameter gitHubAccessTokenRequest is required and cannot be null.")); + } else { + gitHubAccessTokenRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getGitHubAccessToken(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, factoryName, this.client.getApiVersion(), gitHubAccessTokenRequest, accept, context); + } + /** * Get GitHub Access Token. * @@ -1180,34 +1171,8 @@ private Mono getGitHubAccessTokenAsync(String re @ServiceMethod(returns = ReturnType.SINGLE) public Response getGitHubAccessTokenWithResponse(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (gitHubAccessTokenRequest == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Parameter gitHubAccessTokenRequest is required and cannot be null.")); - } else { - gitHubAccessTokenRequest.validate(); - } - final String accept = "application/json"; - return service.getGitHubAccessTokenSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, this.client.getApiVersion(), gitHubAccessTokenRequest, accept, context); + return getGitHubAccessTokenWithResponseAsync(resourceGroupName, factoryName, gitHubAccessTokenRequest, context) + .block(); } /** @@ -1270,6 +1235,47 @@ private Mono> getDataPlaneAccessWithResponse .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get Data Plane access. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param policy Data Plane user access policy definition. + * @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 data Plane access along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getDataPlaneAccessWithResponseAsync(String resourceGroupName, + String factoryName, UserAccessPolicy policy, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (policy == null) { + return Mono.error(new IllegalArgumentException("Parameter policy is required and cannot be null.")); + } else { + policy.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getDataPlaneAccess(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), policy, accept, context); + } + /** * Get Data Plane access. * @@ -1303,33 +1309,7 @@ private Mono getDataPlaneAccessAsync(String resourceG @ServiceMethod(returns = ReturnType.SINGLE) public Response getDataPlaneAccessWithResponse(String resourceGroupName, String factoryName, UserAccessPolicy policy, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (policy == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter policy is required and cannot be null.")); - } else { - policy.validate(); - } - final String accept = "application/json"; - return service.getDataPlaneAccessSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, this.client.getApiVersion(), policy, accept, context); + return getDataPlaneAccessWithResponseAsync(resourceGroupName, factoryName, policy, context).block(); } /** @@ -1374,33 +1354,6 @@ private Mono> listNextSinglePageAsync(String nextLin .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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -1409,23 +1362,22 @@ private PagedResponse listNextSinglePage(String nextLink) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. + * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + 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)); } /** @@ -1455,33 +1407,6 @@ private Mono> listByResourceGroupNextSinglePageAsync .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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -1490,25 +1415,21 @@ private PagedResponse listByResourceGroupNextSinglePage(String nex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of factory resources along with {@link PagedResponse}. + * @return a list of factory resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(FactoriesClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java index 8771cba92ebb..6abac29941ea 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/GlobalParametersClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.GlobalParametersClient; import com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner; import com.azure.resourcemanager.datafactory.models.GlobalParameterListResponse; @@ -75,15 +74,6 @@ Mono> listByFactory(@HostParam("$host") St @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") @ExpectedResponses({ 200 }) @@ -94,16 +84,6 @@ Mono> get(@HostParam("$host") String endp @PathParam("globalParameterName") String globalParameterName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("globalParameterName") String globalParameterName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") @ExpectedResponses({ 200 }) @@ -115,17 +95,6 @@ Mono> createOrUpdate(@HostParam("$host") @BodyParam("application/json") GlobalParameterResourceInner defaultParameter, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("globalParameterName") String globalParameterName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GlobalParameterResourceInner defaultParameter, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") @ExpectedResponses({ 200, 204 }) @@ -136,16 +105,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("globalParameterName") String globalParameterName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("globalParameterName") String globalParameterName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -153,14 +112,6 @@ Response deleteSync(@HostParam("$host") String endpoint, Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -205,15 +156,37 @@ private Mono> listByFactorySinglePag * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Global parameters as paginated response with {@link PagedFlux}. + * @return a list of Global parameters along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -224,35 +197,12 @@ private PagedFlux listByFactoryAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Global parameters along with {@link PagedResponse}. + * @return a list of Global parameters as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -264,35 +214,13 @@ private PagedResponse listByFactorySinglePage(Stri * @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 Global parameters along with {@link PagedResponse}. + * @return a list of Global parameters as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, + Context context) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -307,8 +235,7 @@ private PagedResponse listByFactorySinglePage(Stri */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -325,8 +252,7 @@ public PagedIterable listByFactory(String resource @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -369,6 +295,46 @@ private Mono> getWithResponseAsync(String .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a Global parameter. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param globalParameterName The global parameter name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Global parameter along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String globalParameterName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (globalParameterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter globalParameterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + globalParameterName, this.client.getApiVersion(), accept, context); + } + /** * Gets a Global parameter. * @@ -402,31 +368,7 @@ private Mono getAsync(String resourceGroupName, St @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String globalParameterName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (globalParameterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter globalParameterName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, globalParameterName, this.client.getApiVersion(), accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, globalParameterName, context).block(); } /** @@ -493,6 +435,54 @@ private Mono> createOrUpdateWithResponseA .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a Global parameter. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param globalParameterName The global parameter name. + * @param defaultParameter Global parameter resource definition. + * @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 global parameters resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String globalParameterName, GlobalParameterResourceInner defaultParameter, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (globalParameterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter globalParameterName is required and cannot be null.")); + } + if (defaultParameter == null) { + return Mono + .error(new IllegalArgumentException("Parameter defaultParameter is required and cannot be null.")); + } else { + defaultParameter.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, globalParameterName, this.client.getApiVersion(), defaultParameter, accept, context); + } + /** * Creates or updates a Global parameter. * @@ -529,37 +519,8 @@ private Mono createOrUpdateAsync(String resourceGr public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String globalParameterName, GlobalParameterResourceInner defaultParameter, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (globalParameterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter globalParameterName is required and cannot be null.")); - } - if (defaultParameter == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter defaultParameter is required and cannot be null.")); - } else { - defaultParameter.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, globalParameterName, this.client.getApiVersion(), defaultParameter, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, globalParameterName, defaultParameter, + context).block(); } /** @@ -621,6 +582,46 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a Global parameter. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param globalParameterName The global parameter name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String globalParameterName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (globalParameterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter globalParameterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, globalParameterName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a Global parameter. * @@ -653,31 +654,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String globalParameterName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (globalParameterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter globalParameterName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, globalParameterName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, globalParameterName, context).block(); } /** @@ -721,33 +698,6 @@ private Mono> listByFactoryNextSingl .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. - * @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 Global parameters along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -756,25 +706,22 @@ private PagedResponse listByFactoryNextSinglePage( * @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 Global parameters along with {@link PagedResponse}. + * @return a list of Global parameters along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, Context context) { + private Mono> listByFactoryNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(GlobalParametersClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java index 974b5d039a28..6bec4c8bea57 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeNodesClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeNodesClient; import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; @@ -74,16 +73,6 @@ Mono> get(@HostParam("$host") St @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") @ExpectedResponses({ 200, 204 }) @@ -94,16 +83,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") @ExpectedResponses({ 200 }) @@ -116,18 +95,6 @@ Mono> update(@HostParam("$host") @BodyParam("application/json") UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") @ExpectedResponses({ 200 }) @@ -137,16 +104,6 @@ Mono> getIpAddress(@HostParam("$h @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getIpAddressSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); } /** @@ -195,6 +152,51 @@ private Mono> getWithResponseAsy .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a self-hosted integration runtime node along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, String nodeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (nodeName == null) { + return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + integrationRuntimeName, nodeName, this.client.getApiVersion(), accept, context); + } + /** * Gets a self-hosted integration runtime node. * @@ -230,35 +232,7 @@ private Mono getAsync(String resourceGrou @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, nodeName, this.client.getApiVersion(), accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context).block(); } /** @@ -325,6 +299,50 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, String nodeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (nodeName == null) { + return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, nodeName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a self-hosted integration runtime node. * @@ -360,35 +378,8 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, nodeName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context) + .block(); } /** @@ -461,6 +452,60 @@ private Mono> updateWithResponse .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. + * @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 properties of Self-hosted integration runtime node along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (nodeName == null) { + return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); + } + if (updateIntegrationRuntimeNodeRequest == null) { + return Mono.error(new IllegalArgumentException( + "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); + } else { + updateIntegrationRuntimeNodeRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, nodeName, this.client.getApiVersion(), + updateIntegrationRuntimeNodeRequest, accept, context); + } + /** * Updates a self-hosted integration runtime node. * @@ -500,43 +545,8 @@ private Mono updateAsync(String resourceG public Response updateWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - if (updateIntegrationRuntimeNodeRequest == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); - } else { - updateIntegrationRuntimeNodeRequest.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, nodeName, this.client.getApiVersion(), - updateIntegrationRuntimeNodeRequest, accept, context); + return updateWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, + updateIntegrationRuntimeNodeRequest, context).block(); } /** @@ -606,6 +616,51 @@ private Mono> getIpAddressWithRes .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the IP address of self-hosted integration runtime node along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getIpAddressWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, String nodeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (nodeName == null) { + return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getIpAddress(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, nodeName, this.client.getApiVersion(), accept, context); + } + /** * Get the IP address of self-hosted integration runtime node. * @@ -641,35 +696,8 @@ private Mono getIpAddressAsync(String reso @ServiceMethod(returns = ReturnType.SINGLE) public Response getIpAddressWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (nodeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getIpAddressSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, nodeName, this.client.getApiVersion(), accept, context); + return getIpAddressWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, context) + .block(); } /** @@ -690,6 +718,4 @@ public IntegrationRuntimeNodeIpAddressInner getIpAddress(String resourceGroupNam return getIpAddressWithResponse(resourceGroupName, factoryName, integrationRuntimeName, nodeName, Context.NONE) .getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeNodesClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java index 35829fbe5e37..2b31cd9173b4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java @@ -21,10 +21,8 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimeObjectMetadatasClient; @@ -77,16 +75,6 @@ Mono>> refresh(@HostParam("$host") String endpoint, @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response refreshSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") @ExpectedResponses({ 200 }) @@ -98,18 +86,6 @@ Mono> get(@HostParam("$host") Stri @QueryParam("api-version") String apiVersion, @BodyParam("application/json") GetSsisObjectMetadataRequest getMetadataRequest, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GetSsisObjectMetadataRequest getMetadataRequest, - @HeaderParam("Accept") String accept, Context context); } /** @@ -158,39 +134,38 @@ private Mono>> refreshWithResponseAsync(String resourc * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response}. + * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response refreshWithResponse(String resourceGroupName, String factoryName, - String integrationRuntimeName) { + private Mono>> refreshWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String accept = "application/json"; - return service.refreshSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, Context.NONE); + context = this.client.mergeContext(context); + return service.refresh(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); } /** @@ -199,40 +174,19 @@ private Response refreshWithResponse(String resourceGroupName, Strin * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response}. + * @return the {@link PollerFlux} for polling of the status of the operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response refreshWithResponse(String resourceGroupName, String factoryName, - String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.refreshSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SsisObjectMetadataStatusResponseInner> + beginRefreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + Mono>> mono + = refreshWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), SsisObjectMetadataStatusResponseInner.class, + SsisObjectMetadataStatusResponseInner.class, this.client.getContext()); } /** @@ -241,6 +195,7 @@ private Response refreshWithResponse(String resourceGroupName, Strin * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -248,12 +203,14 @@ private Response refreshWithResponse(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SsisObjectMetadataStatusResponseInner> - beginRefreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + beginRefreshAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, + Context context) { + context = this.client.mergeContext(context); Mono>> mono - = refreshWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); + = refreshWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context); return this.client.getLroResult( mono, this.client.getHttpPipeline(), SsisObjectMetadataStatusResponseInner.class, - SsisObjectMetadataStatusResponseInner.class, this.client.getContext()); + SsisObjectMetadataStatusResponseInner.class, context); } /** @@ -270,10 +227,7 @@ private Response refreshWithResponse(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh(String resourceGroupName, String factoryName, String integrationRuntimeName) { - Response response = refreshWithResponse(resourceGroupName, factoryName, integrationRuntimeName); - return this.client.getLroResult( - response, SsisObjectMetadataStatusResponseInner.class, SsisObjectMetadataStatusResponseInner.class, - Context.NONE); + return this.beginRefreshAsync(resourceGroupName, factoryName, integrationRuntimeName).getSyncPoller(); } /** @@ -291,11 +245,7 @@ private Response refreshWithResponse(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response response - = refreshWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - return this.client.getLroResult( - response, SsisObjectMetadataStatusResponseInner.class, SsisObjectMetadataStatusResponseInner.class, - context); + return this.beginRefreshAsync(resourceGroupName, factoryName, integrationRuntimeName, context).getSyncPoller(); } /** @@ -316,6 +266,25 @@ private Mono refreshAsync(String resource .flatMap(this.client::getLroFinalResultOrError); } + /** + * Refresh a SSIS integration runtime object metadata. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the status of the operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono refreshAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { + return beginRefreshAsync(resourceGroupName, factoryName, integrationRuntimeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Refresh a SSIS integration runtime object metadata. * @@ -330,7 +299,7 @@ private Mono refreshAsync(String resource @ServiceMethod(returns = ReturnType.SINGLE) public SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginRefresh(resourceGroupName, factoryName, integrationRuntimeName).getFinalResult(); + return refreshAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); } /** @@ -348,7 +317,7 @@ public SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, S @ServiceMethod(returns = ReturnType.SINGLE) public SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginRefresh(resourceGroupName, factoryName, integrationRuntimeName, context).getFinalResult(); + return refreshAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); } /** @@ -397,6 +366,52 @@ private Mono> getWithResponseAsync .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param getMetadataRequest The parameters for getting a SSIS object metadata. + * @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 SSIS integration runtime object metadata by specified path along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (getMetadataRequest != null) { + getMetadataRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + integrationRuntimeName, this.client.getApiVersion(), getMetadataRequest, accept, context); + } + /** * Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. * @@ -432,34 +447,8 @@ private Mono getAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (getMetadataRequest != null) { - getMetadataRequest.validate(); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), getMetadataRequest, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, getMetadataRequest, context) + .block(); } /** @@ -480,6 +469,4 @@ public SsisObjectMetadataListResponseInner get(String resourceGroupName, String return getWithResponse(resourceGroupName, factoryName, integrationRuntimeName, getMetadataRequest, Context.NONE) .getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeObjectMetadatasClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java index 6e7d2ede851d..769da693c810 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimesClientImpl.java @@ -29,10 +29,8 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.datafactory.fluent.IntegrationRuntimesClient; @@ -92,15 +90,6 @@ Mono> listByFactory(@HostParam("$host") @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({ 200 }) @@ -113,18 +102,6 @@ Mono> createOrUpdate(@HostParam("$host @BodyParam("application/json") IntegrationRuntimeResourceInner integrationRuntime, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") IntegrationRuntimeResourceInner integrationRuntime, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({ 200, 304 }) @@ -136,17 +113,6 @@ Mono> get(@HostParam("$host") String e @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({ 200, 304 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({ 200 }) @@ -159,18 +125,6 @@ Mono> update(@HostParam("$host") Strin @BodyParam("application/json") UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") @ExpectedResponses({ 200, 204 }) @@ -181,16 +135,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus") @ExpectedResponses({ 200 }) @@ -201,16 +145,6 @@ Mono> getStatus(@HostParam("$hos @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getStatusSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints") @ExpectedResponses({ 200 }) @@ -222,17 +156,6 @@ Response getStatusSync(@HostParam("$host" @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response - listOutboundNetworkDependenciesEndpointsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") @ExpectedResponses({ 200 }) @@ -243,16 +166,6 @@ Mono> getConnectionInfo(@HostPar @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getConnectionInfoSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") @ExpectedResponses({ 200 }) @@ -265,18 +178,6 @@ Mono> regenerateAuthKey(@HostParam("$h @BodyParam("application/json") IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response regenerateAuthKeySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") @ExpectedResponses({ 200 }) @@ -287,16 +188,6 @@ Mono> listAuthKeys(@HostParam("$host") @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listAuthKeysSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start") @ExpectedResponses({ 200, 202 }) @@ -307,16 +198,6 @@ Mono>> start(@HostParam("$host") String endpoint, @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response startSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop") @ExpectedResponses({ 200, 202 }) @@ -327,16 +208,6 @@ Mono>> stop(@HostParam("$host") String endpoint, @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response stopSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") @ExpectedResponses({ 200 }) @@ -347,16 +218,6 @@ Mono> syncCredentials(@HostParam("$host") String endpoint, @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response syncCredentialsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") @ExpectedResponses({ 200 }) @@ -367,16 +228,6 @@ Mono> getMonitoringData(@HostPar @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getMonitoringDataSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade") @ExpectedResponses({ 200 }) @@ -387,16 +238,6 @@ Mono> upgrade(@HostParam("$host") String endpoint, @PathParam("integrationRuntimeName") String integrationRuntimeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response upgradeSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks") @ExpectedResponses({ 200 }) @@ -409,18 +250,6 @@ Mono> removeLinks(@HostParam("$host") String endpoint, @BodyParam("application/json") LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response removeLinksSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime") @ExpectedResponses({ 200 }) @@ -433,18 +262,6 @@ Mono> createLinkedIntegrationRun @BodyParam("application/json") CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createLinkedIntegrationRuntimeSync( - @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -452,14 +269,6 @@ Response createLinkedIntegrationRuntimeSy Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -505,16 +314,38 @@ private Mono> listByFactorySingle * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. + * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, - String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -525,35 +356,13 @@ private PagedFlux listByFactoryAsync(String res * @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 integration runtime resources along with {@link PagedResponse}. + * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -565,35 +374,13 @@ private PagedResponse listByFactorySinglePage(S * @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 integration runtime resources along with {@link PagedResponse}. + * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, + Context context) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -608,8 +395,7 @@ private PagedResponse listByFactorySinglePage(S */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -626,8 +412,7 @@ public PagedIterable listByFactory(String resou @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -681,6 +466,57 @@ private Mono> createOrUpdateWithRespon .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param integrationRuntime Integration runtime resource definition. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should + * match existing entity or can be * for unconditional update. + * @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 integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, + String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (integrationRuntime == null) { + return Mono + .error(new IllegalArgumentException("Parameter integrationRuntime is required and cannot be null.")); + } else { + integrationRuntime.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), ifMatch, integrationRuntime, accept, + context); + } + /** * Creates or updates an integration runtime. * @@ -720,38 +556,8 @@ private Mono createOrUpdateAsync(String resourc public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (integrationRuntime == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntime is required and cannot be null.")); - } else { - integrationRuntime.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), ifMatch, integrationRuntime, accept, - context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, + integrationRuntime, ifMatch, context).block(); } /** @@ -817,6 +623,48 @@ private Mono> getWithResponseAsync(Str .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches + * the existing entity tag, or if * was provided, then no content will be returned. + * @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 an integration runtime along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + integrationRuntimeName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets an integration runtime. * @@ -853,31 +701,8 @@ private Mono getAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, ifNoneMatch, context) + .block(); } /** @@ -948,6 +773,55 @@ private Mono> updateWithResponseAsync( .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. + * @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 integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, + UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (updateIntegrationRuntimeRequest == null) { + return Mono.error(new IllegalArgumentException( + "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); + } else { + updateIntegrationRuntimeRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), updateIntegrationRuntimeRequest, accept, + context); + } + /** * Updates an integration runtime. * @@ -984,39 +858,8 @@ private Mono updateAsync(String resourceGroupNa public Response updateWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (updateIntegrationRuntimeRequest == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); - } else { - updateIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), updateIntegrationRuntimeRequest, accept, - context); + return updateWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, + updateIntegrationRuntimeRequest, context).block(); } /** @@ -1078,6 +921,46 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + } + /** * Deletes an integration runtime. * @@ -1110,31 +993,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); } /** @@ -1193,6 +1052,47 @@ private Mono> getStatusWithRespo .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets detailed status information for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return detailed status information for an integration runtime along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getStatusWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + } + /** * Gets detailed status information for an integration runtime. * @@ -1226,31 +1126,7 @@ private Mono getStatusAsync(String resour @ServiceMethod(returns = ReturnType.SINGLE) public Response getStatusWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getStatusSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + return getStatusWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); } /** @@ -1313,6 +1189,49 @@ public IntegrationRuntimeStatusResponseInner getStatus(String resourceGroupName, .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listOutboundNetworkDependenciesEndpointsWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, + this.client.getApiVersion(), accept, context); + } + /** * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * @@ -1350,32 +1269,8 @@ public IntegrationRuntimeStatusResponseInner getStatus(String resourceGroupName, public Response listOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.listOutboundNetworkDependenciesEndpointsSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, - this.client.getApiVersion(), accept, context); + return listOutboundNetworkDependenciesEndpointsWithResponseAsync(resourceGroupName, factoryName, + integrationRuntimeName, context).block(); } /** @@ -1439,6 +1334,48 @@ private Mono> getConnectionInfoW .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets the on-premises integration runtime connection information for encrypting the on-premises data source + * credentials. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the on-premises integration runtime connection information for encrypting the on-premises data source + * credentials along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getConnectionInfoWithResponseAsync( + String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getConnectionInfo(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + } + /** * Gets the on-premises integration runtime connection information for encrypting the on-premises data source * credentials. @@ -1476,31 +1413,8 @@ private Mono getConnectionInfoAsync(Strin @ServiceMethod(returns = ReturnType.SINGLE) public Response getConnectionInfoWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getConnectionInfoSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + return getConnectionInfoWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context) + .block(); } /** @@ -1566,11 +1480,60 @@ private Mono> regenerateAuthKeyWithRes regenerateKeyParameters.validate(); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.regenerateAuthKey(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, - this.client.getApiVersion(), regenerateKeyParameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + return FluxUtil + .withContext(context -> service.regenerateAuthKey(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, + this.client.getApiVersion(), regenerateKeyParameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication key. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the integration runtime authentication keys along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> regenerateAuthKeyWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (regenerateKeyParameters == null) { + return Mono.error( + new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); + } else { + regenerateKeyParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.regenerateAuthKey(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), regenerateKeyParameters, accept, context); } /** @@ -1609,38 +1572,8 @@ private Mono regenerateAuthKeyAsync(String reso public Response regenerateAuthKeyWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (regenerateKeyParameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); - } else { - regenerateKeyParameters.validate(); - } - final String accept = "application/json"; - return service.regenerateAuthKeySync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, integrationRuntimeName, this.client.getApiVersion(), - regenerateKeyParameters, accept, context); + return regenerateAuthKeyWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, + regenerateKeyParameters, context).block(); } /** @@ -1703,6 +1636,47 @@ private Mono> listAuthKeysWithResponse .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the integration runtime authentication keys along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listAuthKeysWithResponseAsync(String resourceGroupName, + String factoryName, String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listAuthKeys(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + } + /** * Retrieves the authentication keys for an integration runtime. * @@ -1736,31 +1710,7 @@ private Mono listAuthKeysAsync(String resourceG @ServiceMethod(returns = ReturnType.SINGLE) public Response listAuthKeysWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.listAuthKeysSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + return listAuthKeysWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); } /** @@ -1827,39 +1777,38 @@ private Mono>> startWithResponseAsync(String resourceG * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response}. + * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response startWithResponse(String resourceGroupName, String factoryName, - String integrationRuntimeName) { + private Mono>> startWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, Context.NONE); + context = this.client.mergeContext(context); + return service.start(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + integrationRuntimeName, this.client.getApiVersion(), accept, context); } /** @@ -1868,40 +1817,19 @@ private Response startWithResponse(String resourceGroupName, String * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response}. + * @return the {@link PollerFlux} for polling of integration runtime status response. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response startWithResponse(String resourceGroupName, String factoryName, - String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, IntegrationRuntimeStatusResponseInner> + beginStartAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + Mono>> mono + = startWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), IntegrationRuntimeStatusResponseInner.class, + IntegrationRuntimeStatusResponseInner.class, this.client.getContext()); } /** @@ -1910,6 +1838,7 @@ private Response startWithResponse(String resourceGroupName, String * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1917,12 +1846,13 @@ private Response startWithResponse(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeStatusResponseInner> - beginStartAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + beginStartAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { + context = this.client.mergeContext(context); Mono>> mono - = startWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); + = startWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context); return this.client.getLroResult( mono, this.client.getHttpPipeline(), IntegrationRuntimeStatusResponseInner.class, - IntegrationRuntimeStatusResponseInner.class, this.client.getContext()); + IntegrationRuntimeStatusResponseInner.class, context); } /** @@ -1939,10 +1869,7 @@ private Response startWithResponse(String resourceGroupName, String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart(String resourceGroupName, String factoryName, String integrationRuntimeName) { - Response response = startWithResponse(resourceGroupName, factoryName, integrationRuntimeName); - return this.client.getLroResult( - response, IntegrationRuntimeStatusResponseInner.class, IntegrationRuntimeStatusResponseInner.class, - Context.NONE); + return this.beginStartAsync(resourceGroupName, factoryName, integrationRuntimeName).getSyncPoller(); } /** @@ -1960,11 +1887,7 @@ private Response startWithResponse(String resourceGroupName, String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response response - = startWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - return this.client.getLroResult( - response, IntegrationRuntimeStatusResponseInner.class, IntegrationRuntimeStatusResponseInner.class, - context); + return this.beginStartAsync(resourceGroupName, factoryName, integrationRuntimeName, context).getSyncPoller(); } /** @@ -1985,6 +1908,25 @@ private Mono startAsync(String resourceGr .flatMap(this.client::getLroFinalResultOrError); } + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return integration runtime status response on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono startAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { + return beginStartAsync(resourceGroupName, factoryName, integrationRuntimeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Starts a ManagedReserved type integration runtime. * @@ -1999,7 +1941,7 @@ private Mono startAsync(String resourceGr @ServiceMethod(returns = ReturnType.SINGLE) public IntegrationRuntimeStatusResponseInner start(String resourceGroupName, String factoryName, String integrationRuntimeName) { - return beginStart(resourceGroupName, factoryName, integrationRuntimeName).getFinalResult(); + return startAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); } /** @@ -2017,7 +1959,7 @@ public IntegrationRuntimeStatusResponseInner start(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) public IntegrationRuntimeStatusResponseInner start(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - return beginStart(resourceGroupName, factoryName, integrationRuntimeName, context).getFinalResult(); + return startAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); } /** @@ -2066,39 +2008,38 @@ private Mono>> stopWithResponseAsync(String resourceGr * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response stopWithResponse(String resourceGroupName, String factoryName, - String integrationRuntimeName) { + private Mono>> stopWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, Context.NONE); + context = this.client.mergeContext(context); + return service.stop(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + integrationRuntimeName, this.client.getApiVersion(), accept, context); } /** @@ -2107,40 +2048,18 @@ private Response stopWithResponse(String resourceGroupName, String f * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response stopWithResponse(String resourceGroupName, String factoryName, - String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginStopAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName) { + Mono>> mono + = stopWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -2149,6 +2068,7 @@ private Response stopWithResponse(String resourceGroupName, String f * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2156,11 +2076,12 @@ private Response stopWithResponse(String resourceGroupName, String f */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync(String resourceGroupName, String factoryName, - String integrationRuntimeName) { + String integrationRuntimeName, Context context) { + context = this.client.mergeContext(context); Mono>> mono - = stopWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName); + = stopWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + context); } /** @@ -2177,8 +2098,7 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop(String resourceGroupName, String factoryName, String integrationRuntimeName) { - Response response = stopWithResponse(resourceGroupName, factoryName, integrationRuntimeName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + return this.beginStopAsync(resourceGroupName, factoryName, integrationRuntimeName).getSyncPoller(); } /** @@ -2196,9 +2116,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - Response response - = stopWithResponse(resourceGroupName, factoryName, integrationRuntimeName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + return this.beginStopAsync(resourceGroupName, factoryName, integrationRuntimeName, context).getSyncPoller(); } /** @@ -2218,6 +2136,25 @@ private Mono stopAsync(String resourceGroupName, String factoryName, Strin .flatMap(this.client::getLroFinalResultOrError); } + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono stopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, + Context context) { + return beginStopAsync(resourceGroupName, factoryName, integrationRuntimeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Stops a ManagedReserved type integration runtime. * @@ -2230,7 +2167,7 @@ private Mono stopAsync(String resourceGroupName, String factoryName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) public void stop(String resourceGroupName, String factoryName, String integrationRuntimeName) { - beginStop(resourceGroupName, factoryName, integrationRuntimeName).getFinalResult(); + stopAsync(resourceGroupName, factoryName, integrationRuntimeName).block(); } /** @@ -2246,7 +2183,7 @@ public void stop(String resourceGroupName, String factoryName, String integratio */ @ServiceMethod(returns = ReturnType.SINGLE) public void stop(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - beginStop(resourceGroupName, factoryName, integrationRuntimeName, context).getFinalResult(); + stopAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); } /** @@ -2292,6 +2229,49 @@ private Mono> syncCredentialsWithResponseAsync(String resourceGro .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> syncCredentialsWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.syncCredentials(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + } + /** * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override * the credentials across all worker nodes with those available on the dispatcher node. If you already have the @@ -2327,35 +2307,12 @@ private Mono syncCredentialsAsync(String resourceGroupName, String factory * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response syncCredentialsWithResponse(String resourceGroupName, String factoryName, - String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.syncCredentialsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response syncCredentialsWithResponse(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { + return syncCredentialsWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context) + .block(); } /** @@ -2419,6 +2376,48 @@ private Mono> getMonitoringDataW .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this + * integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the integration runtime monitoring data, which includes the monitor data for all the nodes under this + * integration runtime along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getMonitoringDataWithResponseAsync( + String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getMonitoringData(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + } + /** * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this * integration runtime. @@ -2456,31 +2455,8 @@ private Mono getMonitoringDataAsync(Strin @ServiceMethod(returns = ReturnType.SINGLE) public Response getMonitoringDataWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getMonitoringDataSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + return getMonitoringDataWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context) + .block(); } /** @@ -2543,6 +2519,46 @@ private Mono> upgradeWithResponseAsync(String resourceGroupName, .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Upgrade self-hosted integration runtime to latest version if availability. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> upgradeWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.upgrade(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + } + /** * Upgrade self-hosted integration runtime to latest version if availability. * @@ -2575,31 +2591,7 @@ private Mono upgradeAsync(String resourceGroupName, String factoryName, St @ServiceMethod(returns = ReturnType.SINGLE) public Response upgradeWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.upgradeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), accept, context); + return upgradeWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block(); } /** @@ -2665,6 +2657,55 @@ private Mono> removeLinksWithResponseAsync(String resourceGroupNa .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param linkedIntegrationRuntimeRequest The data factory name for the linked integration runtime. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> removeLinksWithResponseAsync(String resourceGroupName, String factoryName, + String integrationRuntimeName, LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (linkedIntegrationRuntimeRequest == null) { + return Mono.error(new IllegalArgumentException( + "Parameter linkedIntegrationRuntimeRequest is required and cannot be null.")); + } else { + linkedIntegrationRuntimeRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.removeLinks(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, integrationRuntimeName, this.client.getApiVersion(), linkedIntegrationRuntimeRequest, accept, + context); + } + /** * Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. * @@ -2701,39 +2742,8 @@ private Mono removeLinksAsync(String resourceGroupName, String factoryName public Response removeLinksWithResponse(String resourceGroupName, String factoryName, String integrationRuntimeName, LinkedIntegrationRuntimeRequest linkedIntegrationRuntimeRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (linkedIntegrationRuntimeRequest == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter linkedIntegrationRuntimeRequest is required and cannot be null.")); - } else { - linkedIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - return service.removeLinksSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, integrationRuntimeName, this.client.getApiVersion(), linkedIntegrationRuntimeRequest, accept, - context); + return removeLinksWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, + linkedIntegrationRuntimeRequest, context).block(); } /** @@ -2803,6 +2813,55 @@ private Mono> createLinkedIntegr .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Create a linked integration runtime entry in a shared integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param createLinkedIntegrationRuntimeRequest The linked integration runtime properties. + * @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 integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createLinkedIntegrationRuntimeWithResponseAsync( + String resourceGroupName, String factoryName, String integrationRuntimeName, + CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (integrationRuntimeName == null) { + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + } + if (createLinkedIntegrationRuntimeRequest == null) { + return Mono.error(new IllegalArgumentException( + "Parameter createLinkedIntegrationRuntimeRequest is required and cannot be null.")); + } else { + createLinkedIntegrationRuntimeRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createLinkedIntegrationRuntime(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, factoryName, integrationRuntimeName, this.client.getApiVersion(), + createLinkedIntegrationRuntimeRequest, accept, context); + } + /** * Create a linked integration runtime entry in a shared integration runtime. * @@ -2840,39 +2899,8 @@ private Mono createLinkedIntegrationRunti public Response createLinkedIntegrationRuntimeWithResponse( String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (integrationRuntimeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); - } - if (createLinkedIntegrationRuntimeRequest == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter createLinkedIntegrationRuntimeRequest is required and cannot be null.")); - } else { - createLinkedIntegrationRuntimeRequest.validate(); - } - final String accept = "application/json"; - return service.createLinkedIntegrationRuntimeSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, integrationRuntimeName, this.client.getApiVersion(), - createLinkedIntegrationRuntimeRequest, accept, context); + return createLinkedIntegrationRuntimeWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, + createLinkedIntegrationRuntimeRequest, context).block(); } /** @@ -2922,33 +2950,6 @@ private Mono> listByFactoryNextSi .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. - * @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 integration runtime resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -2957,26 +2958,23 @@ private PagedResponse listByFactoryNextSinglePa * @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 integration runtime resources along with {@link PagedResponse}. + * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, + private Mono> listByFactoryNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimesClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java index d73d1d9d2a6e..277771e494fe 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/LinkedServicesClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.LinkedServicesClient; import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; import com.azure.resourcemanager.datafactory.models.LinkedServiceListResponse; @@ -75,15 +74,6 @@ Mono> listByFactory(@HostParam("$host") Stri @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") @ExpectedResponses({ 200 }) @@ -96,18 +86,6 @@ Mono> createOrUpdate(@HostParam("$host") St @BodyParam("application/json") LinkedServiceResourceInner linkedService, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") LinkedServiceResourceInner linkedService, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") @ExpectedResponses({ 200, 304 }) @@ -118,16 +96,6 @@ Mono> get(@HostParam("$host") String endpoi @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") - @ExpectedResponses({ 200, 304 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") @ExpectedResponses({ 200, 204 }) @@ -138,16 +106,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -155,14 +113,6 @@ Response deleteSync(@HostParam("$host") String endpoint, Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -208,15 +158,38 @@ private Mono> listByFactorySinglePageA * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedFlux}. + * @return a list of linked service resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -227,35 +200,12 @@ private PagedFlux listByFactoryAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse}. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -267,35 +217,13 @@ private PagedResponse listByFactorySinglePage(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources along with {@link PagedResponse}. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, - String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, + Context context) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -310,8 +238,7 @@ private PagedResponse listByFactorySinglePage(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -328,8 +255,7 @@ public PagedIterable listByFactory(String resourceGr @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -381,6 +307,55 @@ private Mono> createOrUpdateWithResponseAsy .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param linkedService Linked service resource definition. + * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match + * existing entity or can be * for unconditional update. + * @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 linked service resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String linkedServiceName, LinkedServiceResourceInner linkedService, String ifMatch, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (linkedServiceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); + } + if (linkedService == null) { + return Mono.error(new IllegalArgumentException("Parameter linkedService is required and cannot be null.")); + } else { + linkedService.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, linkedServiceName, this.client.getApiVersion(), ifMatch, linkedService, accept, context); + } + /** * Creates or updates a linked service. * @@ -419,37 +394,8 @@ private Mono createOrUpdateAsync(String resourceGrou @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceResourceInner linkedService, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - if (linkedService == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedService is required and cannot be null.")); - } else { - linkedService.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, linkedServiceName, this.client.getApiVersion(), ifMatch, linkedService, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, linkedServiceName, linkedService, + ifMatch, context).block(); } /** @@ -515,6 +461,48 @@ private Mono> getWithResponseAsync(String r .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param ifNoneMatch ETag of the linked service entity. Should only be specified for get. If the ETag matches the + * existing entity tag, or if * was provided, then no content will be returned. + * @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 linked service along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String linkedServiceName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (linkedServiceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + linkedServiceName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a linked service. * @@ -551,31 +539,7 @@ private Mono getAsync(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String linkedServiceName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, linkedServiceName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, linkedServiceName, ifNoneMatch, context).block(); } /** @@ -635,6 +599,46 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String linkedServiceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (linkedServiceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, linkedServiceName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a linked service. * @@ -667,31 +671,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String linkedServiceName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, linkedServiceName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, linkedServiceName, context).block(); } /** @@ -736,33 +716,6 @@ private Mono> listByFactoryNextSingleP .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. - * @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 linked service resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -771,25 +724,23 @@ private PagedResponse listByFactoryNextSinglePage(St * @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 linked service resources along with {@link PagedResponse}. + * @return a list of linked service resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, Context context) { + private Mono> listByFactoryNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(LinkedServicesClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java index e0d9d5f202f8..eb0805915c85 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedPrivateEndpointsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.ManagedPrivateEndpointsClient; import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointListResponse; @@ -76,16 +75,6 @@ Mono> listByFactory(@HostParam("$ho @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({ 200 }) @@ -99,19 +88,6 @@ Mono> createOrUpdate(@HostParam("$ @BodyParam("application/json") ManagedPrivateEndpointResourceInner managedPrivateEndpoint, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @PathParam("managedPrivateEndpointName") String managedPrivateEndpointName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") ManagedPrivateEndpointResourceInner managedPrivateEndpoint, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({ 200 }) @@ -124,18 +100,6 @@ Mono> get(@HostParam("$host") Stri @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @PathParam("managedPrivateEndpointName") String managedPrivateEndpointName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({ 200, 204 }) @@ -147,17 +111,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("managedPrivateEndpointName") String managedPrivateEndpointName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @PathParam("managedPrivateEndpointName") String managedPrivateEndpointName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -165,14 +118,6 @@ Response deleteSync(@HostParam("$host") String endpoint, Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -225,17 +170,42 @@ Response listByFactoryNextSync( * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param managedVirtualNetworkName Managed virtual network name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources as paginated response with {@link PagedFlux}. + * @return a list of managed private endpoint resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, - String factoryName, String managedVirtualNetworkName) { - return new PagedFlux<>( - () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, managedVirtualNetworkName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync( + String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (managedVirtualNetworkName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedVirtualNetworkName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + managedVirtualNetworkName, this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -247,40 +217,14 @@ private PagedFlux listByFactoryAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed private endpoint resources along with {@link PagedResponse}. + * @return a list of managed private endpoint resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, managedVirtualNetworkName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>( + () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, managedVirtualNetworkName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -293,40 +237,14 @@ private PagedResponse listByFactorySinglePa * @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 managed private endpoint resources along with {@link PagedResponse}. + * @return a list of managed private endpoint resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, managedVirtualNetworkName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>( + () -> listByFactorySinglePageAsync(resourceGroupName, factoryName, managedVirtualNetworkName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -343,9 +261,7 @@ private PagedResponse listByFactorySinglePa @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, String managedVirtualNetworkName) { - return new PagedIterable<>( - () -> listByFactorySinglePage(resourceGroupName, factoryName, managedVirtualNetworkName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, managedVirtualNetworkName)); } /** @@ -364,8 +280,7 @@ public PagedIterable listByFactory(String r public PagedIterable listByFactory(String resourceGroupName, String factoryName, String managedVirtualNetworkName, Context context) { return new PagedIterable<>( - () -> listByFactorySinglePage(resourceGroupName, factoryName, managedVirtualNetworkName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + listByFactoryAsync(resourceGroupName, factoryName, managedVirtualNetworkName, context)); } /** @@ -425,6 +340,64 @@ private Mono> createOrUpdateWithRe .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a managed private endpoint. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param managedVirtualNetworkName Managed virtual network name. + * @param managedPrivateEndpointName Managed private endpoint name. + * @param managedPrivateEndpoint Managed private endpoint resource definition. + * @param ifMatch ETag of the managed private endpoint entity. Should only be specified for update, for which it + * should match existing entity or can be * for unconditional update. + * @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 managed private endpoint resource type along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, String factoryName, String managedVirtualNetworkName, + String managedPrivateEndpointName, ManagedPrivateEndpointResourceInner managedPrivateEndpoint, String ifMatch, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (managedVirtualNetworkName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedVirtualNetworkName is required and cannot be null.")); + } + if (managedPrivateEndpointName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedPrivateEndpointName is required and cannot be null.")); + } + if (managedPrivateEndpoint == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedPrivateEndpoint is required and cannot be null.")); + } else { + managedPrivateEndpoint.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, managedVirtualNetworkName, managedPrivateEndpointName, this.client.getApiVersion(), ifMatch, + managedPrivateEndpoint, accept, context); + } + /** * Creates or updates a managed private endpoint. * @@ -468,44 +441,8 @@ private Mono createOrUpdateAsync(String res public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String managedVirtualNetworkName, String managedPrivateEndpointName, ManagedPrivateEndpointResourceInner managedPrivateEndpoint, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - if (managedPrivateEndpoint == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter managedPrivateEndpoint is required and cannot be null.")); - } else { - managedPrivateEndpoint.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, managedVirtualNetworkName, managedPrivateEndpointName, this.client.getApiVersion(), ifMatch, - managedPrivateEndpoint, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, + managedPrivateEndpointName, managedPrivateEndpoint, ifMatch, context).block(); } /** @@ -578,6 +515,55 @@ private Mono> getWithResponseAsync .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a managed private endpoint. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param managedVirtualNetworkName Managed virtual network name. + * @param managedPrivateEndpointName Managed private endpoint name. + * @param ifNoneMatch ETag of the managed private endpoint entity. Should only be specified for get. If the ETag + * matches the existing entity tag, or if * was provided, then no content will be returned. + * @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 managed private endpoint along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String managedVirtualNetworkName, String managedPrivateEndpointName, String ifNoneMatch, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (managedVirtualNetworkName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedVirtualNetworkName is required and cannot be null.")); + } + if (managedPrivateEndpointName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedPrivateEndpointName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + managedVirtualNetworkName, managedPrivateEndpointName, this.client.getApiVersion(), ifNoneMatch, accept, + context); + } + /** * Gets a managed private endpoint. * @@ -616,38 +602,8 @@ private Mono getAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String managedVirtualNetworkName, String managedPrivateEndpointName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, managedVirtualNetworkName, managedPrivateEndpointName, this.client.getApiVersion(), - ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, + managedPrivateEndpointName, ifNoneMatch, context).block(); } /** @@ -716,6 +672,52 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a managed private endpoint. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param managedVirtualNetworkName Managed virtual network name. + * @param managedPrivateEndpointName Managed private endpoint name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String managedVirtualNetworkName, String managedPrivateEndpointName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (managedVirtualNetworkName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedVirtualNetworkName is required and cannot be null.")); + } + if (managedPrivateEndpointName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedPrivateEndpointName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, managedVirtualNetworkName, managedPrivateEndpointName, this.client.getApiVersion(), accept, + context); + } + /** * Deletes a managed private endpoint. * @@ -751,38 +753,8 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String managedVirtualNetworkName, String managedPrivateEndpointName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedPrivateEndpointName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedPrivateEndpointName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, managedVirtualNetworkName, managedPrivateEndpointName, this.client.getApiVersion(), accept, - context); + return deleteWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, + managedPrivateEndpointName, context).block(); } /** @@ -830,33 +802,6 @@ private Mono> listByFactoryNe .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. - * @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 managed private endpoint resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -865,26 +810,23 @@ private PagedResponse listByFactoryNextSing * @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 managed private endpoint resources along with {@link PagedResponse}. + * @return a list of managed private endpoint resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, + private Mono> listByFactoryNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedPrivateEndpointsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java index 26e73d8f926e..9b5b1a93b525 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/ManagedVirtualNetworksClientImpl.java @@ -27,7 +27,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.ManagedVirtualNetworksClient; import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkListResponse; @@ -74,15 +73,6 @@ Mono> listByFactory(@HostParam("$hos @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") @ExpectedResponses({ 200 }) @@ -95,18 +85,6 @@ Mono> createOrUpdate(@HostParam("$h @BodyParam("application/json") ManagedVirtualNetworkResourceInner managedVirtualNetwork, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") ManagedVirtualNetworkResourceInner managedVirtualNetwork, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") @ExpectedResponses({ 200 }) @@ -118,17 +96,6 @@ Mono> get(@HostParam("$host") Strin @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("managedVirtualNetworkName") String managedVirtualNetworkName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -136,14 +103,6 @@ Response getSync(@HostParam("$host") String Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -189,16 +148,38 @@ Response listByFactoryNextSync( * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources as paginated response with {@link PagedFlux}. + * @return a list of managed Virtual Network resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, - String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByFactorySinglePageAsync(String resourceGroupName, String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -209,35 +190,13 @@ private PagedFlux listByFactoryAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of managed Virtual Network resources along with {@link PagedResponse}. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -249,35 +208,13 @@ private PagedResponse listByFactorySinglePag * @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 managed Virtual Network resources along with {@link PagedResponse}. + * @return a list of managed Virtual Network resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -293,8 +230,7 @@ private PagedResponse listByFactorySinglePag @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -311,8 +247,7 @@ public PagedIterable listByFactory(String re @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -367,6 +302,58 @@ private Mono> createOrUpdateWithRes .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a managed Virtual Network. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param managedVirtualNetworkName Managed virtual network name. + * @param managedVirtualNetwork Managed Virtual Network resource definition. + * @param ifMatch ETag of the managed Virtual Network entity. Should only be specified for update, for which it + * should match existing entity or can be * for unconditional update. + * @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 managed Virtual Network resource type along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String managedVirtualNetworkName, ManagedVirtualNetworkResourceInner managedVirtualNetwork, + String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (managedVirtualNetworkName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedVirtualNetworkName is required and cannot be null.")); + } + if (managedVirtualNetwork == null) { + return Mono + .error(new IllegalArgumentException("Parameter managedVirtualNetwork is required and cannot be null.")); + } else { + managedVirtualNetwork.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, managedVirtualNetworkName, this.client.getApiVersion(), ifMatch, managedVirtualNetwork, accept, + context); + } + /** * Creates or updates a managed Virtual Network. * @@ -406,39 +393,8 @@ private Mono createOrUpdateAsync(String reso public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String managedVirtualNetworkName, ManagedVirtualNetworkResourceInner managedVirtualNetwork, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - if (managedVirtualNetwork == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter managedVirtualNetwork is required and cannot be null.")); - } else { - managedVirtualNetwork.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, managedVirtualNetworkName, this.client.getApiVersion(), ifMatch, managedVirtualNetwork, accept, - context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, + managedVirtualNetwork, ifMatch, context).block(); } /** @@ -504,6 +460,48 @@ private Mono> getWithResponseAsync( .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a managed Virtual Network. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param managedVirtualNetworkName Managed virtual network name. + * @param ifNoneMatch ETag of the managed Virtual Network entity. Should only be specified for get. If the ETag + * matches the existing entity tag, or if * was provided, then no content will be returned. + * @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 managed Virtual Network along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String managedVirtualNetworkName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (managedVirtualNetworkName == null) { + return Mono.error( + new IllegalArgumentException("Parameter managedVirtualNetworkName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + managedVirtualNetworkName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a managed Virtual Network. * @@ -540,32 +538,8 @@ private Mono getAsync(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String managedVirtualNetworkName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (managedVirtualNetworkName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter managedVirtualNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, managedVirtualNetworkName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, managedVirtualNetworkName, ifNoneMatch, context) + .block(); } /** @@ -614,33 +588,6 @@ private Mono> listByFactoryNex .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. - * @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 managed Virtual Network resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -649,26 +596,23 @@ private PagedResponse listByFactoryNextSingl * @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 managed Virtual Network resources along with {@link PagedResponse}. + * @return a list of managed Virtual Network resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, + private Mono> listByFactoryNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedVirtualNetworksClientImpl.class); } 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 index b21c1bb7a061..d806775bec56 100644 --- 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 @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.OperationsClient; import com.azure.resourcemanager.datafactory.fluent.models.OperationInner; import com.azure.resourcemanager.datafactory.models.OperationListResponse; @@ -70,26 +69,12 @@ public interface OperationsService { Mono> list(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/providers/Microsoft.DataFactory/operations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@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); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -118,14 +103,24 @@ private Mono> listSinglePageAsync() { /** * 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}. + * @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.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @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)); } /** @@ -133,20 +128,12 @@ private PagedFlux listAsync() { * * @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}. + * @return a list of operations that can be performed by the Data Factory service as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -156,20 +143,13 @@ private PagedResponse listSinglePage() { * @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}. + * @return a list of operations that can be performed by the Data Factory service as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** @@ -182,7 +162,7 @@ private PagedResponse listSinglePage(Context context) { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); + return new PagedIterable<>(listAsync()); } /** @@ -197,7 +177,7 @@ public PagedIterable list() { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); + return new PagedIterable<>(listAsync(context)); } /** @@ -226,33 +206,6 @@ private Mono> listNextSinglePageAsync(String nextL .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. - * @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}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -261,25 +214,22 @@ private PagedResponse listNextSinglePage(String nextLink) { * @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}. + * @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 PagedResponse listNextSinglePage(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + 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)); } - - private static final ClientLogger LOGGER = new ClientLogger(OperationsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java index aed29e1b5a5c..0c48d9663a96 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineRunsClientImpl.java @@ -23,7 +23,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.PipelineRunsClient; import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunsQueryResponseInner; @@ -73,17 +72,6 @@ Mono> queryByFactory(@HostParam("$host" @BodyParam("application/json") RunFilterParameters filterParameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response queryByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RunFilterParameters filterParameters, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}") @ExpectedResponses({ 200 }) @@ -94,16 +82,6 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("runId") String runId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("runId") String runId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel") @ExpectedResponses({ 200 }) @@ -113,16 +91,6 @@ Mono> cancel(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @PathParam("runId") String runId, @QueryParam("isRecursive") Boolean isRecursive, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response cancelSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("runId") String runId, @QueryParam("isRecursive") Boolean isRecursive, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); } /** @@ -167,6 +135,48 @@ private Mono> queryByFactoryWithRespons .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param filterParameters Parameters to filter the pipeline run. + * @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 pipeline runs along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> queryByFactoryWithResponseAsync(String resourceGroupName, + String factoryName, RunFilterParameters filterParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (filterParameters == null) { + return Mono + .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); + } else { + filterParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.queryByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), filterParameters, accept, context); + } + /** * Query pipeline runs in the factory based on input filter conditions. * @@ -200,33 +210,7 @@ private Mono queryByFactoryAsync(String resource @ServiceMethod(returns = ReturnType.SINGLE) public Response queryByFactoryWithResponse(String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return service.queryByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), filterParameters, accept, context); + return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters, context).block(); } /** @@ -285,6 +269,45 @@ private Mono> getWithResponseAsync(String resourceGro .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @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 pipeline run by its run ID along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String factoryName, + String runId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (runId == null) { + return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + runId, this.client.getApiVersion(), accept, context); + } + /** * Get a pipeline run by its run ID. * @@ -317,30 +340,7 @@ private Mono getAsync(String resourceGroupName, String factory @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String runId, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, runId, this.client.getApiVersion(), accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, runId, context).block(); } /** @@ -399,6 +399,46 @@ private Mono> cancelWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Cancel a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param isRecursive If true, cancel all the Child pipelines that are triggered by the current pipeline. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> cancelWithResponseAsync(String resourceGroupName, String factoryName, String runId, + Boolean isRecursive, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (runId == null) { + return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.cancel(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, runId, isRecursive, this.client.getApiVersion(), accept, context); + } + /** * Cancel a pipeline run by its run ID. * @@ -433,30 +473,7 @@ private Mono cancelAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response cancelWithResponse(String resourceGroupName, String factoryName, String runId, Boolean isRecursive, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (runId == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return service.cancelSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, runId, isRecursive, this.client.getApiVersion(), accept, context); + return cancelWithResponseAsync(resourceGroupName, factoryName, runId, isRecursive, context).block(); } /** @@ -474,6 +491,4 @@ public void cancel(String resourceGroupName, String factoryName, String runId) { final Boolean isRecursive = null; cancelWithResponse(resourceGroupName, factoryName, runId, isRecursive, Context.NONE); } - - private static final ClientLogger LOGGER = new ClientLogger(PipelineRunsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java index e0639ee20f85..06157565101e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelinesClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.PipelinesClient; import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; @@ -78,15 +77,6 @@ Mono> listByFactory(@HostParam("$host") String en @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") @ExpectedResponses({ 200 }) @@ -98,17 +88,6 @@ Mono> createOrUpdate(@HostParam("$host") String @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") PipelineResourceInner pipeline, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") PipelineResourceInner pipeline, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") @ExpectedResponses({ 200, 304 }) @@ -119,16 +98,6 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("pipelineName") String pipelineName, @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") - @ExpectedResponses({ 200, 304 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") @ExpectedResponses({ 200, 204 }) @@ -139,16 +108,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("pipelineName") String pipelineName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun") @ExpectedResponses({ 200 }) @@ -163,20 +122,6 @@ Mono> createRun(@HostParam("$host") String endp @BodyParam("application/json") Map parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createRunSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("pipelineName") String pipelineName, @QueryParam("api-version") String apiVersion, - @QueryParam("referencePipelineRunId") String referencePipelineRunId, - @QueryParam("isRecovery") Boolean isRecovery, @QueryParam("startActivityName") String startActivityName, - @QueryParam("startFromFailure") Boolean startFromFailure, - @BodyParam("application/json") Map parameters, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -184,14 +129,6 @@ Response createRunSync(@HostParam("$host") String endpoi Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -236,15 +173,37 @@ private Mono> listByFactorySinglePageAsync( * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources as paginated response with {@link PagedFlux}. + * @return a list of pipeline resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -255,34 +214,12 @@ private PagedFlux listByFactoryAsync(String resourceGroup * @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 pipeline resources along with {@link PagedResponse}. + * @return a list of pipeline resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -294,35 +231,13 @@ private PagedResponse listByFactorySinglePage(String reso * @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 pipeline resources along with {@link PagedResponse}. + * @return a list of pipeline resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -337,8 +252,7 @@ private PagedResponse listByFactorySinglePage(String reso */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -355,8 +269,7 @@ public PagedIterable listByFactory(String resourceGroupNa @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -407,6 +320,53 @@ private Mono> createOrUpdateWithResponseAsync(St .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match + * existing entity or can be * for unconditional update. + * @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 pipeline resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String pipelineName, PipelineResourceInner pipeline, String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (pipelineName == null) { + return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); + } + if (pipeline == null) { + return Mono.error(new IllegalArgumentException("Parameter pipeline is required and cannot be null.")); + } else { + pipeline.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, pipelineName, this.client.getApiVersion(), ifMatch, pipeline, accept, context); + } + /** * Creates or updates a pipeline. * @@ -445,37 +405,8 @@ private Mono createOrUpdateAsync(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - if (pipeline == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter pipeline is required and cannot be null.")); - } else { - pipeline.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, pipelineName, this.client.getApiVersion(), ifMatch, pipeline, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch, context) + .block(); } /** @@ -540,6 +471,47 @@ private Mono> getWithResponseAsync(String resour .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param ifNoneMatch ETag of the pipeline entity. Should only be specified for get. If the ETag matches the + * existing entity tag, or if * was provided, then no content will be returned. + * @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 pipeline along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String factoryName, + String pipelineName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (pipelineName == null) { + return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + pipelineName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a pipeline. * @@ -575,31 +547,7 @@ private Mono getAsync(String resourceGroupName, String fa @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, pipelineName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, pipelineName, ifNoneMatch, context).block(); } /** @@ -658,6 +606,45 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String pipelineName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (pipelineName == null) { + return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, pipelineName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a pipeline. * @@ -689,31 +676,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String pipelineName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, pipelineName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, pipelineName, context).block(); } /** @@ -782,6 +745,57 @@ private Mono> createRunWithResponseAsync(String .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param referencePipelineRunId The pipeline run identifier. If run ID is specified the parameters of the specified + * run will be used to create a new run. + * @param isRecovery Recovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and + * the new run will be grouped under the same groupId. + * @param startActivityName In recovery mode, the rerun will start from this activity. If not specified, all + * activities will run. + * @param startFromFailure In recovery mode, if set to true, the rerun will start from failed activities. The + * property will be used only if startActivityName is not specified. + * @param parameters Parameters of the pipeline run. These parameters will be used only if the runId is not + * specified. + * @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 response body with a run identifier along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createRunWithResponseAsync(String resourceGroupName, + String factoryName, String pipelineName, String referencePipelineRunId, Boolean isRecovery, + String startActivityName, Boolean startFromFailure, Map parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (pipelineName == null) { + return Mono.error(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createRun(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, pipelineName, this.client.getApiVersion(), referencePipelineRunId, isRecovery, + startActivityName, startFromFailure, parameters, accept, context); + } + /** * Creates a run of a pipeline. * @@ -832,32 +846,8 @@ private Mono createRunAsync(String resourceGroupName, St public Response createRunWithResponse(String resourceGroupName, String factoryName, String pipelineName, String referencePipelineRunId, Boolean isRecovery, String startActivityName, Boolean startFromFailure, Map parameters, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (pipelineName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter pipelineName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.createRunSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, pipelineName, this.client.getApiVersion(), referencePipelineRunId, isRecovery, - startActivityName, startFromFailure, parameters, accept, context); + return createRunWithResponseAsync(resourceGroupName, factoryName, pipelineName, referencePipelineRunId, + isRecovery, startActivityName, startFromFailure, parameters, context).block(); } /** @@ -908,33 +898,6 @@ private Mono> listByFactoryNextSinglePageAs .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. - * @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 pipeline resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -943,25 +906,22 @@ private PagedResponse listByFactoryNextSinglePage(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of pipeline resources along with {@link PagedResponse}. + * @return a list of pipeline resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, Context context) { + private Mono> listByFactoryNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(PipelinesClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java index c19f49f640a7..5f4a9d38009e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndPointConnectionsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.PrivateEndPointConnectionsClient; import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionListResponse; @@ -72,15 +71,6 @@ Mono> listByFactory(@HostParam(" @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndPointConnections") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -88,14 +78,6 @@ Response listByFactorySync(@HostParam("$h Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -141,16 +123,38 @@ Response listByFactoryNextSync( * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of linked service resources as paginated response with {@link PagedFlux}. + * @return a list of linked service resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, - String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByFactorySinglePageAsync(String resourceGroupName, String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -161,35 +165,13 @@ private PagedFlux listByFactoryAsync(Str * @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 linked service resources along with {@link PagedResponse}. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -201,35 +183,13 @@ private PagedResponse listByFactorySingl * @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 linked service resources along with {@link PagedResponse}. + * @return a list of linked service resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -245,8 +205,7 @@ private PagedResponse listByFactorySingl @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -263,8 +222,7 @@ public PagedIterable listByFactory(Strin @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -295,33 +253,6 @@ public PagedIterable listByFactory(Strin .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. - * @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 linked service resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -330,26 +261,23 @@ private PagedResponse listByFactoryNextS * @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 linked service resources along with {@link PagedResponse}. + * @return a list of linked service resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, - Context context) { + private Mono> + listByFactoryNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(PrivateEndPointConnectionsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java index 0320adc5593a..a2b9f0ac7b04 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateEndpointConnectionOperationsClientImpl.java @@ -24,7 +24,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.PrivateEndpointConnectionOperationsClient; import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource; @@ -74,18 +73,6 @@ Mono> createOrUpdate(@HostParam @BodyParam("application/json") PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({ 200 }) @@ -97,17 +84,6 @@ Mono> get(@HostParam("$host") S @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({ 200, 204 }) @@ -117,16 +93,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); } /** @@ -181,6 +147,58 @@ private Mono> createOrUpdateWit .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Approves or rejects a private endpoint connection. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param privateEndpointConnectionName The private endpoint connection name. + * @param privateEndpointWrapper The privateEndpointWrapper parameter. + * @param ifMatch ETag of the private endpoint connection entity. Should only be specified for update, for which it + * should match existing entity or can be * for unconditional update. + * @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 private Endpoint Connection ARM resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, String factoryName, String privateEndpointConnectionName, + PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (privateEndpointConnectionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); + } + if (privateEndpointWrapper == null) { + return Mono.error( + new IllegalArgumentException("Parameter privateEndpointWrapper is required and cannot be null.")); + } else { + privateEndpointWrapper.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, privateEndpointConnectionName, this.client.getApiVersion(), ifMatch, privateEndpointWrapper, + accept, context); + } + /** * Approves or rejects a private endpoint connection. * @@ -221,39 +239,8 @@ private Mono createOrUpdateAsync(String public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - if (privateEndpointWrapper == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter privateEndpointWrapper is required and cannot be null.")); - } else { - privateEndpointWrapper.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, privateEndpointConnectionName, this.client.getApiVersion(), ifMatch, privateEndpointWrapper, - accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName, + privateEndpointWrapper, ifMatch, context).block(); } /** @@ -319,6 +306,48 @@ private Mono> getWithResponseAs .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a private endpoint connection. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param privateEndpointConnectionName The private endpoint connection name. + * @param ifNoneMatch ETag of the private endpoint connection entity. Should only be specified for get. If the ETag + * matches the existing entity tag, or if * was provided, then no content will be returned. + * @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 private endpoint connection along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, String privateEndpointConnectionName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (privateEndpointConnectionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + privateEndpointConnectionName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a private endpoint connection. * @@ -355,32 +384,8 @@ private Mono getAsync(String resourceGro @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String privateEndpointConnectionName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, privateEndpointConnectionName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch, context) + .block(); } /** @@ -443,6 +448,46 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a private endpoint connection. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param privateEndpointConnectionName The private endpoint connection name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String privateEndpointConnectionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (privateEndpointConnectionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, privateEndpointConnectionName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a private endpoint connection. * @@ -475,32 +520,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String privateEndpointConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (privateEndpointConnectionName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, privateEndpointConnectionName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, privateEndpointConnectionName, context).block(); } /** @@ -517,6 +537,4 @@ public Response deleteWithResponse(String resourceGroupName, String factor public void delete(String resourceGroupName, String factoryName, String privateEndpointConnectionName) { deleteWithResponse(resourceGroupName, factoryName, privateEndpointConnectionName, Context.NONE); } - - private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionOperationsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java index b4ee7a988dcb..6d5488ee4402 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PrivateLinkResourcesClientImpl.java @@ -21,7 +21,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; import reactor.core.publisher.Mono; @@ -66,15 +65,6 @@ Mono> get(@HostParam("$host") String @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateLinkResources") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); } /** @@ -112,6 +102,41 @@ private Mono> getWithResponseAsync(St .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets the private link resources. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the private link resources along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context); + } + /** * Gets the private link resources. * @@ -141,27 +166,7 @@ private Mono getAsync(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, context).block(); } /** @@ -178,6 +183,4 @@ public Response getWithResponse(String resourc public PrivateLinkResourcesWrapperInner get(String resourceGroupName, String factoryName) { return getWithResponse(resourceGroupName, factoryName, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java index fc08d7822bcb..4c4bf8f77aa0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggerRunsClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.TriggerRunsClient; import com.azure.resourcemanager.datafactory.fluent.models.TriggerRunsQueryResponseInner; import com.azure.resourcemanager.datafactory.models.RunFilterParameters; @@ -70,16 +69,6 @@ Mono> rerun(@HostParam("$host") String endpoint, @PathParam("triggerName") String triggerName, @PathParam("runId") String runId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response rerunSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @PathParam("runId") String runId, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel") @ExpectedResponses({ 200 }) @@ -90,16 +79,6 @@ Mono> cancel(@HostParam("$host") String endpoint, @PathParam("triggerName") String triggerName, @PathParam("runId") String runId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response cancelSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @PathParam("runId") String runId, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns") @ExpectedResponses({ 200 }) @@ -110,17 +89,6 @@ Mono> queryByFactory(@HostParam("$host") @QueryParam("api-version") String apiVersion, @BodyParam("application/json") RunFilterParameters filterParameters, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response queryByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RunFilterParameters filterParameters, @HeaderParam("Accept") String accept, - Context context); } /** @@ -166,6 +134,49 @@ private Mono> rerunWithResponseAsync(String resourceGroupName, St .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Rerun single trigger instance by runId. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param runId The pipeline run identifier. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> rerunWithResponseAsync(String resourceGroupName, String factoryName, + String triggerName, String runId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (triggerName == null) { + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + } + if (runId == null) { + return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.rerun(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + triggerName, runId, this.client.getApiVersion(), accept, context); + } + /** * Rerun single trigger instance by runId. * @@ -200,34 +211,7 @@ private Mono rerunAsync(String resourceGroupName, String factoryName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response rerunWithResponse(String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (runId == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return service.rerunSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, runId, this.client.getApiVersion(), accept, context); + return rerunWithResponseAsync(resourceGroupName, factoryName, triggerName, runId, context).block(); } /** @@ -289,6 +273,49 @@ private Mono> cancelWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Cancel a single trigger instance by runId. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param runId The pipeline run identifier. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> cancelWithResponseAsync(String resourceGroupName, String factoryName, + String triggerName, String runId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (triggerName == null) { + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + } + if (runId == null) { + return Mono.error(new IllegalArgumentException("Parameter runId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.cancel(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, triggerName, runId, this.client.getApiVersion(), accept, context); + } + /** * Cancel a single trigger instance by runId. * @@ -323,34 +350,7 @@ private Mono cancelAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response cancelWithResponse(String resourceGroupName, String factoryName, String triggerName, String runId, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (runId == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter runId is required and cannot be null.")); - } - final String accept = "application/json"; - return service.cancelSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, runId, this.client.getApiVersion(), accept, context); + return cancelWithResponseAsync(resourceGroupName, factoryName, triggerName, runId, context).block(); } /** @@ -411,6 +411,48 @@ private Mono> queryByFactoryWithResponse .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Query trigger runs. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param filterParameters Parameters to filter the pipeline run. + * @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 trigger runs along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> queryByFactoryWithResponseAsync(String resourceGroupName, + String factoryName, RunFilterParameters filterParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (filterParameters == null) { + return Mono + .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); + } else { + filterParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.queryByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), filterParameters, accept, context); + } + /** * Query trigger runs. * @@ -444,33 +486,7 @@ private Mono queryByFactoryAsync(String resourceG @ServiceMethod(returns = ReturnType.SINGLE) public Response queryByFactoryWithResponse(String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return service.queryByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), filterParameters, accept, context); + return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters, context).block(); } /** @@ -489,6 +505,4 @@ public TriggerRunsQueryResponseInner queryByFactory(String resourceGroupName, St RunFilterParameters filterParameters) { return queryByFactoryWithResponse(resourceGroupName, factoryName, filterParameters, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(TriggerRunsClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java index 07c693edd92b..ae6c4b591e01 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/TriggersClientImpl.java @@ -28,10 +28,8 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.datafactory.fluent.TriggersClient; @@ -84,15 +82,6 @@ Mono> listByFactory(@HostParam("$host") String end @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers") @ExpectedResponses({ 200 }) @@ -104,17 +93,6 @@ Mono> queryByFactory(@HostParam("$host") Str @BodyParam("application/json") TriggerFilterParameters filterParameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response queryByFactorySync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TriggerFilterParameters filterParameters, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") @ExpectedResponses({ 200 }) @@ -126,17 +104,6 @@ Mono> createOrUpdate(@HostParam("$host") String e @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") TriggerResourceInner trigger, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") TriggerResourceInner trigger, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") @ExpectedResponses({ 200, 304 }) @@ -147,16 +114,6 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") - @ExpectedResponses({ 200, 304 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") @ExpectedResponses({ 200, 204 }) @@ -167,16 +124,6 @@ Mono> delete(@HostParam("$host") String endpoint, @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents") @ExpectedResponses({ 200, 202 }) @@ -187,16 +134,6 @@ Mono>> subscribeToEvents(@HostParam("$host") String en @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response subscribeToEventsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus") @ExpectedResponses({ 200 }) @@ -207,16 +144,6 @@ Mono> getEventSubscriptionStat @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getEventSubscriptionStatusSync( - @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents") @ExpectedResponses({ 200, 202 }) @@ -227,16 +154,6 @@ Mono>> unsubscribeFromEvents(@HostParam("$host") Strin @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response unsubscribeFromEventsSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start") @ExpectedResponses({ 200 }) @@ -247,16 +164,6 @@ Mono>> start(@HostParam("$host") String endpoint, @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response startSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop") @ExpectedResponses({ 200 }) @@ -267,16 +174,6 @@ Mono>> stop(@HostParam("$host") String endpoint, @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response stopSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("factoryName") String factoryName, - @PathParam("triggerName") String triggerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -284,14 +181,6 @@ Response stopSync(@HostParam("$host") String endpoint, Mono> listByFactoryNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByFactoryNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); } /** @@ -336,15 +225,37 @@ private Mono> listByFactorySinglePageAsync(S * * @param resourceGroupName The resource group name. * @param factoryName The factory name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trigger resources as paginated response with {@link PagedFlux}. + * @return a list of trigger resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { - return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFactorySinglePageAsync(String resourceGroupName, + String factoryName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -355,34 +266,12 @@ private PagedFlux listByFactoryAsync(String resourceGroupN * @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 trigger resources along with {@link PagedResponse}. + * @return a list of trigger resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName) { + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName), + nextLink -> listByFactoryNextSinglePageAsync(nextLink)); } /** @@ -394,35 +283,13 @@ private PagedResponse listByFactorySinglePage(String resou * @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 trigger resources along with {@link PagedResponse}. + * @return a list of trigger resources as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactorySinglePage(String resourceGroupName, String factoryName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFactoryAsync(String resourceGroupName, String factoryName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return new PagedFlux<>(() -> listByFactorySinglePageAsync(resourceGroupName, factoryName, context), + nextLink -> listByFactoryNextSinglePageAsync(nextLink, context)); } /** @@ -437,8 +304,7 @@ private PagedResponse listByFactorySinglePage(String resou */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName), - nextLink -> listByFactoryNextSinglePage(nextLink)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName)); } /** @@ -455,8 +321,7 @@ public PagedIterable listByFactory(String resourceGroupNam @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByFactory(String resourceGroupName, String factoryName, Context context) { - return new PagedIterable<>(() -> listByFactorySinglePage(resourceGroupName, factoryName, context), - nextLink -> listByFactoryNextSinglePage(nextLink, context)); + return new PagedIterable<>(listByFactoryAsync(resourceGroupName, factoryName, context)); } /** @@ -501,6 +366,48 @@ private Mono> queryByFactoryWithResponseAsyn .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Query triggers. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param filterParameters Parameters to filter the triggers. + * @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 query of triggers along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> queryByFactoryWithResponseAsync(String resourceGroupName, + String factoryName, TriggerFilterParameters filterParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (filterParameters == null) { + return Mono + .error(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); + } else { + filterParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.queryByFactory(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, this.client.getApiVersion(), filterParameters, accept, context); + } + /** * Query triggers. * @@ -534,33 +441,7 @@ private Mono queryByFactoryAsync(String resourceGroup @ServiceMethod(returns = ReturnType.SINGLE) public Response queryByFactoryWithResponse(String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (filterParameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter filterParameters is required and cannot be null.")); - } else { - filterParameters.validate(); - } - final String accept = "application/json"; - return service.queryByFactorySync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, this.client.getApiVersion(), filterParameters, accept, context); + return queryByFactoryWithResponseAsync(resourceGroupName, factoryName, filterParameters, context).block(); } /** @@ -628,6 +509,53 @@ private Mono> createOrUpdateWithResponseAsync(Str .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param trigger Trigger resource definition. + * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match + * existing entity or can be * for unconditional update. + * @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 trigger resource type along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String factoryName, String triggerName, TriggerResourceInner trigger, String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (triggerName == null) { + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + } + if (trigger == null) { + return Mono.error(new IllegalArgumentException("Parameter trigger is required and cannot be null.")); + } else { + trigger.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, triggerName, this.client.getApiVersion(), ifMatch, trigger, accept, context); + } + /** * Creates or updates a trigger. * @@ -666,37 +594,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger, String ifMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - if (trigger == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter trigger is required and cannot be null.")); - } else { - trigger.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, this.client.getApiVersion(), ifMatch, trigger, accept, context); + return createOrUpdateWithResponseAsync(resourceGroupName, factoryName, triggerName, trigger, ifMatch, context) + .block(); } /** @@ -760,6 +659,47 @@ private Mono> getWithResponseAsync(String resourc .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param ifNoneMatch ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing + * entity tag, or if * was provided, then no content will be returned. + * @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 trigger along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String factoryName, + String triggerName, String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (triggerName == null) { + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + triggerName, this.client.getApiVersion(), ifNoneMatch, accept, context); + } + /** * Gets a trigger. * @@ -795,31 +735,7 @@ private Mono getAsync(String resourceGroupName, String fac @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return getWithResponseAsync(resourceGroupName, factoryName, triggerName, ifNoneMatch, context).block(); } /** @@ -878,6 +794,45 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Deletes a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String factoryName, + String triggerName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (triggerName == null) { + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, triggerName, this.client.getApiVersion(), accept, context); + } + /** * Deletes a trigger. * @@ -909,31 +864,7 @@ private Mono deleteAsync(String resourceGroupName, String factoryName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, this.client.getApiVersion(), accept, context); + return deleteWithResponseAsync(resourceGroupName, factoryName, triggerName, context).block(); } /** @@ -998,39 +929,38 @@ private Mono>> subscribeToEventsWithResponseAsync(Stri * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response}. + * @return defines the response of a trigger subscription operation along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response subscribeToEventsWithResponse(String resourceGroupName, String factoryName, - String triggerName) { + private Mono>> subscribeToEventsWithResponseAsync(String resourceGroupName, + String factoryName, String triggerName, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); } final String accept = "application/json"; - return service.subscribeToEventsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, triggerName, this.client.getApiVersion(), accept, Context.NONE); + context = this.client.mergeContext(context); + return service.subscribeToEvents(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + factoryName, triggerName, this.client.getApiVersion(), accept, context); } /** @@ -1039,40 +969,20 @@ private Response subscribeToEventsWithResponse(String resourceGroupN * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response}. + * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response subscribeToEventsWithResponse(String resourceGroupName, String factoryName, - String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.subscribeToEventsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, triggerName, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, TriggerSubscriptionOperationStatusInner> + beginSubscribeToEventsAsync(String resourceGroupName, String factoryName, String triggerName) { + Mono>> mono + = subscribeToEventsWithResponseAsync(resourceGroupName, factoryName, triggerName); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), TriggerSubscriptionOperationStatusInner.class, + TriggerSubscriptionOperationStatusInner.class, this.client.getContext()); } /** @@ -1081,6 +991,7 @@ private Response subscribeToEventsWithResponse(String resourceGroupN * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1088,13 +999,14 @@ private Response subscribeToEventsWithResponse(String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TriggerSubscriptionOperationStatusInner> - beginSubscribeToEventsAsync(String resourceGroupName, String factoryName, String triggerName) { + beginSubscribeToEventsAsync(String resourceGroupName, String factoryName, String triggerName, Context context) { + context = this.client.mergeContext(context); Mono>> mono - = subscribeToEventsWithResponseAsync(resourceGroupName, factoryName, triggerName); + = subscribeToEventsWithResponseAsync(resourceGroupName, factoryName, triggerName, context); return this.client .getLroResult(mono, this.client.getHttpPipeline(), TriggerSubscriptionOperationStatusInner.class, - TriggerSubscriptionOperationStatusInner.class, this.client.getContext()); + TriggerSubscriptionOperationStatusInner.class, context); } /** @@ -1111,11 +1023,7 @@ private Response subscribeToEventsWithResponse(String resourceGroupN @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName) { - Response response = subscribeToEventsWithResponse(resourceGroupName, factoryName, triggerName); - return this.client - .getLroResult(response, - TriggerSubscriptionOperationStatusInner.class, TriggerSubscriptionOperationStatusInner.class, - Context.NONE); + return this.beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); } /** @@ -1133,11 +1041,25 @@ private Response subscribeToEventsWithResponse(String resourceGroupN @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName, Context context) { - Response response - = subscribeToEventsWithResponse(resourceGroupName, factoryName, triggerName, context); - return this.client - .getLroResult(response, - TriggerSubscriptionOperationStatusInner.class, TriggerSubscriptionOperationStatusInner.class, context); + return this.beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName, context).getSyncPoller(); + } + + /** + * Subscribe event trigger to events. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return defines the response of a trigger subscription operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono subscribeToEventsAsync(String resourceGroupName, + String factoryName, String triggerName) { + return beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1146,6 +1068,7 @@ private Response subscribeToEventsWithResponse(String resourceGroupN * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1153,8 +1076,8 @@ private Response subscribeToEventsWithResponse(String resourceGroupN */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono subscribeToEventsAsync(String resourceGroupName, - String factoryName, String triggerName) { - return beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName).last() + String factoryName, String triggerName, Context context) { + return beginSubscribeToEventsAsync(resourceGroupName, factoryName, triggerName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1172,7 +1095,7 @@ private Mono subscribeToEventsAsync(Str @ServiceMethod(returns = ReturnType.SINGLE) public TriggerSubscriptionOperationStatusInner subscribeToEvents(String resourceGroupName, String factoryName, String triggerName) { - return beginSubscribeToEvents(resourceGroupName, factoryName, triggerName).getFinalResult(); + return subscribeToEventsAsync(resourceGroupName, factoryName, triggerName).block(); } /** @@ -1190,7 +1113,7 @@ public TriggerSubscriptionOperationStatusInner subscribeToEvents(String resource @ServiceMethod(returns = ReturnType.SINGLE) public TriggerSubscriptionOperationStatusInner subscribeToEvents(String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginSubscribeToEvents(resourceGroupName, factoryName, triggerName, context).getFinalResult(); + return subscribeToEventsAsync(resourceGroupName, factoryName, triggerName, context).block(); } /** @@ -1234,6 +1157,46 @@ public TriggerSubscriptionOperationStatusInner subscribeToEvents(String resource .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get a trigger's event subscription status. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a trigger's event subscription status along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getEventSubscriptionStatusWithResponseAsync( + String resourceGroupName, String factoryName, String triggerName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (factoryName == null) { + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + } + if (triggerName == null) { + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getEventSubscriptionStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, factoryName, triggerName, this.client.getApiVersion(), accept, context); + } + /** * Get a trigger's event subscription status. * @@ -1267,31 +1230,8 @@ private Mono getEventSubscriptionStatus @ServiceMethod(returns = ReturnType.SINGLE) public Response getEventSubscriptionStatusWithResponse( String resourceGroupName, String factoryName, String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getEventSubscriptionStatusSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, triggerName, this.client.getApiVersion(), accept, context); + return getEventSubscriptionStatusWithResponseAsync(resourceGroupName, factoryName, triggerName, context) + .block(); } /** @@ -1359,39 +1299,38 @@ private Mono>> unsubscribeFromEventsWithResponseAsync( * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response}. + * @return defines the response of a trigger subscription operation along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response unsubscribeFromEventsWithResponse(String resourceGroupName, String factoryName, - String triggerName) { + private Mono>> unsubscribeFromEventsWithResponseAsync(String resourceGroupName, + String factoryName, String triggerName, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); } final String accept = "application/json"; - return service.unsubscribeFromEventsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, triggerName, this.client.getApiVersion(), accept, Context.NONE); + context = this.client.mergeContext(context); + return service.unsubscribeFromEvents(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, factoryName, triggerName, this.client.getApiVersion(), accept, context); } /** @@ -1400,40 +1339,20 @@ private Response unsubscribeFromEventsWithResponse(String resourceGr * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the response of a trigger subscription operation along with {@link Response}. + * @return the {@link PollerFlux} for polling of defines the response of a trigger subscription operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response unsubscribeFromEventsWithResponse(String resourceGroupName, String factoryName, - String triggerName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.unsubscribeFromEventsSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, factoryName, triggerName, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, TriggerSubscriptionOperationStatusInner> + beginUnsubscribeFromEventsAsync(String resourceGroupName, String factoryName, String triggerName) { + Mono>> mono + = unsubscribeFromEventsWithResponseAsync(resourceGroupName, factoryName, triggerName); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), TriggerSubscriptionOperationStatusInner.class, + TriggerSubscriptionOperationStatusInner.class, this.client.getContext()); } /** @@ -1442,6 +1361,7 @@ private Response unsubscribeFromEventsWithResponse(String resourceGr * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1449,13 +1369,15 @@ private Response unsubscribeFromEventsWithResponse(String resourceGr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TriggerSubscriptionOperationStatusInner> - beginUnsubscribeFromEventsAsync(String resourceGroupName, String factoryName, String triggerName) { + beginUnsubscribeFromEventsAsync(String resourceGroupName, String factoryName, String triggerName, + Context context) { + context = this.client.mergeContext(context); Mono>> mono - = unsubscribeFromEventsWithResponseAsync(resourceGroupName, factoryName, triggerName); + = unsubscribeFromEventsWithResponseAsync(resourceGroupName, factoryName, triggerName, context); return this.client .getLroResult(mono, this.client.getHttpPipeline(), TriggerSubscriptionOperationStatusInner.class, - TriggerSubscriptionOperationStatusInner.class, this.client.getContext()); + TriggerSubscriptionOperationStatusInner.class, context); } /** @@ -1472,11 +1394,7 @@ private Response unsubscribeFromEventsWithResponse(String resourceGr @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName) { - Response response = unsubscribeFromEventsWithResponse(resourceGroupName, factoryName, triggerName); - return this.client - .getLroResult(response, - TriggerSubscriptionOperationStatusInner.class, TriggerSubscriptionOperationStatusInner.class, - Context.NONE); + return this.beginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); } /** @@ -1494,11 +1412,8 @@ private Response unsubscribeFromEventsWithResponse(String resourceGr @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TriggerSubscriptionOperationStatusInner> beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName, Context context) { - Response response - = unsubscribeFromEventsWithResponse(resourceGroupName, factoryName, triggerName, context); - return this.client - .getLroResult(response, - TriggerSubscriptionOperationStatusInner.class, TriggerSubscriptionOperationStatusInner.class, context); + return this.beginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName, context) + .getSyncPoller(); } /** @@ -1519,6 +1434,25 @@ private Mono unsubscribeFromEventsAsync .flatMap(this.client::getLroFinalResultOrError); } + /** + * Unsubscribe event trigger from events. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return defines the response of a trigger subscription operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono unsubscribeFromEventsAsync(String resourceGroupName, + String factoryName, String triggerName, Context context) { + return beginUnsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Unsubscribe event trigger from events. * @@ -1533,7 +1467,7 @@ private Mono unsubscribeFromEventsAsync @ServiceMethod(returns = ReturnType.SINGLE) public TriggerSubscriptionOperationStatusInner unsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName) { - return beginUnsubscribeFromEvents(resourceGroupName, factoryName, triggerName).getFinalResult(); + return unsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName).block(); } /** @@ -1551,7 +1485,7 @@ public TriggerSubscriptionOperationStatusInner unsubscribeFromEvents(String reso @ServiceMethod(returns = ReturnType.SINGLE) public TriggerSubscriptionOperationStatusInner unsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName, Context context) { - return beginUnsubscribeFromEvents(resourceGroupName, factoryName, triggerName, context).getFinalResult(); + return unsubscribeFromEventsAsync(resourceGroupName, factoryName, triggerName, context).block(); } /** @@ -1599,38 +1533,37 @@ private Mono>> startWithResponseAsync(String resourceG * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response startWithResponse(String resourceGroupName, String factoryName, String triggerName) { + private Mono>> startWithResponseAsync(String resourceGroupName, String factoryName, + String triggerName, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); } final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, this.client.getApiVersion(), accept, Context.NONE); + context = this.client.mergeContext(context); + return service.start(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + triggerName, this.client.getApiVersion(), accept, context); } /** @@ -1639,40 +1572,17 @@ private Response startWithResponse(String resourceGroupName, String * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response startWithResponse(String resourceGroupName, String factoryName, String triggerName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginStartAsync(String resourceGroupName, String factoryName, + String triggerName) { + Mono>> mono = startWithResponseAsync(resourceGroupName, factoryName, triggerName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -1681,6 +1591,7 @@ private Response startWithResponse(String resourceGroupName, String * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1688,10 +1599,12 @@ private Response startWithResponse(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync(String resourceGroupName, String factoryName, - String triggerName) { - Mono>> mono = startWithResponseAsync(resourceGroupName, factoryName, triggerName); + String triggerName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = startWithResponseAsync(resourceGroupName, factoryName, triggerName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + context); } /** @@ -1708,8 +1621,7 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart(String resourceGroupName, String factoryName, String triggerName) { - Response response = startWithResponse(resourceGroupName, factoryName, triggerName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + return this.beginStartAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); } /** @@ -1727,8 +1639,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart(String resourceGroupName, String factoryName, String triggerName, Context context) { - Response response = startWithResponse(resourceGroupName, factoryName, triggerName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + return this.beginStartAsync(resourceGroupName, factoryName, triggerName, context).getSyncPoller(); } /** @@ -1748,6 +1659,24 @@ private Mono startAsync(String resourceGroupName, String factoryName, Stri .flatMap(this.client::getLroFinalResultOrError); } + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono startAsync(String resourceGroupName, String factoryName, String triggerName, Context context) { + return beginStartAsync(resourceGroupName, factoryName, triggerName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Starts a trigger. * @@ -1760,7 +1689,7 @@ private Mono startAsync(String resourceGroupName, String factoryName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) public void start(String resourceGroupName, String factoryName, String triggerName) { - beginStart(resourceGroupName, factoryName, triggerName).getFinalResult(); + startAsync(resourceGroupName, factoryName, triggerName).block(); } /** @@ -1776,7 +1705,7 @@ public void start(String resourceGroupName, String factoryName, String triggerNa */ @ServiceMethod(returns = ReturnType.SINGLE) public void start(String resourceGroupName, String factoryName, String triggerName, Context context) { - beginStart(resourceGroupName, factoryName, triggerName, context).getFinalResult(); + startAsync(resourceGroupName, factoryName, triggerName, context).block(); } /** @@ -1824,38 +1753,37 @@ private Mono>> stopWithResponseAsync(String resourceGr * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response stopWithResponse(String resourceGroupName, String factoryName, String triggerName) { + private Mono>> stopWithResponseAsync(String resourceGroupName, String factoryName, + String triggerName, Context context) { if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); } if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); } final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, this.client.getApiVersion(), accept, Context.NONE); + context = this.client.mergeContext(context); + return service.stop(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, factoryName, + triggerName, this.client.getApiVersion(), accept, context); } /** @@ -1864,40 +1792,17 @@ private Response stopWithResponse(String resourceGroupName, String f * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response stopWithResponse(String resourceGroupName, String factoryName, String triggerName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (factoryName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter factoryName is required and cannot be null.")); - } - if (triggerName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter triggerName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - factoryName, triggerName, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginStopAsync(String resourceGroupName, String factoryName, + String triggerName) { + Mono>> mono = stopWithResponseAsync(resourceGroupName, factoryName, triggerName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -1906,6 +1811,7 @@ private Response stopWithResponse(String resourceGroupName, String f * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param triggerName The trigger name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1913,10 +1819,12 @@ private Response stopWithResponse(String resourceGroupName, String f */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync(String resourceGroupName, String factoryName, - String triggerName) { - Mono>> mono = stopWithResponseAsync(resourceGroupName, factoryName, triggerName); + String triggerName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = stopWithResponseAsync(resourceGroupName, factoryName, triggerName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + context); } /** @@ -1933,8 +1841,7 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop(String resourceGroupName, String factoryName, String triggerName) { - Response response = stopWithResponse(resourceGroupName, factoryName, triggerName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + return this.beginStopAsync(resourceGroupName, factoryName, triggerName).getSyncPoller(); } /** @@ -1952,8 +1859,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop(String resourceGroupName, String factoryName, String triggerName, Context context) { - Response response = stopWithResponse(resourceGroupName, factoryName, triggerName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + return this.beginStopAsync(resourceGroupName, factoryName, triggerName, context).getSyncPoller(); } /** @@ -1973,6 +1879,24 @@ private Mono stopAsync(String resourceGroupName, String factoryName, Strin .flatMap(this.client::getLroFinalResultOrError); } + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono stopAsync(String resourceGroupName, String factoryName, String triggerName, Context context) { + return beginStopAsync(resourceGroupName, factoryName, triggerName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Stops a trigger. * @@ -1985,7 +1909,7 @@ private Mono stopAsync(String resourceGroupName, String factoryName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) public void stop(String resourceGroupName, String factoryName, String triggerName) { - beginStop(resourceGroupName, factoryName, triggerName).getFinalResult(); + stopAsync(resourceGroupName, factoryName, triggerName).block(); } /** @@ -2001,7 +1925,7 @@ public void stop(String resourceGroupName, String factoryName, String triggerNam */ @ServiceMethod(returns = ReturnType.SINGLE) public void stop(String resourceGroupName, String factoryName, String triggerName, Context context) { - beginStop(resourceGroupName, factoryName, triggerName, context).getFinalResult(); + stopAsync(resourceGroupName, factoryName, triggerName, context).block(); } /** @@ -2030,33 +1954,6 @@ private Mono> listByFactoryNextSinglePageAsy .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. - * @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 trigger resources along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - /** * Get the next page of items. * @@ -2065,25 +1962,22 @@ private PagedResponse listByFactoryNextSinglePage(String n * @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 trigger resources along with {@link PagedResponse}. + * @return a list of trigger resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByFactoryNextSinglePage(String nextLink, Context context) { + private Mono> listByFactoryNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - Response res - = service.listByFactoryNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + context = this.client.mergeContext(context); + return service.listByFactoryNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } - - private static final ClientLogger LOGGER = new ClientLogger(TriggersClientImpl.class); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleAuthenticationType.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleAuthenticationType.java new file mode 100644 index 000000000000..1be1d6eee83b --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleAuthenticationType.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Authentication type for connecting to the AmazonRdsForOracle database. Only used for Version 2.0. + */ +public final class AmazonRdsForOracleAuthenticationType + extends ExpandableStringEnum { + /** + * Static value Basic for AmazonRdsForOracleAuthenticationType. + */ + public static final AmazonRdsForOracleAuthenticationType BASIC = fromString("Basic"); + + /** + * Creates a new instance of AmazonRdsForOracleAuthenticationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AmazonRdsForOracleAuthenticationType() { + } + + /** + * Creates or finds a AmazonRdsForOracleAuthenticationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AmazonRdsForOracleAuthenticationType. + */ + public static AmazonRdsForOracleAuthenticationType fromString(String name) { + return fromString(name, AmazonRdsForOracleAuthenticationType.class); + } + + /** + * Gets known AmazonRdsForOracleAuthenticationType values. + * + * @return known AmazonRdsForOracleAuthenticationType values. + */ + public static Collection values() { + return values(AmazonRdsForOracleAuthenticationType.class); + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java index 2eddd52b9c01..d5b0b3f0b4f0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AmazonRdsForOracleLinkedService.java @@ -16,7 +16,8 @@ import java.util.Map; /** - * AmazonRdsForOracle database. + * AmazonRdsForOracle database. This linked service has supported version property. The Version 1.0 is scheduled for + * deprecation while your pipeline will continue to run after EOL but without any bug fix or new features. */ @Fluent public final class AmazonRdsForOracleLinkedService extends LinkedService { @@ -102,7 +103,7 @@ public AmazonRdsForOracleLinkedService withAnnotations(List annotations) /** * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @return the connectionString value. */ @@ -112,7 +113,7 @@ public Object connectionString() { /** * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. + * AzureKeyVaultSecretReference. Only used for Version 1.0. * * @param connectionString the connectionString value to set. * @return the AmazonRdsForOracleLinkedService object itself. @@ -125,6 +126,82 @@ public AmazonRdsForOracleLinkedService withConnectionString(Object connectionStr return this; } + /** + * Get the server property: The location of AmazonRdsForOracle database you want to connect to, the supported forms + * include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). + * Type: string. Only used for Version 2.0. + * + * @return the server value. + */ + public Object server() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + } + + /** + * Set the server property: The location of AmazonRdsForOracle database you want to connect to, the supported forms + * include connector descriptor, Easy Connect (Plus) Naming and Oracle Net Services Name (Only self-hosted IR). + * Type: string. Only used for Version 2.0. + * + * @param server the server value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withServer(Object server) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withServer(server); + return this; + } + + /** + * Get the authenticationType property: Authentication type for connecting to the AmazonRdsForOracle database. Only + * used for Version 2.0. + * + * @return the authenticationType value. + */ + public AmazonRdsForOracleAuthenticationType authenticationType() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + } + + /** + * Set the authenticationType property: Authentication type for connecting to the AmazonRdsForOracle database. Only + * used for Version 2.0. + * + * @param authenticationType the authenticationType value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService + withAuthenticationType(AmazonRdsForOracleAuthenticationType authenticationType) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withAuthenticationType(authenticationType); + return this; + } + + /** + * Get the username property: The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. + * + * @return the username value. + */ + public Object username() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + } + + /** + * Set the username property: The AmazonRdsForOracle database username. Type: string. Only used for Version 2.0. + * + * @param username the username value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withUsername(Object username) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withUsername(username); + return this; + } + /** * Get the password property: The Azure key vault secret reference of password in connection string. * @@ -148,6 +225,289 @@ public AmazonRdsForOracleLinkedService withPassword(SecretBase password) { return this; } + /** + * Get the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @return the encryptionClient value. + */ + public Object encryptionClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptionClient(); + } + + /** + * Set the encryptionClient property: Specifies the encryption client behavior. Supported values are accepted, + * rejected, requested or required, default value is required. Type: string. Only used for Version 2.0. + * + * @param encryptionClient the encryptionClient value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withEncryptionClient(Object encryptionClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptionClient(encryptionClient); + return this; + } + + /** + * Get the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @return the encryptionTypesClient value. + */ + public Object encryptionTypesClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptionTypesClient(); + } + + /** + * Set the encryptionTypesClient property: Specifies the encryption algorithms that client can use. Supported values + * are AES128, AES192, AES256, 3DES112, 3DES168, default value is (AES256). Type: string. Only used for Version 2.0. + * + * @param encryptionTypesClient the encryptionTypesClient value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withEncryptionTypesClient(Object encryptionTypesClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEncryptionTypesClient(encryptionTypesClient); + return this; + } + + /** + * Get the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @return the cryptoChecksumClient value. + */ + public Object cryptoChecksumClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().cryptoChecksumClient(); + } + + /** + * Set the cryptoChecksumClient property: Specifies the desired data integrity behavior when this client connects to + * a server. Supported values are accepted, rejected, requested or required, default value is required. Type: + * string. Only used for Version 2.0. + * + * @param cryptoChecksumClient the cryptoChecksumClient value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withCryptoChecksumClient(Object cryptoChecksumClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withCryptoChecksumClient(cryptoChecksumClient); + return this; + } + + /** + * Get the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @return the cryptoChecksumTypesClient value. + */ + public Object cryptoChecksumTypesClient() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().cryptoChecksumTypesClient(); + } + + /** + * Set the cryptoChecksumTypesClient property: Specifies the crypto-checksum algorithms that client can use. + * Supported values are SHA1, SHA256, SHA384, SHA512, default value is (SHA512). Type: string. Only used for Version + * 2.0. + * + * @param cryptoChecksumTypesClient the cryptoChecksumTypesClient value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withCryptoChecksumTypesClient(Object cryptoChecksumTypesClient) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withCryptoChecksumTypesClient(cryptoChecksumTypesClient); + return this; + } + + /** + * Get the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the initialLobFetchSize value. + */ + public Object initialLobFetchSize() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().initialLobFetchSize(); + } + + /** + * Set the initialLobFetchSize property: Specifies the amount that the source initially fetches for LOB columns, + * default value is 0. Type: integer. Only used for Version 2.0. + * + * @param initialLobFetchSize the initialLobFetchSize value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withInitialLobFetchSize(Object initialLobFetchSize) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withInitialLobFetchSize(initialLobFetchSize); + return this; + } + + /** + * Get the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @return the fetchSize value. + */ + public Object fetchSize() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fetchSize(); + } + + /** + * Set the fetchSize property: Specifies the number of bytes that the driver allocates to fetch the data in one + * database round-trip, default value is 10485760. Type: integer. Only used for Version 2.0. + * + * @param fetchSize the fetchSize value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withFetchSize(Object fetchSize) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withFetchSize(fetchSize); + return this; + } + + /** + * Get the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @return the statementCacheSize value. + */ + public Object statementCacheSize() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().statementCacheSize(); + } + + /** + * Set the statementCacheSize property: Specifies the number of cursors or statements to be cached for each database + * connection, default value is 0. Type: integer. Only used for Version 2.0. + * + * @param statementCacheSize the statementCacheSize value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withStatementCacheSize(Object statementCacheSize) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withStatementCacheSize(statementCacheSize); + return this; + } + + /** + * Get the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @return the initializationString value. + */ + public Object initializationString() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().initializationString(); + } + + /** + * Set the initializationString property: Specifies a command that is issued immediately after connecting to the + * database to manage session settings. Type: string. Only used for Version 2.0. + * + * @param initializationString the initializationString value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withInitializationString(Object initializationString) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withInitializationString(initializationString); + return this; + } + + /** + * Get the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @return the enableBulkLoad value. + */ + public Object enableBulkLoad() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableBulkLoad(); + } + + /** + * Set the enableBulkLoad property: Specifies whether to use bulk copy or batch insert when loading data into the + * database, default value is true. Type: boolean. Only used for Version 2.0. + * + * @param enableBulkLoad the enableBulkLoad value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withEnableBulkLoad(Object enableBulkLoad) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withEnableBulkLoad(enableBulkLoad); + return this; + } + + /** + * Get the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @return the supportV1DataTypes value. + */ + public Object supportV1DataTypes() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().supportV1DataTypes(); + } + + /** + * Set the supportV1DataTypes property: Specifies whether to use the Version 1.0 data type mappings. Do not set this + * to true unless you want to keep backward compatibility with Version 1.0's data type mappings, default value is + * false. Type: boolean. Only used for Version 2.0. + * + * @param supportV1DataTypes the supportV1DataTypes value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withSupportV1DataTypes(Object supportV1DataTypes) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withSupportV1DataTypes(supportV1DataTypes); + return this; + } + + /** + * Get the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @return the fetchTswtzAsTimestamp value. + */ + public Object fetchTswtzAsTimestamp() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fetchTswtzAsTimestamp(); + } + + /** + * Set the fetchTswtzAsTimestamp property: Specifies whether the driver returns column value with the TIMESTAMP WITH + * TIME ZONE data type as DateTime or string. This setting is ignored if supportV1DataTypes is not true, default + * value is true. Type: boolean. Only used for Version 2.0. + * + * @param fetchTswtzAsTimestamp the fetchTswtzAsTimestamp value to set. + * @return the AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService withFetchTswtzAsTimestamp(Object fetchTswtzAsTimestamp) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withFetchTswtzAsTimestamp(fetchTswtzAsTimestamp); + return this; + } + /** * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted * using the integration runtime credential manager. Type: string. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java index dec5f7b455c9..67ce85c7c2a9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureDatabricksLinkedService.java @@ -586,6 +586,31 @@ public AzureDatabricksLinkedService withCredential(CredentialReference credentia return this; } + /** + * Get the dataSecurityMode property: The data security mode for the Databricks Cluster. Type: string (or Expression + * with resultType string). + * + * @return the dataSecurityMode value. + */ + public Object dataSecurityMode() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataSecurityMode(); + } + + /** + * Set the dataSecurityMode property: The data security mode for the Databricks Cluster. Type: string (or Expression + * with resultType string). + * + * @param dataSecurityMode the dataSecurityMode value to set. + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withDataSecurityMode(Object dataSecurityMode) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); + } + this.innerTypeProperties().withDataSecurityMode(dataSecurityMode); + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java similarity index 91% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java index 4a1c049ab51d..13be7930697b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java @@ -8,9 +8,9 @@ import java.time.OffsetDateTime; /** - * Samples for ActivityRuns QueryByPipelineRunSync. + * Samples for ActivityRuns QueryByPipelineRun. */ -public final class ActivityRunsQueryByPipelineRunSyncSamples { +public final class ActivityRunsQueryByPipelineRunSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ActivityRuns_QueryByPipelineRun.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureCreateOrUpdateSamples.java similarity index 95% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureCreateOrUpdateSamples.java index c6c0c553175f..a59ad84deeb5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureCreateOrUpdateSamples.java @@ -11,9 +11,9 @@ import java.util.List; /** - * Samples for ChangeDataCapture CreateOrUpdateSync. + * Samples for ChangeDataCapture CreateOrUpdate. */ -public final class ChangeDataCaptureCreateOrUpdateSyncSamples { +public final class ChangeDataCaptureCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ChangeDataCapture_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureDeleteSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureDeleteSamples.java index 94bdc2b4cc2a..0c356c206375 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ChangeDataCapture DeleteSync. + * Samples for ChangeDataCapture Delete. */ -public final class ChangeDataCaptureDeleteSyncSamples { +public final class ChangeDataCaptureDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ChangeDataCapture_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureGetSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureGetSamples.java index da1a78a0e3bb..041eee9f2e72 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ChangeDataCapture GetSync. + * Samples for ChangeDataCapture Get. */ -public final class ChangeDataCaptureGetSyncSamples { +public final class ChangeDataCaptureGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListByFactorySamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListByFactorySamples.java index c93f3c4311e0..f7d93b5cea92 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ChangeDataCapture ListByFactorySync. + * Samples for ChangeDataCapture ListByFactory. */ -public final class ChangeDataCaptureListByFactorySyncSamples { +public final class ChangeDataCaptureListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ChangeDataCapture_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStartSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStartSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStartSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStartSamples.java index 8512fc186cb0..4cc15106c0e3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStartSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStartSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ChangeDataCapture StartSync. + * Samples for ChangeDataCapture Start. */ -public final class ChangeDataCaptureStartSyncSamples { +public final class ChangeDataCaptureStartSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ChangeDataCapture_Start.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStatusSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStatusSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStatusSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStatusSamples.java index 38d6e2fc584c..2d9926b7ea67 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStatusSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStatusSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ChangeDataCapture StatusSync. + * Samples for ChangeDataCapture Status. */ -public final class ChangeDataCaptureStatusSyncSamples { +public final class ChangeDataCaptureStatusSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ChangeDataCapture_Status.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStopSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStopSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStopSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStopSamples.java index 1c864e6b36e3..d79fe2518aa2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStopSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureStopSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ChangeDataCapture StopSync. + * Samples for ChangeDataCapture Stop. */ -public final class ChangeDataCaptureStopSyncSamples { +public final class ChangeDataCaptureStopSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ChangeDataCapture_Stop.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSamples.java index 9617f07227fe..607fd0278dac 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential; /** - * Samples for CredentialOperations CreateOrUpdateSync. + * Samples for CredentialOperations CreateOrUpdate. */ -public final class CredentialOperationsCreateOrUpdateSyncSamples { +public final class CredentialOperationsCreateOrUpdateSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSamples.java index 93eda5fd38f8..97858b306826 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for CredentialOperations DeleteSync. + * Samples for CredentialOperations Delete. */ -public final class CredentialOperationsDeleteSyncSamples { +public final class CredentialOperationsDeleteSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSamples.java index f6077d254aaf..11bdbbdff5c3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for CredentialOperations GetSync. + * Samples for CredentialOperations Get. */ -public final class CredentialOperationsGetSyncSamples { +public final class CredentialOperationsGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySamples.java similarity index 86% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySamples.java index 01f431465781..5d12fc1d3f8d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for CredentialOperations ListByFactorySync. + * Samples for CredentialOperations ListByFactory. */ -public final class CredentialOperationsListByFactorySyncSamples { +public final class CredentialOperationsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Credentials_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java similarity index 97% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java index f6324ca42acc..98f603b0cf48 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java @@ -25,9 +25,9 @@ import java.util.Map; /** - * Samples for DataFlowDebugSession AddDataFlowSync. + * Samples for DataFlowDebugSession AddDataFlow. */ -public final class DataFlowDebugSessionAddDataFlowSyncSamples { +public final class DataFlowDebugSessionAddDataFlowSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * DataFlowDebugSession_AddDataFlow.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java index 592bc0c090c4..0a096f394925 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; /** - * Samples for DataFlowDebugSession DeleteSync. + * Samples for DataFlowDebugSession Delete. */ -public final class DataFlowDebugSessionDeleteSyncSamples { +public final class DataFlowDebugSessionDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * DataFlowDebugSession_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java index e2bf8dfe629f..91bcf4582deb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for DataFlowDebugSession QueryByFactorySync. + * Samples for DataFlowDebugSession QueryByFactory. */ -public final class DataFlowDebugSessionQueryByFactorySyncSamples { +public final class DataFlowDebugSessionQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * DataFlowDebugSession_QueryByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java similarity index 98% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java index 4bfb3fe4e7d4..9b47b9924d0d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java @@ -12,9 +12,9 @@ import java.util.Arrays; /** - * Samples for DataFlows CreateOrUpdateSync. + * Samples for DataFlows CreateOrUpdate. */ -public final class DataFlowsCreateOrUpdateSyncSamples { +public final class DataFlowsCreateOrUpdateSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java index 084022eeef89..7ccd666ba75f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for DataFlows DeleteSync. + * Samples for DataFlows Delete. */ -public final class DataFlowsDeleteSyncSamples { +public final class DataFlowsDeleteSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java index c65f72073a71..b4efc1e81c49 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for DataFlows GetSync. + * Samples for DataFlows Get. */ -public final class DataFlowsGetSyncSamples { +public final class DataFlowsGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java index 6b2e72fa9070..2316afd7231a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for DataFlows ListByFactorySync. + * Samples for DataFlows ListByFactory. */ -public final class DataFlowsListByFactorySyncSamples { +public final class DataFlowsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * DataFlows_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java similarity index 97% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java index fa318e3a6e04..bdc86bdcc83d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java @@ -17,9 +17,9 @@ import java.util.Map; /** - * Samples for Datasets CreateOrUpdateSync. + * Samples for Datasets CreateOrUpdate. */ -public final class DatasetsCreateOrUpdateSyncSamples { +public final class DatasetsCreateOrUpdateSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java index 4b05ae282b9e..c3ac8034d130 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Datasets DeleteSync. + * Samples for Datasets Delete. */ -public final class DatasetsDeleteSyncSamples { +public final class DatasetsDeleteSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java similarity index 91% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java index cdcd3cce1d5f..42a087128d79 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Datasets GetSync. + * Samples for Datasets Get. */ -public final class DatasetsGetSyncSamples { +public final class DatasetsGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java index 9560dfa3831e..18956dfad5c7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Datasets ListByFactorySync. + * Samples for Datasets ListByFactory. */ -public final class DatasetsListByFactorySyncSamples { +public final class DatasetsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Datasets_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java index f86788ad81e3..58b56a8f0ead 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; /** - * Samples for ExposureControl GetFeatureValueByFactorySync. + * Samples for ExposureControl GetFeatureValueByFactory. */ -public final class ExposureControlGetFeatureValueByFactorySyncSamples { +public final class ExposureControlGetFeatureValueByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ExposureControl_GetFeatureValueByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java index 3550c51671e5..c27f6860b7af 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; /** - * Samples for ExposureControl GetFeatureValueSync. + * Samples for ExposureControl GetFeatureValue. */ -public final class ExposureControlGetFeatureValueSyncSamples { +public final class ExposureControlGetFeatureValueSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ExposureControl_GetFeatureValue.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java similarity index 91% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java index b63cd91e51a1..26c2aceed058 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java @@ -9,9 +9,9 @@ import java.util.Arrays; /** - * Samples for ExposureControl QueryFeatureValuesByFactorySync. + * Samples for ExposureControl QueryFeatureValuesByFactory. */ -public final class ExposureControlQueryFeatureValuesByFactorySyncSamples { +public final class ExposureControlQueryFeatureValuesByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ExposureControl_QueryFeatureValuesByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java similarity index 93% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java index fa323d4dd9ba..f847087d67c6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java @@ -8,9 +8,9 @@ import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; /** - * Samples for Factories ConfigureFactoryRepoSync. + * Samples for Factories ConfigureFactoryRepo. */ -public final class FactoriesConfigureFactoryRepoSyncSamples { +public final class FactoriesConfigureFactoryRepoSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Factories_ConfigureFactoryRepo.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java index df28298510ec..aaf0859df4d1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Factories CreateOrUpdateSync. + * Samples for Factories CreateOrUpdate. */ -public final class FactoriesCreateOrUpdateSyncSamples { +public final class FactoriesCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Factories_CreateOrUpdate.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java index 57a6d0c8614a..8b28e755accc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Factories DeleteSync. + * Samples for Factories Delete. */ -public final class FactoriesDeleteSyncSamples { +public final class FactoriesDeleteSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java index a589dc910f34..bd40666bfc40 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Factories GetByResourceGroupSync. + * Samples for Factories GetByResourceGroup. */ -public final class FactoriesGetByResourceGroupSyncSamples { +public final class FactoriesGetByResourceGroupSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java similarity index 91% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java index 52166a69df85..2c5db3f31002 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; /** - * Samples for Factories GetDataPlaneAccessSync. + * Samples for Factories GetDataPlaneAccess. */ -public final class FactoriesGetDataPlaneAccessSyncSamples { +public final class FactoriesGetDataPlaneAccessSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Factories_GetDataPlaneAccess.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java index 8577addd9181..b991b6647343 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; /** - * Samples for Factories GetGitHubAccessTokenSync. + * Samples for Factories GetGitHubAccessToken. */ -public final class FactoriesGetGitHubAccessTokenSyncSamples { +public final class FactoriesGetGitHubAccessTokenSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Factories_GetGitHubAccessToken.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java index 9228f1920746..0b58377e193f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Factories ListByResourceGroupSync. + * Samples for Factories ListByResourceGroup. */ -public final class FactoriesListByResourceGroupSyncSamples { +public final class FactoriesListByResourceGroupSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Factories_ListByResourceGroup.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java index bba2c5f4f49c..4475f001b740 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Factories ListSync. + * Samples for Factories List. */ -public final class FactoriesListSyncSamples { +public final class FactoriesListSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java similarity index 94% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java index 764a22af0803..b82fcc862106 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java @@ -9,9 +9,9 @@ import java.util.Map; /** - * Samples for Factories UpdateSync. + * Samples for Factories Update. */ -public final class FactoriesUpdateSyncSamples { +public final class FactoriesUpdateSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateSamples.java similarity index 93% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateSamples.java index 25eba25b8352..0a37488168cc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateSamples.java @@ -9,9 +9,9 @@ import java.util.Map; /** - * Samples for GlobalParameters CreateOrUpdateSync. + * Samples for GlobalParameters CreateOrUpdate. */ -public final class GlobalParametersCreateOrUpdateSyncSamples { +public final class GlobalParametersCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * GlobalParameters_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteSamples.java index 4f1e682866ad..50ba10571c33 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for GlobalParameters DeleteSync. + * Samples for GlobalParameters Delete. */ -public final class GlobalParametersDeleteSyncSamples { +public final class GlobalParametersDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * GlobalParameters_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetSamples.java index e3297c2b00b3..a62e4fcb58bf 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for GlobalParameters GetSync. + * Samples for GlobalParameters Get. */ -public final class GlobalParametersGetSyncSamples { +public final class GlobalParametersGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactorySamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactorySamples.java index 73980ce4b944..9b30be746cb1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for GlobalParameters ListByFactorySync. + * Samples for GlobalParameters ListByFactory. */ -public final class GlobalParametersListByFactorySyncSamples { +public final class GlobalParametersListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * GlobalParameters_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java index 81c2fa18cd72..f41cc30efad9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimeNodes DeleteSync. + * Samples for IntegrationRuntimeNodes Delete. */ -public final class IntegrationRuntimeNodesDeleteSyncSamples { +public final class IntegrationRuntimeNodesDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimeNodes_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java index e3c6c712c5a8..f92e72444d7b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimeNodes GetIpAddressSync. + * Samples for IntegrationRuntimeNodes GetIpAddress. */ -public final class IntegrationRuntimeNodesGetIpAddressSyncSamples { +public final class IntegrationRuntimeNodesGetIpAddressSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimeNodes_GetIpAddress.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java index 8361d3b851e3..d3a7d04eba2e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimeNodes GetSync. + * Samples for IntegrationRuntimeNodes Get. */ -public final class IntegrationRuntimeNodesGetSyncSamples { +public final class IntegrationRuntimeNodesGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimeNodes_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java index 027145539fba..6a69c7146adf 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; /** - * Samples for IntegrationRuntimeNodes UpdateSync. + * Samples for IntegrationRuntimeNodes Update. */ -public final class IntegrationRuntimeNodesUpdateSyncSamples { +public final class IntegrationRuntimeNodesUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimeNodes_Update.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java index 1ec362cbb3d1..a34894c64741 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; /** - * Samples for IntegrationRuntimeObjectMetadata GetSync. + * Samples for IntegrationRuntimeObjectMetadata Get. */ -public final class IntegrationRuntimeObjectMetadataGetSyncSamples { +public final class IntegrationRuntimeObjectMetadataGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimeObjectMetadata_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java similarity index 98% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java index 718347945c99..a8b67b40d16e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; /** - * Samples for IntegrationRuntimes CreateLinkedIntegrationRuntimeSync. + * Samples for IntegrationRuntimes CreateLinkedIntegrationRuntime. */ -public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSyncSamples { +public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_CreateLinkedIntegrationRuntime.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java index 00119d770e97..05c603d6d62b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; /** - * Samples for IntegrationRuntimes CreateOrUpdateSync. + * Samples for IntegrationRuntimes CreateOrUpdate. */ -public final class IntegrationRuntimesCreateOrUpdateSyncSamples { +public final class IntegrationRuntimesCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java index 000de7024dcb..934bbb5c65a9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes DeleteSync. + * Samples for IntegrationRuntimes Delete. */ -public final class IntegrationRuntimesDeleteSyncSamples { +public final class IntegrationRuntimesDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java index 4e626d768648..92d8acafd1d1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes GetConnectionInfoSync. + * Samples for IntegrationRuntimes GetConnectionInfo. */ -public final class IntegrationRuntimesGetConnectionInfoSyncSamples { +public final class IntegrationRuntimesGetConnectionInfoSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_GetConnectionInfo.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java index 544b3e9602d4..a48db852fa0c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes GetMonitoringDataSync. + * Samples for IntegrationRuntimes GetMonitoringData. */ -public final class IntegrationRuntimesGetMonitoringDataSyncSamples { +public final class IntegrationRuntimesGetMonitoringDataSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_GetMonitoringData.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java index 3420548c5efc..08b53379fc23 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes GetSync. + * Samples for IntegrationRuntimes Get. */ -public final class IntegrationRuntimesGetSyncSamples { +public final class IntegrationRuntimesGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java index a24350d9596f..470915e5e0bd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes GetStatusSync. + * Samples for IntegrationRuntimes GetStatus. */ -public final class IntegrationRuntimesGetStatusSyncSamples { +public final class IntegrationRuntimesGetStatusSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_GetStatus.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java index ee69d0163afe..f24bffb00089 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes ListAuthKeysSync. + * Samples for IntegrationRuntimes ListAuthKeys. */ -public final class IntegrationRuntimesListAuthKeysSyncSamples { +public final class IntegrationRuntimesListAuthKeysSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_ListAuthKeys.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java index 55260ac515ca..0d1d2e198b5d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes ListByFactorySync. + * Samples for IntegrationRuntimes ListByFactory. */ -public final class IntegrationRuntimesListByFactorySyncSamples { +public final class IntegrationRuntimesListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java similarity index 96% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java index 7b5f8636d4d8..c3cbf8db4a39 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpointsSync. + * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. */ -public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSyncSamples { +public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java index 59a0dccdb6d5..700f686f4379 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java @@ -8,9 +8,9 @@ import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; /** - * Samples for IntegrationRuntimes RegenerateAuthKeySync. + * Samples for IntegrationRuntimes RegenerateAuthKey. */ -public final class IntegrationRuntimesRegenerateAuthKeySyncSamples { +public final class IntegrationRuntimesRegenerateAuthKeySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_RegenerateAuthKey.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java index 427db4459dce..4baf436595a5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; /** - * Samples for IntegrationRuntimes RemoveLinksSync. + * Samples for IntegrationRuntimes RemoveLinks. */ -public final class IntegrationRuntimesRemoveLinksSyncSamples { +public final class IntegrationRuntimesRemoveLinksSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_RemoveLinks.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java index cc3453e8ab2c..d26510bf06cc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes SyncCredentialsSync. + * Samples for IntegrationRuntimes SyncCredentials. */ -public final class IntegrationRuntimesSyncCredentialsSyncSamples { +public final class IntegrationRuntimesSyncCredentialsSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_SyncCredentials.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java similarity index 91% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java index 0804c8ad07ac..9f31c23360c7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java @@ -8,9 +8,9 @@ import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; /** - * Samples for IntegrationRuntimes UpdateSync. + * Samples for IntegrationRuntimes Update. */ -public final class IntegrationRuntimesUpdateSyncSamples { +public final class IntegrationRuntimesUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_Update.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java index e941861a2185..f339a148e676 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for IntegrationRuntimes UpgradeSync. + * Samples for IntegrationRuntimes Upgrade. */ -public final class IntegrationRuntimesUpgradeSyncSamples { +public final class IntegrationRuntimesUpgradeSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * IntegrationRuntimes_Upgrade.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java similarity index 96% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java index 4df6591e49c0..d5600f85515e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java @@ -11,9 +11,9 @@ import java.io.IOException; /** - * Samples for LinkedServices CreateOrUpdateSync. + * Samples for LinkedServices CreateOrUpdate. */ -public final class LinkedServicesCreateOrUpdateSyncSamples { +public final class LinkedServicesCreateOrUpdateSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java index 8c5a1085083f..74fdb73213e5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for LinkedServices DeleteSync. + * Samples for LinkedServices Delete. */ -public final class LinkedServicesDeleteSyncSamples { +public final class LinkedServicesDeleteSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java index f364819ab3f3..a0542b41fc46 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for LinkedServices GetSync. + * Samples for LinkedServices Get. */ -public final class LinkedServicesGetSyncSamples { +public final class LinkedServicesGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java index e204d81f3ac9..1c38b12ca901 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for LinkedServices ListByFactorySync. + * Samples for LinkedServices ListByFactory. */ -public final class LinkedServicesListByFactorySyncSamples { +public final class LinkedServicesListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * LinkedServices_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java similarity index 93% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java index 9d947d07da77..d9e58d27d83b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java @@ -10,9 +10,9 @@ import java.util.Map; /** - * Samples for ManagedPrivateEndpoints CreateOrUpdateSync. + * Samples for ManagedPrivateEndpoints CreateOrUpdate. */ -public final class ManagedPrivateEndpointsCreateOrUpdateSyncSamples { +public final class ManagedPrivateEndpointsCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ManagedPrivateEndpoints_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java index 158603145ecc..dc3ed01fba1e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ManagedPrivateEndpoints DeleteSync. + * Samples for ManagedPrivateEndpoints Delete. */ -public final class ManagedPrivateEndpointsDeleteSyncSamples { +public final class ManagedPrivateEndpointsDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ManagedPrivateEndpoints_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java index 8c804ab4cfb6..52605109eac4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ManagedPrivateEndpoints GetSync. + * Samples for ManagedPrivateEndpoints Get. */ -public final class ManagedPrivateEndpointsGetSyncSamples { +public final class ManagedPrivateEndpointsGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ManagedPrivateEndpoints_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java index bdc42f19b124..c0f7ffbc6a8a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ManagedPrivateEndpoints ListByFactorySync. + * Samples for ManagedPrivateEndpoints ListByFactory. */ -public final class ManagedPrivateEndpointsListByFactorySyncSamples { +public final class ManagedPrivateEndpointsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ManagedPrivateEndpoints_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java similarity index 92% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java index c1e283530ff1..21bc4fa2cce5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java @@ -9,9 +9,9 @@ import java.util.Map; /** - * Samples for ManagedVirtualNetworks CreateOrUpdateSync. + * Samples for ManagedVirtualNetworks CreateOrUpdate. */ -public final class ManagedVirtualNetworksCreateOrUpdateSyncSamples { +public final class ManagedVirtualNetworksCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ManagedVirtualNetworks_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java index f8a86ddac013..fa04bc2fc9e0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ManagedVirtualNetworks GetSync. + * Samples for ManagedVirtualNetworks Get. */ -public final class ManagedVirtualNetworksGetSyncSamples { +public final class ManagedVirtualNetworksGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ManagedVirtualNetworks_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java index 55d5fdb5e63f..c9e6d0abb7bc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for ManagedVirtualNetworks ListByFactorySync. + * Samples for ManagedVirtualNetworks ListByFactory. */ -public final class ManagedVirtualNetworksListByFactorySyncSamples { +public final class ManagedVirtualNetworksListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ManagedVirtualNetworks_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java index f4eed1e809aa..a89fb1539aea 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Operations ListSync. + * Samples for Operations List. */ -public final class OperationsListSyncSamples { +public final class OperationsListSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java index 84838041765a..e0893fdf23d5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for PipelineRuns CancelSync. + * Samples for PipelineRuns Cancel. */ -public final class PipelineRunsCancelSyncSamples { +public final class PipelineRunsCancelSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java index 678808f1c35d..b3d6db351cf8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for PipelineRuns GetSync. + * Samples for PipelineRuns Get. */ -public final class PipelineRunsGetSyncSamples { +public final class PipelineRunsGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java similarity index 93% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java index 9865ce1b8b8e..092c8ca28ad6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java @@ -12,9 +12,9 @@ import java.util.Arrays; /** - * Samples for PipelineRuns QueryByFactorySync. + * Samples for PipelineRuns QueryByFactory. */ -public final class PipelineRunsQueryByFactorySyncSamples { +public final class PipelineRunsQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * PipelineRuns_QueryByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java similarity index 98% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java index 2e139844df72..5a317936e96f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java @@ -25,9 +25,9 @@ import java.util.Map; /** - * Samples for Pipelines CreateOrUpdateSync. + * Samples for Pipelines CreateOrUpdate. */ -public final class PipelinesCreateOrUpdateSyncSamples { +public final class PipelinesCreateOrUpdateSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java similarity index 94% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java index 713bb086ed9e..dc26403a620f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java @@ -11,9 +11,9 @@ import java.util.Map; /** - * Samples for Pipelines CreateRunSync. + * Samples for Pipelines CreateRun. */ -public final class PipelinesCreateRunSyncSamples { +public final class PipelinesCreateRunSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java index 7bfce22d1d08..6fd1852168f0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Pipelines DeleteSync. + * Samples for Pipelines Delete. */ -public final class PipelinesDeleteSyncSamples { +public final class PipelinesDeleteSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java index b7140c48ab94..c78502cfd297 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Pipelines GetSync. + * Samples for Pipelines Get. */ -public final class PipelinesGetSyncSamples { +public final class PipelinesGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java index bf898766aece..2dd3ad786dc5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Pipelines ListByFactorySync. + * Samples for Pipelines ListByFactory. */ -public final class PipelinesListByFactorySyncSamples { +public final class PipelinesListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Pipelines_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java similarity index 86% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java index e522e41668a1..dd11011c4ec1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for PrivateEndPointConnections ListByFactorySync. + * Samples for PrivateEndPointConnections ListByFactory. */ -public final class PrivateEndPointConnectionsListByFactorySyncSamples { +public final class PrivateEndPointConnectionsListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * PrivateEndPointConnections_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java similarity index 98% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java index bebf469af8c0..a6206eb70dec 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java @@ -9,9 +9,9 @@ import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; /** - * Samples for PrivateEndpointConnectionOperation CreateOrUpdateSync. + * Samples for PrivateEndpointConnectionOperation CreateOrUpdate. */ -public final class PrivateEndpointConnectionOperationCreateOrUpdateSyncSamples { +public final class PrivateEndpointConnectionOperationCreateOrUpdateSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * ApproveRejectPrivateEndpointConnection.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java index dab107f946e3..f394a1e07343 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for PrivateEndpointConnectionOperation DeleteSync. + * Samples for PrivateEndpointConnectionOperation Delete. */ -public final class PrivateEndpointConnectionOperationDeleteSyncSamples { +public final class PrivateEndpointConnectionOperationDeleteSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * DeletePrivateEndpointConnection.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java index 429535c8fcdc..7082c37a9dab 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for PrivateEndpointConnectionOperation GetSync. + * Samples for PrivateEndpointConnectionOperation Get. */ -public final class PrivateEndpointConnectionOperationGetSyncSamples { +public final class PrivateEndpointConnectionOperationGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * GetPrivateEndpointConnection.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java similarity index 89% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java index 3d1a69255ab8..b7a2694ed20b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for PrivateLinkResources GetSync. + * Samples for PrivateLinkResources Get. */ -public final class PrivateLinkResourcesGetSyncSamples { +public final class PrivateLinkResourcesGetSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * GetPrivateLinkResources.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java index 4fe3e95c1c3e..404a139a3b70 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for TriggerRuns CancelSync. + * Samples for TriggerRuns Cancel. */ -public final class TriggerRunsCancelSyncSamples { +public final class TriggerRunsCancelSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java similarity index 93% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java index 6d474c0a6d86..32c8c8035310 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java @@ -12,9 +12,9 @@ import java.util.Arrays; /** - * Samples for TriggerRuns QueryByFactorySync. + * Samples for TriggerRuns QueryByFactory. */ -public final class TriggerRunsQueryByFactorySyncSamples { +public final class TriggerRunsQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * TriggerRuns_QueryByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java index b5a95c58a163..ae547b5f39c0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for TriggerRuns RerunSync. + * Samples for TriggerRuns Rerun. */ -public final class TriggerRunsRerunSyncSamples { +public final class TriggerRunsRerunSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java similarity index 97% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java index 95ebb84f203e..a916bad5a088 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java @@ -19,9 +19,9 @@ import java.util.Map; /** - * Samples for Triggers CreateOrUpdateSync. + * Samples for Triggers CreateOrUpdate. */ -public final class TriggersCreateOrUpdateSyncSamples { +public final class TriggersCreateOrUpdateSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java index c1372205f656..7bdd8805e788 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Triggers DeleteSync. + * Samples for Triggers Delete. */ -public final class TriggersDeleteSyncSamples { +public final class TriggersDeleteSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java similarity index 87% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java index 2f3d9b024d1c..2c6efc99e07d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Triggers GetEventSubscriptionStatusSync. + * Samples for Triggers GetEventSubscriptionStatus. */ -public final class TriggersGetEventSubscriptionStatusSyncSamples { +public final class TriggersGetEventSubscriptionStatusSamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Triggers_GetEventSubscriptionStatus.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java similarity index 91% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java index 46de126c46bb..b56a16a3ec22 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Triggers GetSync. + * Samples for Triggers Get. */ -public final class TriggersGetSyncSamples { +public final class TriggersGetSamples { /* * x-ms-original-file: * specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java similarity index 88% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java index 7f49612df33a..b43149ceacf3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java @@ -5,9 +5,9 @@ package com.azure.resourcemanager.datafactory.generated; /** - * Samples for Triggers ListByFactorySync. + * Samples for Triggers ListByFactory. */ -public final class TriggersListByFactorySyncSamples { +public final class TriggersListByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Triggers_ListByFactory.json diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySyncSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java similarity index 90% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySyncSamples.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java index 24d496343916..ec88aa0f837c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySyncSamples.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java @@ -7,9 +7,9 @@ import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; /** - * Samples for Triggers QueryByFactorySync. + * Samples for Triggers QueryByFactory. */ -public final class TriggersQueryByFactorySyncSamples { +public final class TriggersQueryByFactorySamples { /* * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ * Triggers_QueryByFactory.json 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 ebaedf8d1093..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\":\"nmwcpmgu\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Completed\",\"Failed\"],\"\":{\"jjziuxxpsh\":\"datactkahzov\",\"enr\":\"dataeekulfgslqubkwd\",\"pjuohminyfl\":\"datasutujba\"}}") - .toObject(ActivityDependency.class); - Assertions.assertEquals("nmwcpmgu", 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("nmwcpmgu") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ActivityDependency.class); - Assertions.assertEquals("nmwcpmgu", 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 a04a51d80fc7..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\":\"datakqud\",\"retry\":\"datawcwjacdbkcehxahn\",\"retryIntervalInSeconds\":751356858,\"secureInput\":false,\"secureOutput\":true,\"\":{\"bbvitlnnpafu\":\"datae\",\"bndr\":\"datawre\",\"temvaajyit\":\"datazfnstlavmdc\"}}") - .toObject(ActivityPolicy.class); - Assertions.assertEquals(751356858, model.retryIntervalInSeconds()); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityPolicy model = new ActivityPolicy().withTimeout("datakqud") - .withRetry("datawcwjacdbkcehxahn") - .withRetryIntervalInSeconds(751356858) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ActivityPolicy.class); - Assertions.assertEquals(751356858, model.retryIntervalInSeconds()); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java deleted file mode 100644 index ffa137de53a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityRunTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityRun; -import java.util.HashMap; -import java.util.Map; - -public final class ActivityRunTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ActivityRun model = BinaryData.fromString( - "{\"pipelineName\":\"qhzvhxnkomt\",\"pipelineRunId\":\"bo\",\"activityName\":\"pnvdxz\",\"activityType\":\"ihfrbbcevqa\",\"activityRunId\":\"ltd\",\"linkedServiceName\":\"fkqojpy\",\"status\":\"gtrd\",\"activityRunStart\":\"2021-05-17T05:05:59Z\",\"activityRunEnd\":\"2021-08-15T02:13:51Z\",\"durationInMs\":2043504503,\"input\":\"datadymbrny\",\"output\":\"dataxmprafwg\",\"error\":\"datahocxvdfffwafqrou\",\"\":{\"kbunzoz\":\"datapavehhr\",\"cdyuibhmfdnbzyd\":\"datadhcxgkmoy\"}}") - .toObject(ActivityRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ActivityRun model = new ActivityRun().withAdditionalProperties( - mapOf("durationInMs", 2043504503, "linkedServiceName", "fkqojpy", "activityRunStart", - "2021-05-17T05:05:59Z", "activityRunEnd", "2021-08-15T02:13:51Z", "activityName", "pnvdxz", "error", - "datahocxvdfffwafqrou", "pipelineName", "qhzvhxnkomt", "output", "dataxmprafwg", "activityRunId", "ltd", - "input", "datadymbrny", "pipelineRunId", "bo", "activityType", "ihfrbbcevqa", "status", "gtrd")); - model = BinaryData.fromObject(model).toObject(ActivityRun.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java deleted file mode 100644 index a309e7809b31..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ActivityTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Activity model = BinaryData.fromString( - "{\"type\":\"Activity\",\"name\":\"ljyxgtczhe\",\"description\":\"bsdshmkxmaehvbbx\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"n\",\"dependencyConditions\":[\"Succeeded\",\"Failed\"],\"\":{\"wrck\":\"datagx\",\"gzibthostgktstv\":\"datayklyhpluodpvruud\"}},{\"activity\":\"xeclzedqbcvhzlhp\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Succeeded\"],\"\":{\"smlmbtxhwgfwsrta\":\"datawwqfbumlkxtrqj\",\"dyg\":\"datacoezbrhubskh\",\"fqjbvleo\":\"dataookk\",\"qybaryeua\":\"datafmluiqtqzfavyvn\"}},{\"activity\":\"jkqa\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"tiewdj\":\"dataesjcbhern\",\"ehwagoh\":\"datavbquwr\"}}],\"userProperties\":[{\"name\":\"fkmr\",\"value\":\"dataemvvhm\"}],\"\":{\"coebjvewzcj\":\"datarjfut\"}}") - .toObject(Activity.class); - Assertions.assertEquals("ljyxgtczhe", model.name()); - Assertions.assertEquals("bsdshmkxmaehvbbx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("n", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fkmr", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Activity model - = new Activity().withName("ljyxgtczhe") - .withDescription("bsdshmkxmaehvbbx") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("n") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xeclzedqbcvhzlhp") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jkqa") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("fkmr").withValue("dataemvvhm"))) - .withAdditionalProperties(mapOf("type", "Activity")); - model = BinaryData.fromObject(model).toObject(Activity.class); - Assertions.assertEquals("ljyxgtczhe", model.name()); - Assertions.assertEquals("bsdshmkxmaehvbbx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("n", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fkmr", model.userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java deleted file mode 100644 index 10ec7d9dc045..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AddDataFlowToDebugSessionResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AddDataFlowToDebugSessionResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class AddDataFlowToDebugSessionResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDataFlowToDebugSessionResponseInner model - = BinaryData.fromString("{\"jobVersion\":\"l\"}").toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("l", model.jobVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDataFlowToDebugSessionResponseInner model = new AddDataFlowToDebugSessionResponseInner().withJobVersion("l"); - model = BinaryData.fromObject(model).toObject(AddDataFlowToDebugSessionResponseInner.class); - Assertions.assertEquals("l", model.jobVersion()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java deleted file mode 100644 index 2713ab94eec3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonMwsObjectDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonMwsObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonMwsObjectDataset model = BinaryData.fromString( - "{\"type\":\"AmazonMWSObject\",\"typeProperties\":{\"tableName\":\"datasfqqhcmecagsbf\"},\"description\":\"irpnj\",\"structure\":\"datallfkchhgs\",\"schema\":\"datazzcajl\",\"linkedServiceName\":{\"referenceName\":\"mqcycabaamkkhd\",\"parameters\":{\"ws\":\"datakxdujkxpuqzdyoq\",\"ezxiz\":\"dataarpzhry\",\"azccouhwivkd\":\"datasyxbfjilb\"}},\"parameters\":{\"dqbvx\":{\"type\":\"SecureString\",\"defaultValue\":\"datanrbxzepirtvcpi\"}},\"annotations\":[\"datalpwbopvhcbt\"],\"folder\":{\"name\":\"rjxcon\"},\"\":{\"h\":\"datakfki\",\"gvuqzgbjwvrudmp\":\"dataeoc\",\"esgyzwph\":\"dataewpmioleaja\"}}") - .toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("irpnj", model.description()); - Assertions.assertEquals("mqcycabaamkkhd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("dqbvx").type()); - Assertions.assertEquals("rjxcon", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsObjectDataset model = new AmazonMwsObjectDataset().withDescription("irpnj") - .withStructure("datallfkchhgs") - .withSchema("datazzcajl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mqcycabaamkkhd") - .withParameters( - mapOf("ws", "datakxdujkxpuqzdyoq", "ezxiz", "dataarpzhry", "azccouhwivkd", "datasyxbfjilb"))) - .withParameters(mapOf("dqbvx", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datanrbxzepirtvcpi"))) - .withAnnotations(Arrays.asList("datalpwbopvhcbt")) - .withFolder(new DatasetFolder().withName("rjxcon")) - .withTableName("datasfqqhcmecagsbf"); - model = BinaryData.fromObject(model).toObject(AmazonMwsObjectDataset.class); - Assertions.assertEquals("irpnj", model.description()); - Assertions.assertEquals("mqcycabaamkkhd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("dqbvx").type()); - Assertions.assertEquals("rjxcon", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java deleted file mode 100644 index 20a775e02319..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonMwsSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonMwsSource; - -public final class AmazonMwsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonMwsSource model = BinaryData.fromString( - "{\"type\":\"AmazonMWSSource\",\"query\":\"datafttptsdee\",\"queryTimeout\":\"dataovanag\",\"additionalColumns\":\"dataacsfbmb\",\"sourceRetryCount\":\"dataefqku\",\"sourceRetryWait\":\"datayumoamqxwluslxyt\",\"maxConcurrentConnections\":\"databjledjxblobknfpd\",\"disableMetricsCollection\":\"datahzgj\",\"\":{\"ccypxsrhbqlbnufl\":\"datamctbg\",\"xhbpyoqfbj\":\"datazawkkz\",\"jpjnhwwyhx\":\"dataclboi\",\"hhw\":\"dataythxzrvjfsmfk\"}}") - .toObject(AmazonMwsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonMwsSource model = new AmazonMwsSource().withSourceRetryCount("dataefqku") - .withSourceRetryWait("datayumoamqxwluslxyt") - .withMaxConcurrentConnections("databjledjxblobknfpd") - .withDisableMetricsCollection("datahzgj") - .withQueryTimeout("dataovanag") - .withAdditionalColumns("dataacsfbmb") - .withQuery("datafttptsdee"); - 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 dfb35e58c3a6..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\":\"datahq\",\"partitionColumnName\":\"datazgzmonjqnienctw\",\"partitionUpperBound\":\"datamhfmognn\",\"partitionLowerBound\":\"datardllrqamfj\"}") - .toObject(AmazonRdsForOraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOraclePartitionSettings model - = new AmazonRdsForOraclePartitionSettings().withPartitionNames("datahq") - .withPartitionColumnName("datazgzmonjqnienctw") - .withPartitionUpperBound("datamhfmognn") - .withPartitionLowerBound("datardllrqamfj"); - 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 106ed0c112f5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleSourceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOraclePartitionSettings; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleSource; - -public final class AmazonRdsForOracleSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleSource model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForOracleSource\",\"oracleReaderQuery\":\"datayrdy\",\"queryTimeout\":\"datawgikpdpudqiwhvx\",\"partitionOption\":\"datavpoeuufw\",\"partitionSettings\":{\"partitionNames\":\"dataeffrb\",\"partitionColumnName\":\"datajedycjisxsp\",\"partitionUpperBound\":\"datafydphl\",\"partitionLowerBound\":\"datano\"},\"additionalColumns\":\"databdvjlqfzlbpeh\",\"sourceRetryCount\":\"datapgllrh\",\"sourceRetryWait\":\"dataxstpg\",\"maxConcurrentConnections\":\"databezmyjqpdchds\",\"disableMetricsCollection\":\"datakmgppxzgjysmtskt\",\"\":{\"wddpjsokos\":\"datay\",\"zfwdmae\":\"datagrf\"}}") - .toObject(AmazonRdsForOracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleSource model = new AmazonRdsForOracleSource().withSourceRetryCount("datapgllrh") - .withSourceRetryWait("dataxstpg") - .withMaxConcurrentConnections("databezmyjqpdchds") - .withDisableMetricsCollection("datakmgppxzgjysmtskt") - .withOracleReaderQuery("datayrdy") - .withQueryTimeout("datawgikpdpudqiwhvx") - .withPartitionOption("datavpoeuufw") - .withPartitionSettings(new AmazonRdsForOraclePartitionSettings().withPartitionNames("dataeffrb") - .withPartitionColumnName("datajedycjisxsp") - .withPartitionUpperBound("datafydphl") - .withPartitionLowerBound("datano")) - .withAdditionalColumns("databdvjlqfzlbpeh"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java deleted file mode 100644 index 1106b6c3309f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForOracleTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRdsForOracleTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleTableDataset model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForOracleTable\",\"typeProperties\":{\"schema\":\"datankfrwxo\",\"table\":\"dataydsn\"},\"description\":\"pchiypbfhmih\",\"structure\":\"datatqozewbrsrjzgkbr\",\"schema\":\"dataxboufqnnqbjx\",\"linkedServiceName\":{\"referenceName\":\"jwsreruk\",\"parameters\":{\"wkjxlaaced\":\"datadrizw\",\"lssybzbev\":\"datakq\"}},\"parameters\":{\"jy\":{\"type\":\"Int\",\"defaultValue\":\"datammkiqhypwtmzy\"},\"i\":{\"type\":\"String\",\"defaultValue\":\"datamzqlnaag\"}},\"annotations\":[\"datafqiywhxpsb\",\"datapialezay\"],\"folder\":{\"name\":\"zudegefxlieg\"},\"\":{\"zkah\":\"dataosmhssfnw\",\"cufthdgwuzrono\":\"dataecknfm\",\"odcikgxk\":\"datavhzfkdnwy\"}}") - .toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("pchiypbfhmih", model.description()); - Assertions.assertEquals("jwsreruk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("jy").type()); - Assertions.assertEquals("zudegefxlieg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDataset model = new AmazonRdsForOracleTableDataset().withDescription("pchiypbfhmih") - .withStructure("datatqozewbrsrjzgkbr") - .withSchema("dataxboufqnnqbjx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jwsreruk") - .withParameters(mapOf("wkjxlaaced", "datadrizw", "lssybzbev", "datakq"))) - .withParameters(mapOf("jy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datammkiqhypwtmzy"), "i", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datamzqlnaag"))) - .withAnnotations(Arrays.asList("datafqiywhxpsb", "datapialezay")) - .withFolder(new DatasetFolder().withName("zudegefxlieg")) - .withSchemaTypePropertiesSchema("datankfrwxo") - .withTable("dataydsn"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleTableDataset.class); - Assertions.assertEquals("pchiypbfhmih", model.description()); - Assertions.assertEquals("jwsreruk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("jy").type()); - Assertions.assertEquals("zudegefxlieg", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java deleted file mode 100644 index 091bf4046708..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForOracleTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForOracleTableDatasetTypeProperties; - -public final class AmazonRdsForOracleTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForOracleTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datazfzdjekeb\",\"table\":\"datanxzsjwy\"}") - .toObject(AmazonRdsForOracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForOracleTableDatasetTypeProperties model - = new AmazonRdsForOracleTableDatasetTypeProperties().withSchema("datazfzdjekeb").withTable("datanxzsjwy"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForOracleTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java deleted file mode 100644 index 37bdd4852606..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerSourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class AmazonRdsForSqlServerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerSource model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForSqlServerSource\",\"sqlReaderQuery\":\"databsxhivncuela\",\"sqlReaderStoredProcedureName\":\"dataxc\",\"storedProcedureParameters\":\"datartlnzdk\",\"isolationLevel\":\"datafeavz\",\"produceAdditionalTypes\":\"datammzisljxphwy\",\"partitionOption\":\"datamcpfrakucgjreoac\",\"partitionSettings\":{\"partitionColumnName\":\"datab\",\"partitionUpperBound\":\"datazxkdzmtkmnyu\",\"partitionLowerBound\":\"dataemrclsxgpkyetmt\"},\"queryTimeout\":\"dataihixisdvy\",\"additionalColumns\":\"datakeqg\",\"sourceRetryCount\":\"datajsbtosiwcve\",\"sourceRetryWait\":\"dataehbw\",\"maxConcurrentConnections\":\"dataoc\",\"disableMetricsCollection\":\"datazlfhhwdajfth\",\"\":{\"on\":\"datauomj\",\"qsniobehxxb\":\"datafq\"}}") - .toObject(AmazonRdsForSqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerSource model = new AmazonRdsForSqlServerSource().withSourceRetryCount("datajsbtosiwcve") - .withSourceRetryWait("dataehbw") - .withMaxConcurrentConnections("dataoc") - .withDisableMetricsCollection("datazlfhhwdajfth") - .withQueryTimeout("dataihixisdvy") - .withAdditionalColumns("datakeqg") - .withSqlReaderQuery("databsxhivncuela") - .withSqlReaderStoredProcedureName("dataxc") - .withStoredProcedureParameters("datartlnzdk") - .withIsolationLevel("datafeavz") - .withProduceAdditionalTypes("datammzisljxphwy") - .withPartitionOption("datamcpfrakucgjreoac") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datab") - .withPartitionUpperBound("datazxkdzmtkmnyu") - .withPartitionLowerBound("dataemrclsxgpkyetmt")); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java deleted file mode 100644 index f1e33c5ff0c2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlServerTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRdsForSqlServerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerTableDataset model = BinaryData.fromString( - "{\"type\":\"AmazonRdsForSqlServerTable\",\"typeProperties\":{\"schema\":\"datawvxcimp\",\"table\":\"datajrmplzmsl\"},\"description\":\"nkn\",\"structure\":\"datauysjhvrr\",\"schema\":\"datafswarmybw\",\"linkedServiceName\":{\"referenceName\":\"rotgeysyq\",\"parameters\":{\"xia\":\"dataehfwwcbf\"}},\"parameters\":{\"yzguaxfhvjixg\":{\"type\":\"String\",\"defaultValue\":\"datacfjisosfzlnraxn\"},\"xdoicqpkntly\":{\"type\":\"SecureString\",\"defaultValue\":\"datadqwsjmihuvrqp\"},\"nsbmzjritukoym\":{\"type\":\"Int\",\"defaultValue\":\"datap\"},\"ndu\":{\"type\":\"Int\",\"defaultValue\":\"dataexmizzjxwjoqfzw\"}},\"annotations\":[\"dataw\",\"datavolxtqmricdsflzb\"],\"folder\":{\"name\":\"mjfgoxedrmra\"},\"\":{\"uzsoowxcsm\":\"datachvvoyiogbntnwz\",\"bsp\":\"datatlcappnvc\"}}") - .toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("nkn", model.description()); - Assertions.assertEquals("rotgeysyq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("yzguaxfhvjixg").type()); - Assertions.assertEquals("mjfgoxedrmra", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDataset model = new AmazonRdsForSqlServerTableDataset().withDescription("nkn") - .withStructure("datauysjhvrr") - .withSchema("datafswarmybw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rotgeysyq") - .withParameters(mapOf("xia", "dataehfwwcbf"))) - .withParameters(mapOf("yzguaxfhvjixg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datacfjisosfzlnraxn"), - "xdoicqpkntly", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datadqwsjmihuvrqp"), - "nsbmzjritukoym", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datap"), - "ndu", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataexmizzjxwjoqfzw"))) - .withAnnotations(Arrays.asList("dataw", "datavolxtqmricdsflzb")) - .withFolder(new DatasetFolder().withName("mjfgoxedrmra")) - .withSchemaTypePropertiesSchema("datawvxcimp") - .withTable("datajrmplzmsl"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerTableDataset.class); - Assertions.assertEquals("nkn", model.description()); - Assertions.assertEquals("rotgeysyq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("yzguaxfhvjixg").type()); - Assertions.assertEquals("mjfgoxedrmra", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java deleted file mode 100644 index 8150d1f9e37d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRdsForSqlServerTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerTableDatasetTypeProperties; - -public final class AmazonRdsForSqlServerTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"dataryomhkdwuwe\",\"table\":\"datapbkmzkwhjjs\"}") - .toObject(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRdsForSqlServerTableDatasetTypeProperties model - = new AmazonRdsForSqlServerTableDatasetTypeProperties().withSchema("dataryomhkdwuwe") - .withTable("datapbkmzkwhjjs"); - model = BinaryData.fromObject(model).toObject(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.java deleted file mode 100644 index ca992db2c6ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftSourceTests.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.AmazonRedshiftSource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.RedshiftUnloadSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRedshiftSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftSource model = BinaryData.fromString( - "{\"type\":\"AmazonRedshiftSource\",\"query\":\"dataqzgy\",\"redshiftUnloadSettings\":{\"s3LinkedServiceName\":{\"referenceName\":\"yy\",\"parameters\":{\"o\":\"datadkjykvez\",\"z\":\"datatzd\",\"r\":\"databmzldplamccql\"}},\"bucketName\":\"dataveqleozqqwiawb\"},\"queryTimeout\":\"datayvbuifhysa\",\"additionalColumns\":\"datapl\",\"sourceRetryCount\":\"dataujsrlzw\",\"sourceRetryWait\":\"datakprf\",\"maxConcurrentConnections\":\"datacowtoqfwbsbkob\",\"disableMetricsCollection\":\"datassj\",\"\":{\"ulswajbhespfgm\":\"datafcxwrjbrxmrsett\",\"gmxqaupypxg\":\"datasiskihfslyipj\",\"yf\":\"dataypokoo\"}}") - .toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("yy", model.redshiftUnloadSettings().s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftSource model = new AmazonRedshiftSource().withSourceRetryCount("dataujsrlzw") - .withSourceRetryWait("datakprf") - .withMaxConcurrentConnections("datacowtoqfwbsbkob") - .withDisableMetricsCollection("datassj") - .withQueryTimeout("datayvbuifhysa") - .withAdditionalColumns("datapl") - .withQuery("dataqzgy") - .withRedshiftUnloadSettings(new RedshiftUnloadSettings() - .withS3LinkedServiceName(new LinkedServiceReference().withReferenceName("yy") - .withParameters(mapOf("o", "datadkjykvez", "z", "datatzd", "r", "databmzldplamccql"))) - .withBucketName("dataveqleozqqwiawb")); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftSource.class); - Assertions.assertEquals("yy", model.redshiftUnloadSettings().s3LinkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java deleted file mode 100644 index 38ab8aba78ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonRedshiftTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmazonRedshiftTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftTableDataset model = BinaryData.fromString( - "{\"type\":\"AmazonRedshiftTable\",\"typeProperties\":{\"tableName\":\"datargyzcslazp\",\"table\":\"dataqoyimxp\",\"schema\":\"dataktteagbga\"},\"description\":\"qpjuytvude\",\"structure\":\"datapbybkisboif\",\"schema\":\"dataglpwdjr\",\"linkedServiceName\":{\"referenceName\":\"urfshzn\",\"parameters\":{\"txfrm\":\"datatuhaaaxxdcdjmdk\",\"ehxuihwes\":\"dataecxstowa\"}},\"parameters\":{\"tevspsaneyvaerp\":{\"type\":\"String\",\"defaultValue\":\"datagblkkncyp\"},\"kjwqdmraqnilp\":{\"type\":\"String\",\"defaultValue\":\"datanhrfbrj\"},\"lrfdjwlzseod\":{\"type\":\"Bool\",\"defaultValue\":\"dataaigazwf\"}},\"annotations\":[\"datadr\",\"datal\",\"dataymqxserwy\"],\"folder\":{\"name\":\"ytjwgetfigw\"},\"\":{\"ebjrahgdstubwg\":\"datajxzi\",\"mdoiiyobqzwjal\":\"dataxzsshxliqmsckwh\"}}") - .toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("qpjuytvude", model.description()); - Assertions.assertEquals("urfshzn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tevspsaneyvaerp").type()); - Assertions.assertEquals("ytjwgetfigw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDataset model = new AmazonRedshiftTableDataset().withDescription("qpjuytvude") - .withStructure("datapbybkisboif") - .withSchema("dataglpwdjr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("urfshzn") - .withParameters(mapOf("txfrm", "datatuhaaaxxdcdjmdk", "ehxuihwes", "dataecxstowa"))) - .withParameters(mapOf("tevspsaneyvaerp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datagblkkncyp"), - "kjwqdmraqnilp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datanhrfbrj"), - "lrfdjwlzseod", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataaigazwf"))) - .withAnnotations(Arrays.asList("datadr", "datal", "dataymqxserwy")) - .withFolder(new DatasetFolder().withName("ytjwgetfigw")) - .withTableName("datargyzcslazp") - .withTable("dataqoyimxp") - .withSchemaTypePropertiesSchema("dataktteagbga"); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftTableDataset.class); - Assertions.assertEquals("qpjuytvude", model.description()); - Assertions.assertEquals("urfshzn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tevspsaneyvaerp").type()); - Assertions.assertEquals("ytjwgetfigw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java deleted file mode 100644 index 3d914429733e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonRedshiftTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftTableDatasetTypeProperties; - -public final class AmazonRedshiftTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonRedshiftTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datasofxc\",\"table\":\"datarmvjfmrsuyd\",\"schema\":\"dataprel\"}") - .toObject(AmazonRedshiftTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonRedshiftTableDatasetTypeProperties model - = new AmazonRedshiftTableDatasetTypeProperties().withTableName("datasofxc") - .withTable("datarmvjfmrsuyd") - .withSchema("dataprel"); - model = BinaryData.fromObject(model).toObject(AmazonRedshiftTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java deleted file mode 100644 index ece1b5b75bfc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleLocation; - -public final class AmazonS3CompatibleLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3CompatibleLocation model = BinaryData.fromString( - "{\"type\":\"AmazonS3CompatibleLocation\",\"bucketName\":\"datagcozzomehxlant\",\"version\":\"dataamlbiju\",\"folderPath\":\"dataqllczipvwdtgckz\",\"fileName\":\"dataiqdlratrkw\",\"\":{\"lhpryjfzihuio\":\"datauwxsuykznhrfgsl\",\"pajtfeyvkbd\":\"dataeo\",\"rhd\":\"datadd\",\"uzy\":\"datacxbeuuqutkzwtjww\"}}") - .toObject(AmazonS3CompatibleLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleLocation model = new AmazonS3CompatibleLocation().withFolderPath("dataqllczipvwdtgckz") - .withFileName("dataiqdlratrkw") - .withBucketName("datagcozzomehxlant") - .withVersion("dataamlbiju"); - model = BinaryData.fromObject(model).toObject(AmazonS3CompatibleLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java deleted file mode 100644 index 6451937e5063..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3CompatibleReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3CompatibleReadSettings; - -public final class AmazonS3CompatibleReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3CompatibleReadSettings model = BinaryData.fromString( - "{\"type\":\"AmazonS3CompatibleReadSettings\",\"recursive\":\"dataccd\",\"wildcardFolderPath\":\"dataxybn\",\"wildcardFileName\":\"datahmpmeglolpot\",\"prefix\":\"datamb\",\"fileListPath\":\"dataqjrytymfnojjh\",\"enablePartitionDiscovery\":\"datanthjqgovviv\",\"partitionRootPath\":\"dataxytrafettwytavp\",\"deleteFilesAfterCompletion\":\"datalgyql\",\"modifiedDatetimeStart\":\"datalgspy\",\"modifiedDatetimeEnd\":\"dataapnhhvp\",\"maxConcurrentConnections\":\"datakourqviy\",\"disableMetricsCollection\":\"datasegwez\",\"\":{\"tdz\":\"dataoujtcp\",\"gzba\":\"datay\",\"gmnkrq\":\"datajckakikkkajmnvb\"}}") - .toObject(AmazonS3CompatibleReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3CompatibleReadSettings model - = new AmazonS3CompatibleReadSettings().withMaxConcurrentConnections("datakourqviy") - .withDisableMetricsCollection("datasegwez") - .withRecursive("dataccd") - .withWildcardFolderPath("dataxybn") - .withWildcardFileName("datahmpmeglolpot") - .withPrefix("datamb") - .withFileListPath("dataqjrytymfnojjh") - .withEnablePartitionDiscovery("datanthjqgovviv") - .withPartitionRootPath("dataxytrafettwytavp") - .withDeleteFilesAfterCompletion("datalgyql") - .withModifiedDatetimeStart("datalgspy") - .withModifiedDatetimeEnd("dataapnhhvp"); - model = BinaryData.fromObject(model).toObject(AmazonS3CompatibleReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java deleted file mode 100644 index 634d1ff52e97..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3LocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3Location; - -public final class AmazonS3LocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3Location model = BinaryData.fromString( - "{\"type\":\"AmazonS3Location\",\"bucketName\":\"dataaxmfmvsmcwoxfa\",\"version\":\"datatnq\",\"folderPath\":\"databsat\",\"fileName\":\"dataiauesugmocpcjy\",\"\":{\"ini\":\"dataelrgttwfldsiuo\",\"zqv\":\"datacedpksriwmmtmqrx\",\"xiqahr\":\"datayczyayubtgm\"}}") - .toObject(AmazonS3Location.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3Location model = new AmazonS3Location().withFolderPath("databsat") - .withFileName("dataiauesugmocpcjy") - .withBucketName("dataaxmfmvsmcwoxfa") - .withVersion("datatnq"); - model = BinaryData.fromObject(model).toObject(AmazonS3Location.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java deleted file mode 100644 index b5824211edbc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AmazonS3ReadSettingsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AmazonS3ReadSettings; - -public final class AmazonS3ReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmazonS3ReadSettings model = BinaryData.fromString( - "{\"type\":\"AmazonS3ReadSettings\",\"recursive\":\"dataskqxgbigozrvlkla\",\"wildcardFolderPath\":\"datalysse\",\"wildcardFileName\":\"datappgsfj\",\"prefix\":\"datagmogmcjn\",\"fileListPath\":\"dataukbwypcvqfz\",\"enablePartitionDiscovery\":\"dataoxgerizflwl\",\"partitionRootPath\":\"datavopqpfcdpy\",\"deleteFilesAfterCompletion\":\"datamwpm\",\"modifiedDatetimeStart\":\"datagjjqsxf\",\"modifiedDatetimeEnd\":\"datavamvrejkvci\",\"maxConcurrentConnections\":\"databrdwfhhwt\",\"disableMetricsCollection\":\"datagefaycbvgotbjnx\",\"\":{\"ovflxluvmsgdi\":\"dataotxn\",\"xt\":\"dataup\"}}") - .toObject(AmazonS3ReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmazonS3ReadSettings model = new AmazonS3ReadSettings().withMaxConcurrentConnections("databrdwfhhwt") - .withDisableMetricsCollection("datagefaycbvgotbjnx") - .withRecursive("dataskqxgbigozrvlkla") - .withWildcardFolderPath("datalysse") - .withWildcardFileName("datappgsfj") - .withPrefix("datagmogmcjn") - .withFileListPath("dataukbwypcvqfz") - .withEnablePartitionDiscovery("dataoxgerizflwl") - .withPartitionRootPath("datavopqpfcdpy") - .withDeleteFilesAfterCompletion("datamwpm") - .withModifiedDatetimeStart("datagjjqsxf") - .withModifiedDatetimeEnd("datavamvrejkvci"); - 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 7dfa44bfd43b..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\":\"AppendVariable\",\"typeProperties\":{\"variableName\":\"lgwpu\",\"value\":\"databfcblvakh\"},\"name\":\"igxxtfvoa\",\"description\":\"hdiiwv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"mqartpdy\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"jcow\":\"dataxpmtztvxfglil\",\"rt\":\"datazqyocjxs\"}}],\"userProperties\":[{\"name\":\"aampgenyvpx\",\"value\":\"datacjn\"},{\"name\":\"nffexzzijt\",\"value\":\"datat\"},{\"name\":\"ewniwt\",\"value\":\"dataplwyluvqp\"}],\"\":{\"qsnttwlxvezoald\":\"datao\",\"miccgubuivzs\":\"datasesxcqtosoanxin\"}}") - .toObject(AppendVariableActivity.class); - Assertions.assertEquals("igxxtfvoa", model.name()); - Assertions.assertEquals("hdiiwv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("mqartpdy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("aampgenyvpx", model.userProperties().get(0).name()); - Assertions.assertEquals("lgwpu", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivity model = new AppendVariableActivity().withName("igxxtfvoa") - .withDescription("hdiiwv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("mqartpdy") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("aampgenyvpx").withValue("datacjn"), - new UserProperty().withName("nffexzzijt").withValue("datat"), - new UserProperty().withName("ewniwt").withValue("dataplwyluvqp"))) - .withVariableName("lgwpu") - .withValue("databfcblvakh"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivity.class); - Assertions.assertEquals("igxxtfvoa", model.name()); - Assertions.assertEquals("hdiiwv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("mqartpdy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("aampgenyvpx", model.userProperties().get(0).name()); - Assertions.assertEquals("lgwpu", 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 4207d8f04b5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AppendVariableActivityTypePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AppendVariableActivityTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class AppendVariableActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AppendVariableActivityTypeProperties model - = BinaryData.fromString("{\"variableName\":\"xnenhyhd\",\"value\":\"dataayk\"}") - .toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("xnenhyhd", model.variableName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppendVariableActivityTypeProperties model - = new AppendVariableActivityTypeProperties().withVariableName("xnenhyhd").withValue("dataayk"); - model = BinaryData.fromObject(model).toObject(AppendVariableActivityTypeProperties.class); - Assertions.assertEquals("xnenhyhd", model.variableName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java deleted file mode 100644 index 07c0368f7336..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ArmIdWrapperTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; - -public final class ArmIdWrapperTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ArmIdWrapper model = BinaryData.fromString("{\"id\":\"lbyrru\"}").toObject(ArmIdWrapper.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ArmIdWrapper model = new ArmIdWrapper(); - model = BinaryData.fromObject(model).toObject(ArmIdWrapper.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java deleted file mode 100644 index c023936dac7b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroFormatTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroFormat; - -public final class AvroFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroFormat model = BinaryData.fromString( - "{\"type\":\"AvroFormat\",\"serializer\":\"datafcwrri\",\"deserializer\":\"dataxeezwyhjmbjiqe\",\"\":{\"ohcwhpyv\":\"datadb\",\"z\":\"datakgdet\"}}") - .toObject(AvroFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroFormat model = new AvroFormat().withSerializer("datafcwrri").withDeserializer("dataxeezwyhjmbjiqe"); - model = BinaryData.fromObject(model).toObject(AvroFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSinkTests.java deleted file mode 100644 index 21013408388a..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\":\"AvroSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataexpopqykicesqp\",\"disableMetricsCollection\":\"dataoxilhpkqiq\",\"copyBehavior\":\"dataiubemxmuygmr\",\"metadata\":[{\"name\":\"datangca\",\"value\":\"dataophtkyzsgayng\"},{\"name\":\"datawvcnv\",\"value\":\"dataqxqhysu\"},{\"name\":\"datadnslroqxrvycjdn\",\"value\":\"datamggy\"}],\"\":{\"yxdigkggzm\":\"datamsacbamtoqseam\",\"lefiott\":\"datalqhqeosxdsx\",\"idzjjjfcyskpnkkx\":\"dataawgkaohhtttyhy\",\"bxsmfvltboc\":\"datai\"}},\"formatSettings\":{\"type\":\"AvroWriteSettings\",\"recordName\":\"t\",\"recordNamespace\":\"vppvgrigjegr\",\"maxRowsPerFile\":\"datakoqbzrc\",\"fileNamePrefix\":\"datarrtfmf\",\"\":{\"zvzqhvzjdsn\":\"dataybemoramshqvkuq\"}},\"writeBatchSize\":\"datadbeanigozjrcx\",\"writeBatchTimeout\":\"dataugjalmzpfyl\",\"sinkRetryCount\":\"datavwwvznp\",\"sinkRetryWait\":\"datacizropzgjleecffb\",\"maxConcurrentConnections\":\"datakvb\",\"disableMetricsCollection\":\"datastqwnpegoupdq\",\"\":{\"xo\":\"datavdfaqcql\"}}") - .toObject(AvroSink.class); - Assertions.assertEquals("t", model.formatSettings().recordName()); - Assertions.assertEquals("vppvgrigjegr", model.formatSettings().recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSink model = new AvroSink().withWriteBatchSize("datadbeanigozjrcx") - .withWriteBatchTimeout("dataugjalmzpfyl") - .withSinkRetryCount("datavwwvznp") - .withSinkRetryWait("datacizropzgjleecffb") - .withMaxConcurrentConnections("datakvb") - .withDisableMetricsCollection("datastqwnpegoupdq") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("dataexpopqykicesqp") - .withDisableMetricsCollection("dataoxilhpkqiq") - .withCopyBehavior("dataiubemxmuygmr") - .withMetadata(Arrays.asList(new MetadataItem().withName("datangca").withValue("dataophtkyzsgayng"), - new MetadataItem().withName("datawvcnv").withValue("dataqxqhysu"), - new MetadataItem().withName("datadnslroqxrvycjdn").withValue("datamggy"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new AvroWriteSettings().withRecordName("t") - .withRecordNamespace("vppvgrigjegr") - .withMaxRowsPerFile("datakoqbzrc") - .withFileNamePrefix("datarrtfmf")); - model = BinaryData.fromObject(model).toObject(AvroSink.class); - Assertions.assertEquals("t", model.formatSettings().recordName()); - Assertions.assertEquals("vppvgrigjegr", 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 9b285fae9c9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroSourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class AvroSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroSource model = BinaryData.fromString( - "{\"type\":\"AvroSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataqvuwsq\",\"disableMetricsCollection\":\"dataqsgyrznostngx\",\"\":{\"zjnkgdsursumb\":\"datak\",\"qpsvoxs\":\"datairkb\",\"mg\":\"dataxumuuyblolruf\",\"ls\":\"datalbq\"}},\"additionalColumns\":\"dataxyjqhwsojnbbbgv\",\"sourceRetryCount\":\"datawyzxqhuhmldhnz\",\"sourceRetryWait\":\"datakfuz\",\"maxConcurrentConnections\":\"datahotdztqhqh\",\"disableMetricsCollection\":\"datauaermawwlnsdaz\",\"\":{\"isxzhik\":\"datamcotwfuot\",\"qojpg\":\"datadfszxbups\",\"khyvt\":\"datacg\"}}") - .toObject(AvroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroSource model = new AvroSource().withSourceRetryCount("datawyzxqhuhmldhnz") - .withSourceRetryWait("datakfuz") - .withMaxConcurrentConnections("datahotdztqhqh") - .withDisableMetricsCollection("datauaermawwlnsdaz") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataqvuwsq") - .withDisableMetricsCollection("dataqsgyrznostngx") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("dataxyjqhwsojnbbbgv"); - 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 8b492fd552a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AvroWriteSettingsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AvroWriteSettings; -import org.junit.jupiter.api.Assertions; - -public final class AvroWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvroWriteSettings model = BinaryData.fromString( - "{\"type\":\"AvroWriteSettings\",\"recordName\":\"gcjssqpk\",\"recordNamespace\":\"ryhvshkvupbzqwwt\",\"maxRowsPerFile\":\"datajyiwuve\",\"fileNamePrefix\":\"dataavbjv\",\"\":{\"yyvdjoorbuuhbcc\":\"datagupshoofas\",\"asvghphlbk\":\"databcvtelmdr\",\"mviaasdexsrglxlj\":\"datauhmblni\",\"spdipdxq\":\"datayvkkpovz\"}}") - .toObject(AvroWriteSettings.class); - Assertions.assertEquals("gcjssqpk", model.recordName()); - Assertions.assertEquals("ryhvshkvupbzqwwt", model.recordNamespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvroWriteSettings model = new AvroWriteSettings().withRecordName("gcjssqpk") - .withRecordNamespace("ryhvshkvupbzqwwt") - .withMaxRowsPerFile("datajyiwuve") - .withFileNamePrefix("dataavbjv"); - model = BinaryData.fromObject(model).toObject(AvroWriteSettings.class); - Assertions.assertEquals("gcjssqpk", model.recordName()); - Assertions.assertEquals("ryhvshkvupbzqwwt", 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 b56ad70f9294..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzPowerShellSetupTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzPowerShellSetup; -import org.junit.jupiter.api.Assertions; - -public final class AzPowerShellSetupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzPowerShellSetup model = BinaryData - .fromString("{\"type\":\"AzPowerShellSetup\",\"typeProperties\":{\"version\":\"vqnpwdwdmuvyak\"}}") - .toObject(AzPowerShellSetup.class); - Assertions.assertEquals("vqnpwdwdmuvyak", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetup model = new AzPowerShellSetup().withVersion("vqnpwdwdmuvyak"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetup.class); - Assertions.assertEquals("vqnpwdwdmuvyak", 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 26a87e1cecfb..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\":\"bqpwx\"}").toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("bqpwx", model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzPowerShellSetupTypeProperties model = new AzPowerShellSetupTypeProperties().withVersion("bqpwx"); - model = BinaryData.fromObject(model).toObject(AzPowerShellSetupTypeProperties.class); - Assertions.assertEquals("bqpwx", model.version()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java deleted file mode 100644 index 706eb466c964..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureBlobDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobDataset model = BinaryData.fromString( - "{\"type\":\"AzureBlob\",\"typeProperties\":{\"folderPath\":\"datal\",\"tableRootLocation\":\"datavig\",\"fileName\":\"dataghfrbzakpjtcq\",\"modifiedDatetimeStart\":\"dataqpojpsucmximc\",\"modifiedDatetimeEnd\":\"dataxyn\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datasatkyvscb\",\"deserializer\":\"datagcru\",\"\":{\"bjolpyoklkv\":\"dataircpgcvsvkk\"}},\"compression\":{\"type\":\"datanadvhml\",\"level\":\"dataoi\",\"\":{\"mqwtqszzgy\":\"dataxxbhtpsyioq\",\"gjqcrbkompnbnfg\":\"datasikawanvmwd\"}}},\"description\":\"e\",\"structure\":\"databepgcmahiwfry\",\"schema\":\"datakchkapit\",\"linkedServiceName\":{\"referenceName\":\"kshfy\",\"parameters\":{\"nfd\":\"dataibjepzwhj\"}},\"parameters\":{\"vwehsu\":{\"type\":\"Object\",\"defaultValue\":\"datajxzhbl\"}},\"annotations\":[\"dataymbh\",\"dataosmbngkqlgxz\",\"datauvxdmxexatmd\"],\"folder\":{\"name\":\"senxoirxyd\"},\"\":{\"xznntwgkvyohp\":\"dataploisjkzs\",\"wytb\":\"dataapzupz\",\"mxpqkjnpyriwn\":\"datajzghximkg\",\"xmmqmt\":\"dataot\"}}") - .toObject(AzureBlobDataset.class); - Assertions.assertEquals("e", model.description()); - Assertions.assertEquals("kshfy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vwehsu").type()); - Assertions.assertEquals("senxoirxyd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDataset model = new AzureBlobDataset().withDescription("e") - .withStructure("databepgcmahiwfry") - .withSchema("datakchkapit") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("kshfy").withParameters(mapOf("nfd", "dataibjepzwhj"))) - .withParameters(mapOf("vwehsu", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datajxzhbl"))) - .withAnnotations(Arrays.asList("dataymbh", "dataosmbngkqlgxz", "datauvxdmxexatmd")) - .withFolder(new DatasetFolder().withName("senxoirxyd")) - .withFolderPath("datal") - .withTableRootLocation("datavig") - .withFileName("dataghfrbzakpjtcq") - .withModifiedDatetimeStart("dataqpojpsucmximc") - .withModifiedDatetimeEnd("dataxyn") - .withFormat(new DatasetStorageFormat().withSerializer("datasatkyvscb") - .withDeserializer("datagcru") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression( - new DatasetCompression().withType("datanadvhml").withLevel("dataoi").withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobDataset.class); - Assertions.assertEquals("e", model.description()); - Assertions.assertEquals("kshfy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vwehsu").type()); - Assertions.assertEquals("senxoirxyd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java deleted file mode 100644 index c9f5d0a0272f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobDatasetTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureBlobDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"dataky\",\"tableRootLocation\":\"dataexwdonbexf\",\"fileName\":\"datadaubheeggzgr\",\"modifiedDatetimeStart\":\"datatlfozuumrtgjqgac\",\"modifiedDatetimeEnd\":\"datatnsyxzxjm\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"databc\",\"deserializer\":\"datazofmexvtemaspm\",\"\":{\"hntofe\":\"datadscdkxwdpwjcbha\",\"fixoskk\":\"datafh\",\"zzmrgtxdhmfpp\":\"datadfivsujybsr\"}},\"compression\":{\"type\":\"datamgikesmkwt\",\"level\":\"datafragjhxerx\",\"\":{\"vmmnii\":\"datakdbtq\",\"bggicnqwlctmw\":\"datayholhjns\"}}}") - .toObject(AzureBlobDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobDatasetTypeProperties model = new AzureBlobDatasetTypeProperties().withFolderPath("dataky") - .withTableRootLocation("dataexwdonbexf") - .withFileName("datadaubheeggzgr") - .withModifiedDatetimeStart("datatlfozuumrtgjqgac") - .withModifiedDatetimeEnd("datatnsyxzxjm") - .withFormat(new DatasetStorageFormat().withSerializer("databc") - .withDeserializer("datazofmexvtemaspm") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datamgikesmkwt") - .withLevel("datafragjhxerx") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java deleted file mode 100644 index 3dc9b211d64c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureBlobFSDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSDataset model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSFile\",\"typeProperties\":{\"folderPath\":\"datakkvxu\",\"fileName\":\"dataqzbvbpsuvqhxt\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datagdkwbkurklpiigfu\",\"deserializer\":\"dataeutuipjclz\",\"\":{\"ydewuwxyll\":\"dataqdz\",\"k\":\"datazzevtzqwczochwb\",\"kyvnhiysdhork\":\"datauynf\",\"qki\":\"datalhr\"}},\"compression\":{\"type\":\"datawkffla\",\"level\":\"datamwqoguflteatnege\",\"\":{\"hnvxwtd\":\"dataxnjtqbgysib\",\"kxunsaujqgbb\":\"datatcbjdbtqy\",\"hgjsmbcsloy\":\"datavovoa\"}}},\"description\":\"abdgdheronsd\",\"structure\":\"datarkzvz\",\"schema\":\"datatqhgz\",\"linkedServiceName\":{\"referenceName\":\"yxtrvfdbqsk\",\"parameters\":{\"ptpvsffavdhpiw\":\"databvi\",\"bwxyldqtmggcpd\":\"datamuwkgjwbyfdw\",\"zctwymzsk\":\"datamegaj\"}},\"parameters\":{\"gliupqscoob\":{\"type\":\"Object\",\"defaultValue\":\"dataeseip\"},\"incev\":{\"type\":\"Object\",\"defaultValue\":\"datacaxsqcomjiq\"},\"duvtvod\":{\"type\":\"Int\",\"defaultValue\":\"datadevpximziizmeq\"},\"hm\":{\"type\":\"SecureString\",\"defaultValue\":\"datap\"}},\"annotations\":[\"datab\",\"datablmcvrjaznotdof\",\"datavpbqsdqkpsbqs\",\"databmitaftazgcxsvq\"],\"folder\":{\"name\":\"ufylamxowbg\"},\"\":{\"xiknsgofuns\":\"datayutehlkarvtipquk\",\"xn\":\"datahpcekggvmfnnb\"}}") - .toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("abdgdheronsd", model.description()); - Assertions.assertEquals("yxtrvfdbqsk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("gliupqscoob").type()); - Assertions.assertEquals("ufylamxowbg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDataset model - = new AzureBlobFSDataset().withDescription("abdgdheronsd") - .withStructure("datarkzvz") - .withSchema("datatqhgz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("yxtrvfdbqsk") - .withParameters(mapOf("ptpvsffavdhpiw", "databvi", "bwxyldqtmggcpd", "datamuwkgjwbyfdw", - "zctwymzsk", "datamegaj"))) - .withParameters(mapOf("gliupqscoob", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataeseip"), "incev", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacaxsqcomjiq"), - "duvtvod", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datadevpximziizmeq"), - "hm", new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datap"))) - .withAnnotations( - Arrays.asList("datab", "datablmcvrjaznotdof", "datavpbqsdqkpsbqs", "databmitaftazgcxsvq")) - .withFolder(new DatasetFolder().withName("ufylamxowbg")) - .withFolderPath("datakkvxu") - .withFileName("dataqzbvbpsuvqhxt") - .withFormat(new DatasetStorageFormat().withSerializer("datagdkwbkurklpiigfu") - .withDeserializer("dataeutuipjclz") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datawkffla") - .withLevel("datamwqoguflteatnege") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobFSDataset.class); - Assertions.assertEquals("abdgdheronsd", model.description()); - Assertions.assertEquals("yxtrvfdbqsk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("gliupqscoob").type()); - Assertions.assertEquals("ufylamxowbg", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java deleted file mode 100644 index eba36702c156..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSDatasetTypePropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureBlobFSDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"datafkk\",\"fileName\":\"dataeetxtpwcv\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datawsunjzijaciwmmpd\",\"deserializer\":\"datadonb\",\"\":{\"wsyuifkzqqhbtflo\":\"datanfzyviiwsuanz\",\"eoiipjpngvyvu\":\"datalmkf\",\"ryclo\":\"dataikdlpsxntugfwimq\",\"jeleifqhdxt\":\"datafmvswx\"}},\"compression\":{\"type\":\"dataulkrybpaev\",\"level\":\"databyjecrq\",\"\":{\"uibsd\":\"datakkchsfoulborc\",\"lp\":\"databdy\"}}}") - .toObject(AzureBlobFSDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSDatasetTypeProperties model = new AzureBlobFSDatasetTypeProperties().withFolderPath("datafkk") - .withFileName("dataeetxtpwcv") - .withFormat(new DatasetStorageFormat().withSerializer("datawsunjzijaciwmmpd") - .withDeserializer("datadonb") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("dataulkrybpaev") - .withLevel("databyjecrq") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureBlobFSDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java deleted file mode 100644 index ba13d1fc2fc4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSLocation; - -public final class AzureBlobFSLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSLocation model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSLocation\",\"fileSystem\":\"dataqqyeqfcb\",\"folderPath\":\"datalpyuflqjf\",\"fileName\":\"datatujcyoh\",\"\":{\"nmbzmecuy\":\"datamwdcsklkqnqvki\",\"rietvfp\":\"datazwimbzayspz\",\"gtpvdva\":\"datamdzxp\",\"kkzovlzdm\":\"datalzmgschnzrs\"}}") - .toObject(AzureBlobFSLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSLocation model = new AzureBlobFSLocation().withFolderPath("datalpyuflqjf") - .withFileName("datatujcyoh") - .withFileSystem("dataqqyeqfcb"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java deleted file mode 100644 index 1917e012775d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSReadSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSReadSettings; - -public final class AzureBlobFSReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSReadSettings\",\"recursive\":\"datag\",\"wildcardFolderPath\":\"dataqmkakgw\",\"wildcardFileName\":\"dataznob\",\"fileListPath\":\"datagyheyayktutflhe\",\"enablePartitionDiscovery\":\"dataxefs\",\"partitionRootPath\":\"datamdcoeexwgzsz\",\"deleteFilesAfterCompletion\":\"datazmqjhghihkhjldw\",\"modifiedDatetimeStart\":\"dataqt\",\"modifiedDatetimeEnd\":\"datatgn\",\"maxConcurrentConnections\":\"databjvmdkgvu\",\"disableMetricsCollection\":\"datamlsuuhwuox\",\"\":{\"gzjrkslqbafdb\":\"dataaizzjotm\"}}") - .toObject(AzureBlobFSReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSReadSettings model = new AzureBlobFSReadSettings().withMaxConcurrentConnections("databjvmdkgvu") - .withDisableMetricsCollection("datamlsuuhwuox") - .withRecursive("datag") - .withWildcardFolderPath("dataqmkakgw") - .withWildcardFileName("dataznob") - .withFileListPath("datagyheyayktutflhe") - .withEnablePartitionDiscovery("dataxefs") - .withPartitionRootPath("datamdcoeexwgzsz") - .withDeleteFilesAfterCompletion("datazmqjhghihkhjldw") - .withModifiedDatetimeStart("dataqt") - .withModifiedDatetimeEnd("datatgn"); - 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 46b9d2e0cd53..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSinkTests.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.AzureBlobFSSink; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureBlobFSSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSSink model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSSink\",\"copyBehavior\":\"datafnsdccmdplhzjiq\",\"metadata\":[{\"name\":\"datawrhmzkx\",\"value\":\"datazg\"}],\"writeBatchSize\":\"dataq\",\"writeBatchTimeout\":\"datapunuvfs\",\"sinkRetryCount\":\"dataw\",\"sinkRetryWait\":\"datahoaqj\",\"maxConcurrentConnections\":\"datahlpznmdai\",\"disableMetricsCollection\":\"datazqz\",\"\":{\"nhbsvr\":\"datai\",\"noasyyadyfnxt\":\"datarccx\",\"gsva\":\"datalnzcm\"}}") - .toObject(AzureBlobFSSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSink model = new AzureBlobFSSink().withWriteBatchSize("dataq") - .withWriteBatchTimeout("datapunuvfs") - .withSinkRetryCount("dataw") - .withSinkRetryWait("datahoaqj") - .withMaxConcurrentConnections("datahlpznmdai") - .withDisableMetricsCollection("datazqz") - .withCopyBehavior("datafnsdccmdplhzjiq") - .withMetadata(Arrays.asList(new MetadataItem().withName("datawrhmzkx").withValue("datazg"))); - 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 7be5fd433c4c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobFSSource; - -public final class AzureBlobFSSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSSource model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSSource\",\"treatEmptyAsNull\":\"datacrejt\",\"skipHeaderLineCount\":\"dataqqoz\",\"recursive\":\"datasbpqwnmfjktdvdh\",\"sourceRetryCount\":\"dataztaluuup\",\"sourceRetryWait\":\"dataaoatzvajwvxh\",\"maxConcurrentConnections\":\"datamotulhilmazgp\",\"disableMetricsCollection\":\"datarppsoeo\",\"\":{\"ln\":\"datawtye\",\"dxsgwd\":\"datagqeplyos\"}}") - .toObject(AzureBlobFSSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSSource model = new AzureBlobFSSource().withSourceRetryCount("dataztaluuup") - .withSourceRetryWait("dataaoatzvajwvxh") - .withMaxConcurrentConnections("datamotulhilmazgp") - .withDisableMetricsCollection("datarppsoeo") - .withTreatEmptyAsNull("datacrejt") - .withSkipHeaderLineCount("dataqqoz") - .withRecursive("datasbpqwnmfjktdvdh"); - 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 12a2e202bc6f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobFSWriteSettingsTests.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.AzureBlobFSWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureBlobFSWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobFSWriteSettings model = BinaryData.fromString( - "{\"type\":\"AzureBlobFSWriteSettings\",\"blockSizeInMB\":\"datauabqb\",\"maxConcurrentConnections\":\"datarb\",\"disableMetricsCollection\":\"datatszb\",\"copyBehavior\":\"dataxnjorvpcoxdlppu\",\"metadata\":[{\"name\":\"datanpclnmjkydh\",\"value\":\"datafivoz\"}],\"\":{\"x\":\"datarikwiucvvr\",\"ctrwrvnsc\":\"databjgozoelamerp\",\"jlgxrsnbtrooa\":\"dataacbrywqqeztlf\"}}") - .toObject(AzureBlobFSWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobFSWriteSettings model = new AzureBlobFSWriteSettings().withMaxConcurrentConnections("datarb") - .withDisableMetricsCollection("datatszb") - .withCopyBehavior("dataxnjorvpcoxdlppu") - .withMetadata(Arrays.asList(new MetadataItem().withName("datanpclnmjkydh").withValue("datafivoz"))) - .withBlockSizeInMB("datauabqb"); - model = BinaryData.fromObject(model).toObject(AzureBlobFSWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java deleted file mode 100644 index 214f2c2421d9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation; - -public final class AzureBlobStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageLocation model = BinaryData.fromString( - "{\"type\":\"AzureBlobStorageLocation\",\"container\":\"datazpzlpryf\",\"folderPath\":\"datamdutzfk\",\"fileName\":\"datalnoud\",\"\":{\"gdpri\":\"datand\"}}") - .toObject(AzureBlobStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageLocation model = new AzureBlobStorageLocation().withFolderPath("datamdutzfk") - .withFileName("datalnoud") - .withContainer("datazpzlpryf"); - model = BinaryData.fromObject(model).toObject(AzureBlobStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java deleted file mode 100644 index d82dd8b710bc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureBlobStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageReadSettings; - -public final class AzureBlobStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBlobStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureBlobStorageReadSettings\",\"recursive\":\"dataehvq\",\"wildcardFolderPath\":\"datahltnds\",\"wildcardFileName\":\"datagnyfhqylia\",\"prefix\":\"databhzteninafyaga\",\"fileListPath\":\"datavetzkcolbclspq\",\"enablePartitionDiscovery\":\"datazicurufng\",\"partitionRootPath\":\"datavdlkpzdkiywwenvx\",\"deleteFilesAfterCompletion\":\"datazixranbtqejfqgh\",\"modifiedDatetimeStart\":\"datadrvxbcyeh\",\"modifiedDatetimeEnd\":\"databcb\",\"maxConcurrentConnections\":\"dataiqpjlakamhdqluic\",\"disableMetricsCollection\":\"dataxqjzmosmlh\",\"\":{\"kpmdlttm\":\"datafgtnsxdjhztnj\",\"aaiqyxlro\":\"datahdeml\",\"cbtyor\":\"dataxpebsxcnhq\",\"bbaxnym\":\"datardamyumr\"}}") - .toObject(AzureBlobStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageReadSettings model - = new AzureBlobStorageReadSettings().withMaxConcurrentConnections("dataiqpjlakamhdqluic") - .withDisableMetricsCollection("dataxqjzmosmlh") - .withRecursive("dataehvq") - .withWildcardFolderPath("datahltnds") - .withWildcardFileName("datagnyfhqylia") - .withPrefix("databhzteninafyaga") - .withFileListPath("datavetzkcolbclspq") - .withEnablePartitionDiscovery("datazicurufng") - .withPartitionRootPath("datavdlkpzdkiywwenvx") - .withDeleteFilesAfterCompletion("datazixranbtqejfqgh") - .withModifiedDatetimeStart("datadrvxbcyeh") - .withModifiedDatetimeEnd("databcb"); - 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 fd8a75fc964a..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\":\"AzureBlobStorageWriteSettings\",\"blockSizeInMB\":\"datanqvbnybffcvtij\",\"maxConcurrentConnections\":\"dataemzrwpgvg\",\"disableMetricsCollection\":\"dataczgcmokmkwddgy\",\"copyBehavior\":\"datan\",\"metadata\":[{\"name\":\"datanamlrtcb\",\"value\":\"datafcrnxstowvgwvfv\"},{\"name\":\"dataly\",\"value\":\"datalaoqkc\"}],\"\":{\"rznwhictsauvprq\":\"databuzvaxl\",\"bxljddkkoyzsyjvk\":\"datapf\",\"hczqm\":\"dataldonsekazxewnlpc\",\"zzcbohbbavode\":\"dataxmyfrmfclkyncjya\"}}") - .toObject(AzureBlobStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBlobStorageWriteSettings model = new AzureBlobStorageWriteSettings() - .withMaxConcurrentConnections("dataemzrwpgvg") - .withDisableMetricsCollection("dataczgcmokmkwddgy") - .withCopyBehavior("datan") - .withMetadata(Arrays.asList(new MetadataItem().withName("datanamlrtcb").withValue("datafcrnxstowvgwvfv"), - new MetadataItem().withName("dataly").withValue("datalaoqkc"))) - .withBlockSizeInMB("datanqvbnybffcvtij"); - 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 388e2a7f72ed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerCommandActivityTests.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerCommandActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataExplorerCommandActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerCommandActivity model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerCommand\",\"typeProperties\":{\"command\":\"datarkkankjk\",\"commandTimeout\":\"dataudxq\"},\"linkedServiceName\":{\"referenceName\":\"vxvoqbruyma\",\"parameters\":{\"jfmvydjax\":\"datafofxi\",\"vugb\":\"datastuhlwzcn\"}},\"policy\":{\"timeout\":\"datayfhkx\",\"retry\":\"datalhqzpw\",\"retryIntervalInSeconds\":1378860683,\"secureInput\":false,\"secureOutput\":false,\"\":{\"cnfgtup\":\"datae\",\"dzqxkgr\":\"dataqfupoamc\"}},\"name\":\"cnqipskpynrsacdc\",\"description\":\"utahlhiqodx\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"jnfd\",\"dependencyConditions\":[\"Completed\",\"Succeeded\"],\"\":{\"uucojki\":\"datahfnji\",\"kvhldnscx\":\"datagb\"}},{\"activity\":\"jwsrdzmbzlfzy\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\"],\"\":{\"wkhipaodohb\":\"dataseehvmtyubvdou\",\"gokpnbmhskhjjxe\":\"datadbbweaa\"}},{\"activity\":\"mbuhkcsh\",\"dependencyConditions\":[\"Completed\"],\"\":{\"npftwgt\":\"datamtevifeoijep\",\"njpwkwxnmqmytv\":\"datacccyiuehsne\"}},{\"activity\":\"rjutyfn\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\"],\"\":{\"jntnlbsvt\":\"dataedqakhcc\",\"rbqbyxuupqkbbem\":\"datajvdvzafpv\",\"fsjpvjwbxlgpepx\":\"datawtmeqt\"}}],\"userProperties\":[{\"name\":\"nxdgneg\",\"value\":\"datalt\"}],\"\":{\"hmvadasuevu\":\"databepmm\"}}") - .toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("cnqipskpynrsacdc", model.name()); - Assertions.assertEquals("utahlhiqodx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("jnfd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nxdgneg", model.userProperties().get(0).name()); - Assertions.assertEquals("vxvoqbruyma", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1378860683, 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("cnqipskpynrsacdc") - .withDescription("utahlhiqodx") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jnfd") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jwsrdzmbzlfzy") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mbuhkcsh") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rjutyfn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("nxdgneg").withValue("datalt"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vxvoqbruyma") - .withParameters(mapOf("jfmvydjax", "datafofxi", "vugb", "datastuhlwzcn"))) - .withPolicy(new ActivityPolicy().withTimeout("datayfhkx") - .withRetry("datalhqzpw") - .withRetryIntervalInSeconds(1378860683) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withCommand("datarkkankjk") - .withCommandTimeout("dataudxq"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerCommandActivity.class); - Assertions.assertEquals("cnqipskpynrsacdc", model.name()); - Assertions.assertEquals("utahlhiqodx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("jnfd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nxdgneg", model.userProperties().get(0).name()); - Assertions.assertEquals("vxvoqbruyma", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1378860683, 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 8e36d87685da..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\":\"datatdzgngnuuz\",\"commandTimeout\":\"datagfojdb\"}") - .toObject(AzureDataExplorerCommandActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerCommandActivityTypeProperties model - = new AzureDataExplorerCommandActivityTypeProperties().withCommand("datatdzgngnuuz") - .withCommandTimeout("datagfojdb"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerCommandActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java deleted file mode 100644 index 93019880a52e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerDatasetTypeProperties; - -public final class AzureDataExplorerDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerDatasetTypeProperties model = BinaryData.fromString("{\"table\":\"datajxxpxxizchmb\"}") - .toObject(AzureDataExplorerDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerDatasetTypeProperties model - = new AzureDataExplorerDatasetTypeProperties().withTable("datajxxpxxizchmb"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java deleted file mode 100644 index 64cbcae1ebe7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSinkTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerSink; - -public final class AzureDataExplorerSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerSink model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerSink\",\"ingestionMappingName\":\"datagxpny\",\"ingestionMappingAsJson\":\"dataoqiaflxox\",\"flushImmediately\":\"datadfuyjoxgalcyfl\",\"writeBatchSize\":\"dataztdwxroambzprhp\",\"writeBatchTimeout\":\"dataarzjzbbwta\",\"sinkRetryCount\":\"datahriruvj\",\"sinkRetryWait\":\"datauk\",\"maxConcurrentConnections\":\"dataxwlyjdbsxjxleqs\",\"disableMetricsCollection\":\"datarolagbellp\",\"\":{\"sndfr\":\"databrsmy\",\"ystohu\":\"datahgowhnvcqhmuv\",\"phnxxwble\":\"dataktodeertyijlvc\"}}") - .toObject(AzureDataExplorerSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSink model = new AzureDataExplorerSink().withWriteBatchSize("dataztdwxroambzprhp") - .withWriteBatchTimeout("dataarzjzbbwta") - .withSinkRetryCount("datahriruvj") - .withSinkRetryWait("datauk") - .withMaxConcurrentConnections("dataxwlyjdbsxjxleqs") - .withDisableMetricsCollection("datarolagbellp") - .withIngestionMappingName("datagxpny") - .withIngestionMappingAsJson("dataoqiaflxox") - .withFlushImmediately("datadfuyjoxgalcyfl"); - 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 f152249bab98..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerSource; - -public final class AzureDataExplorerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerSource model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerSource\",\"query\":\"datapzhuhuj\",\"noTruncation\":\"datajsez\",\"queryTimeout\":\"datahipteo\",\"additionalColumns\":\"datadnhwdfxgec\",\"sourceRetryCount\":\"datakkdbzbhsnimompxd\",\"sourceRetryWait\":\"datap\",\"maxConcurrentConnections\":\"databdmoawh\",\"disableMetricsCollection\":\"dataxxnmyxzh\",\"\":{\"dq\":\"dataqo\",\"wywayjinlsk\":\"datazhfnylgbwdsa\"}}") - .toObject(AzureDataExplorerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerSource model = new AzureDataExplorerSource().withSourceRetryCount("datakkdbzbhsnimompxd") - .withSourceRetryWait("datap") - .withMaxConcurrentConnections("databdmoawh") - .withDisableMetricsCollection("dataxxnmyxzh") - .withQuery("datapzhuhuj") - .withNoTruncation("datajsez") - .withQueryTimeout("datahipteo") - .withAdditionalColumns("datadnhwdfxgec"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java deleted file mode 100644 index 685c9bd75f1d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataExplorerTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataExplorerTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataExplorerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataExplorerTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureDataExplorerTable\",\"typeProperties\":{\"table\":\"datausfdywqrq\"},\"description\":\"wkendgr\",\"structure\":\"dataff\",\"schema\":\"dataqqnugtcuyuwgnyj\",\"linkedServiceName\":{\"referenceName\":\"iuj\",\"parameters\":{\"tuajkufpvvdgnme\":\"datawmlfzlhibfmcoxb\",\"bfyqz\":\"dataomnobbaibc\"}},\"parameters\":{\"buhdnhhcmtslptbd\":{\"type\":\"Float\",\"defaultValue\":\"datafgvmrkmgifmy\"},\"zjzzb\":{\"type\":\"String\",\"defaultValue\":\"datahblqivcnuqf\"},\"trch\":{\"type\":\"Array\",\"defaultValue\":\"datat\"}},\"annotations\":[\"dataruawqe\",\"dataqsqmiekx\",\"datap\",\"dataqchf\"],\"folder\":{\"name\":\"kkvjjl\"},\"\":{\"zyqokbgum\":\"datacu\"}}") - .toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("wkendgr", model.description()); - Assertions.assertEquals("iuj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("buhdnhhcmtslptbd").type()); - Assertions.assertEquals("kkvjjl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataExplorerTableDataset model = new AzureDataExplorerTableDataset().withDescription("wkendgr") - .withStructure("dataff") - .withSchema("dataqqnugtcuyuwgnyj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iuj") - .withParameters(mapOf("tuajkufpvvdgnme", "datawmlfzlhibfmcoxb", "bfyqz", "dataomnobbaibc"))) - .withParameters(mapOf("buhdnhhcmtslptbd", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafgvmrkmgifmy"), - "zjzzb", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahblqivcnuqf"), "trch", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datat"))) - .withAnnotations(Arrays.asList("dataruawqe", "dataqsqmiekx", "datap", "dataqchf")) - .withFolder(new DatasetFolder().withName("kkvjjl")) - .withTable("datausfdywqrq"); - model = BinaryData.fromObject(model).toObject(AzureDataExplorerTableDataset.class); - Assertions.assertEquals("wkendgr", model.description()); - Assertions.assertEquals("iuj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("buhdnhhcmtslptbd").type()); - Assertions.assertEquals("kkvjjl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java deleted file mode 100644 index f5c7d3fc4aa2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDataLakeStoreDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreDataset model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreFile\",\"typeProperties\":{\"folderPath\":\"datawgr\",\"fileName\":\"databwudhvosgjzs\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datazalivdfwgq\",\"deserializer\":\"dataewcffrxgg\",\"\":{\"priqissener\":\"datah\",\"ujyduonbdawsao\":\"datausyzaivnpsjnpckp\"}},\"compression\":{\"type\":\"datavvm\",\"level\":\"datakxjarsbbdddw\",\"\":{\"kdyqjvz\":\"dataxailx\"}}},\"description\":\"grdspzesfkqq\",\"structure\":\"datahvzf\",\"schema\":\"datarouszxacdwukokgo\",\"linkedServiceName\":{\"referenceName\":\"j\",\"parameters\":{\"tzvxxvsb\":\"dataktubcmunhg\",\"furqm\":\"datauufkrfnkcnihkswx\",\"motahbqsvnk\":\"datamwwpnt\",\"gc\":\"datamytzuaedrlh\"}},\"parameters\":{\"yftgpqoswgfqv\":{\"type\":\"Int\",\"defaultValue\":\"datakvxzzmiem\"},\"qyhls\":{\"type\":\"Array\",\"defaultValue\":\"datahpak\"},\"gkncjm\":{\"type\":\"String\",\"defaultValue\":\"datafbmeq\"}},\"annotations\":[\"datayevztnjaw\",\"datahul\",\"datammqmbwppx\",\"datarxbkitzmnhitax\"],\"folder\":{\"name\":\"l\"},\"\":{\"dvyljubvfjy\":\"dataxsgcemegd\",\"ifnivlut\":\"dataufl\",\"aacxauhvc\":\"datag\"}}") - .toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("grdspzesfkqq", model.description()); - Assertions.assertEquals("j", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("yftgpqoswgfqv").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDataset model = new AzureDataLakeStoreDataset().withDescription("grdspzesfkqq") - .withStructure("datahvzf") - .withSchema("datarouszxacdwukokgo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("j") - .withParameters(mapOf("tzvxxvsb", "dataktubcmunhg", "furqm", "datauufkrfnkcnihkswx", "motahbqsvnk", - "datamwwpnt", "gc", "datamytzuaedrlh"))) - .withParameters(mapOf("yftgpqoswgfqv", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datakvxzzmiem"), "qyhls", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahpak"), "gkncjm", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafbmeq"))) - .withAnnotations(Arrays.asList("datayevztnjaw", "datahul", "datammqmbwppx", "datarxbkitzmnhitax")) - .withFolder(new DatasetFolder().withName("l")) - .withFolderPath("datawgr") - .withFileName("databwudhvosgjzs") - .withFormat(new DatasetStorageFormat().withSerializer("datazalivdfwgq") - .withDeserializer("dataewcffrxgg") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datavvm") - .withLevel("datakxjarsbbdddw") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreDataset.class); - Assertions.assertEquals("grdspzesfkqq", model.description()); - Assertions.assertEquals("j", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("yftgpqoswgfqv").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java deleted file mode 100644 index 9b663d95f659..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreDatasetTypePropertiesTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class AzureDataLakeStoreDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"dataxhklsqxt\",\"fileName\":\"datayygktsrjyxxoxwf\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datavecnxfxphs\",\"deserializer\":\"databebsnbw\",\"\":{\"fjajvkyxmm\":\"datavuwmsumustihtgr\",\"rjenn\":\"dataczvogtd\",\"phfxnrpdhewoky\":\"datakvaeuwqdwxhhlbm\"}},\"compression\":{\"type\":\"datafkxfsywbihqb\",\"level\":\"datadjfyxbvkv\",\"\":{\"wnjdvvlrh\":\"datamvddqwcrugyozzz\"}}}") - .toObject(AzureDataLakeStoreDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreDatasetTypeProperties model - = new AzureDataLakeStoreDatasetTypeProperties().withFolderPath("dataxhklsqxt") - .withFileName("datayygktsrjyxxoxwf") - .withFormat(new DatasetStorageFormat().withSerializer("datavecnxfxphs") - .withDeserializer("databebsnbw") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datafkxfsywbihqb") - .withLevel("datadjfyxbvkv") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java deleted file mode 100644 index 452a2d6c71c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreLocation; - -public final class AzureDataLakeStoreLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreLocation model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreLocation\",\"folderPath\":\"datamfwsxafofu\",\"fileName\":\"datarimm\",\"\":{\"mvhzfovanyrvaprt\":\"datawdehk\",\"fyaqandmymnqo\":\"dataelgwewi\",\"movsfbpbvz\":\"dataj\"}}") - .toObject(AzureDataLakeStoreLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreLocation model - = new AzureDataLakeStoreLocation().withFolderPath("datamfwsxafofu").withFileName("datarimm"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java deleted file mode 100644 index 0f6d71fcb164..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreReadSettingsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreReadSettings; - -public final class AzureDataLakeStoreReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreReadSettings\",\"recursive\":\"dataxcruleimswxoi\",\"wildcardFolderPath\":\"dataqumjm\",\"wildcardFileName\":\"datazetuvfpsijpm\",\"fileListPath\":\"datatnqsn\",\"listAfter\":\"datafks\",\"listBefore\":\"datarvjwbeeol\",\"enablePartitionDiscovery\":\"databaqolwfkb\",\"partitionRootPath\":\"datazvht\",\"deleteFilesAfterCompletion\":\"datadygaph\",\"modifiedDatetimeStart\":\"datamivazfnb\",\"modifiedDatetimeEnd\":\"dataj\",\"maxConcurrentConnections\":\"datarorjbyyxkcvahvb\",\"disableMetricsCollection\":\"dataxtjivwveng\",\"\":{\"hgjyholsmahbjc\":\"datacta\"}}") - .toObject(AzureDataLakeStoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreReadSettings model - = new AzureDataLakeStoreReadSettings().withMaxConcurrentConnections("datarorjbyyxkcvahvb") - .withDisableMetricsCollection("dataxtjivwveng") - .withRecursive("dataxcruleimswxoi") - .withWildcardFolderPath("dataqumjm") - .withWildcardFileName("datazetuvfpsijpm") - .withFileListPath("datatnqsn") - .withListAfter("datafks") - .withListBefore("datarvjwbeeol") - .withEnablePartitionDiscovery("databaqolwfkb") - .withPartitionRootPath("datazvht") - .withDeleteFilesAfterCompletion("datadygaph") - .withModifiedDatetimeStart("datamivazfnb") - .withModifiedDatetimeEnd("dataj"); - 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 17388266eb6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSinkTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSink; - -public final class AzureDataLakeStoreSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreSink model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreSink\",\"copyBehavior\":\"datazysactfimcaxg\",\"enableAdlsSingleFileParallel\":\"datapzqtimqic\",\"writeBatchSize\":\"dataaqypjcpdt\",\"writeBatchTimeout\":\"datafpjkxkujwntnfoqw\",\"sinkRetryCount\":\"dataoraxbeam\",\"sinkRetryWait\":\"datansyedpyrp\",\"maxConcurrentConnections\":\"dataslcfwgrz\",\"disableMetricsCollection\":\"datafbodifgh\",\"\":{\"cxoqxtjzdpl\":\"datayh\",\"osoxxoqyikdjaog\":\"datagllvkor\",\"lg\":\"datattxqxvmybq\"}}") - .toObject(AzureDataLakeStoreSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSink model = new AzureDataLakeStoreSink().withWriteBatchSize("dataaqypjcpdt") - .withWriteBatchTimeout("datafpjkxkujwntnfoqw") - .withSinkRetryCount("dataoraxbeam") - .withSinkRetryWait("datansyedpyrp") - .withMaxConcurrentConnections("dataslcfwgrz") - .withDisableMetricsCollection("datafbodifgh") - .withCopyBehavior("datazysactfimcaxg") - .withEnableAdlsSingleFileParallel("datapzqtimqic"); - 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 8997d74d12ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreSourceTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreSource; - -public final class AzureDataLakeStoreSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreSource model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreSource\",\"recursive\":\"datayphxeoqma\",\"sourceRetryCount\":\"dataikceiyuv\",\"sourceRetryWait\":\"databbawrbqoox\",\"maxConcurrentConnections\":\"datarqlxqhqgip\",\"disableMetricsCollection\":\"datatnkngjnhxufo\",\"\":{\"pfsesi\":\"dataifijdtpedvh\"}}") - .toObject(AzureDataLakeStoreSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreSource model = new AzureDataLakeStoreSource().withSourceRetryCount("dataikceiyuv") - .withSourceRetryWait("databbawrbqoox") - .withMaxConcurrentConnections("datarqlxqhqgip") - .withDisableMetricsCollection("datatnkngjnhxufo") - .withRecursive("datayphxeoqma"); - 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 c478f0f0f5b9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDataLakeStoreWriteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDataLakeStoreWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureDataLakeStoreWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDataLakeStoreWriteSettings model = BinaryData.fromString( - "{\"type\":\"AzureDataLakeStoreWriteSettings\",\"expiryDateTime\":\"datahvsfgywkinkhv\",\"maxConcurrentConnections\":\"datangmebvninj\",\"disableMetricsCollection\":\"datak\",\"copyBehavior\":\"dataqjj\",\"metadata\":[{\"name\":\"dataxkcttp\",\"value\":\"datatvcjd\"}],\"\":{\"qzbmyftzbxfg\":\"datankkhvcr\"}}") - .toObject(AzureDataLakeStoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDataLakeStoreWriteSettings model - = new AzureDataLakeStoreWriteSettings().withMaxConcurrentConnections("datangmebvninj") - .withDisableMetricsCollection("datak") - .withCopyBehavior("dataqjj") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataxkcttp").withValue("datatvcjd"))) - .withExpiryDateTime("datahvsfgywkinkhv"); - model = BinaryData.fromObject(model).toObject(AzureDataLakeStoreWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java deleted file mode 100644 index 680823b490c4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureDatabricksDeltaLakeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeDataset model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeDataset\",\"typeProperties\":{\"table\":\"datal\",\"database\":\"datacf\"},\"description\":\"rn\",\"structure\":\"dataqpkayqivbigdrqg\",\"schema\":\"datatboyztgnmu\",\"linkedServiceName\":{\"referenceName\":\"ppwp\",\"parameters\":{\"ofeiiewibdtplj\":\"datagrmtgwhzbbdwrjen\"}},\"parameters\":{\"xjwtkftgzljue\":{\"type\":\"Object\",\"defaultValue\":\"dataokbxxcdk\"},\"lb\":{\"type\":\"Int\",\"defaultValue\":\"datawsjpgb\"},\"epvrunudma\":{\"type\":\"Object\",\"defaultValue\":\"datagv\"},\"kwohdig\":{\"type\":\"Int\",\"defaultValue\":\"datahrnaxkc\"}},\"annotations\":[\"dataocft\",\"dataamodw\"],\"folder\":{\"name\":\"ktvxerow\"},\"\":{\"xgd\":\"datarnnbegrafeonmto\",\"aq\":\"datafmazhkqqsjk\",\"evveswghhbqqhd\":\"datazbwgpmdmwi\"}}") - .toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("rn", model.description()); - Assertions.assertEquals("ppwp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xjwtkftgzljue").type()); - Assertions.assertEquals("ktvxerow", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDataset model = new AzureDatabricksDeltaLakeDataset().withDescription("rn") - .withStructure("dataqpkayqivbigdrqg") - .withSchema("datatboyztgnmu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ppwp") - .withParameters(mapOf("ofeiiewibdtplj", "datagrmtgwhzbbdwrjen"))) - .withParameters(mapOf("xjwtkftgzljue", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataokbxxcdk"), "lb", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datawsjpgb"), "epvrunudma", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datagv"), "kwohdig", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datahrnaxkc"))) - .withAnnotations(Arrays.asList("dataocft", "dataamodw")) - .withFolder(new DatasetFolder().withName("ktvxerow")) - .withTable("datal") - .withDatabase("datacf"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeDataset.class); - Assertions.assertEquals("rn", model.description()); - Assertions.assertEquals("ppwp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xjwtkftgzljue").type()); - Assertions.assertEquals("ktvxerow", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java deleted file mode 100644 index cab06036c8e6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDeltaLakeDatasetTypeProperties; - -public final class AzureDatabricksDeltaLakeDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeDatasetTypeProperties model - = BinaryData.fromString("{\"table\":\"dataargkwimtc\",\"database\":\"dataeeuquuwczzcujwx\"}") - .toObject(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeDatasetTypeProperties model - = new AzureDatabricksDeltaLakeDatasetTypeProperties().withTable("dataargkwimtc") - .withDatabase("dataeeuquuwczzcujwx"); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java deleted file mode 100644 index 9743a4f051ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeExportCommandTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeExportCommand; - -public final class AzureDatabricksDeltaLakeExportCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeExportCommand model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeExportCommand\",\"dateFormat\":\"datasj\",\"timestampFormat\":\"dataxedzmmcgqifh\",\"\":{\"rvh\":\"dataugwkqnmhfmll\",\"mcrcel\":\"datahxcrweeqkdmp\",\"ntwikmgwxysuts\":\"datanjftnfdcjtvei\"}}") - .toObject(AzureDatabricksDeltaLakeExportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeExportCommand model - = new AzureDatabricksDeltaLakeExportCommand().withDateFormat("datasj") - .withTimestampFormat("dataxedzmmcgqifh"); - 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 f543aa37ebbc..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\":\"AzureDatabricksDeltaLakeImportCommand\",\"dateFormat\":\"dataaezkbrvtaul\",\"timestampFormat\":\"dataqvtpkodijcn\",\"\":{\"hijbfiyuho\":\"datayqvcyqjj\"}}") - .toObject(AzureDatabricksDeltaLakeImportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeImportCommand model - = new AzureDatabricksDeltaLakeImportCommand().withDateFormat("dataaezkbrvtaul") - .withTimestampFormat("dataqvtpkodijcn"); - 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 80fcf5d7507b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureDatabricksDeltaLakeSinkTests.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.AzureDatabricksDeltaLakeImportCommand; -import com.azure.resourcemanager.datafactory.models.AzureDatabricksDeltaLakeSink; - -public final class AzureDatabricksDeltaLakeSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureDatabricksDeltaLakeSink model = BinaryData.fromString( - "{\"type\":\"AzureDatabricksDeltaLakeSink\",\"preCopyScript\":\"datadhr\",\"importSettings\":{\"type\":\"AzureDatabricksDeltaLakeImportCommand\",\"dateFormat\":\"datakstrmsbmdgrzke\",\"timestampFormat\":\"datalorntnssma\",\"\":{\"htbjyycacoelv\":\"datacdlnvupiscbz\",\"ry\":\"datayltmxqalq\",\"gdubwmalt\":\"datajwwoxanefellhdsg\"}},\"writeBatchSize\":\"databvuv\",\"writeBatchTimeout\":\"datapylphnaghglaxjm\",\"sinkRetryCount\":\"datam\",\"sinkRetryWait\":\"dataloqatswvt\",\"maxConcurrentConnections\":\"datapicwnbtvlrs\",\"disableMetricsCollection\":\"datatrmodknxerkaiik\",\"\":{\"qrkeyh\":\"dataaqx\"}}") - .toObject(AzureDatabricksDeltaLakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSink model = new AzureDatabricksDeltaLakeSink().withWriteBatchSize("databvuv") - .withWriteBatchTimeout("datapylphnaghglaxjm") - .withSinkRetryCount("datam") - .withSinkRetryWait("dataloqatswvt") - .withMaxConcurrentConnections("datapicwnbtvlrs") - .withDisableMetricsCollection("datatrmodknxerkaiik") - .withPreCopyScript("datadhr") - .withImportSettings(new AzureDatabricksDeltaLakeImportCommand().withDateFormat("datakstrmsbmdgrzke") - .withTimestampFormat("datalorntnssma")); - 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 ac8b1c681f7f..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\":\"AzureDatabricksDeltaLakeSource\",\"query\":\"dataffjie\",\"exportSettings\":{\"type\":\"AzureDatabricksDeltaLakeExportCommand\",\"dateFormat\":\"datahsq\",\"timestampFormat\":\"dataswbzh\",\"\":{\"wntghjmmjmmj\":\"dataoayu\"}},\"sourceRetryCount\":\"datahyf\",\"sourceRetryWait\":\"datasemnidbaykvlrs\",\"maxConcurrentConnections\":\"dataniocyo\",\"disableMetricsCollection\":\"dataimbchi\",\"\":{\"cargsxmaw\":\"dataaffsjqnjpcybugoj\",\"dugwddob\":\"datavaagazryyjjwggp\"}}") - .toObject(AzureDatabricksDeltaLakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureDatabricksDeltaLakeSource model = new AzureDatabricksDeltaLakeSource().withSourceRetryCount("datahyf") - .withSourceRetryWait("datasemnidbaykvlrs") - .withMaxConcurrentConnections("dataniocyo") - .withDisableMetricsCollection("dataimbchi") - .withQuery("dataffjie") - .withExportSettings( - new AzureDatabricksDeltaLakeExportCommand().withDateFormat("datahsq").withTimestampFormat("dataswbzh")); - model = BinaryData.fromObject(model).toObject(AzureDatabricksDeltaLakeSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java deleted file mode 100644 index 3fc8ff660adf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageLocation; - -public final class AzureFileStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageLocation model = BinaryData.fromString( - "{\"type\":\"AzureFileStorageLocation\",\"folderPath\":\"datadezvjqw\",\"fileName\":\"dataoyiyaxqv\",\"\":{\"tcz\":\"datai\",\"xyglaetscflw\":\"dataddnvovbooqbmdq\",\"tzcqipsd\":\"datajdtlriefooyycux\"}}") - .toObject(AzureFileStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageLocation model - = new AzureFileStorageLocation().withFolderPath("datadezvjqw").withFileName("dataoyiyaxqv"); - model = BinaryData.fromObject(model).toObject(AzureFileStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java deleted file mode 100644 index 9e52fa2bf623..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureFileStorageReadSettings; - -public final class AzureFileStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"AzureFileStorageReadSettings\",\"recursive\":\"datamgsejisydhardxnk\",\"wildcardFolderPath\":\"dataqfffglftlqakie\",\"wildcardFileName\":\"datau\",\"prefix\":\"datarbjxewcscuveljf\",\"fileListPath\":\"datain\",\"enablePartitionDiscovery\":\"dataziztgddahymv\",\"partitionRootPath\":\"datajtdhmig\",\"deleteFilesAfterCompletion\":\"dataaoexgienylsijqyg\",\"modifiedDatetimeStart\":\"datashd\",\"modifiedDatetimeEnd\":\"datahxv\",\"maxConcurrentConnections\":\"datafdsafgkysymhuxs\",\"disableMetricsCollection\":\"datallbpegcetezaa\",\"\":{\"zsqe\":\"datazrbt\",\"fgoyxxszpaiecurf\":\"datarwf\"}}") - .toObject(AzureFileStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageReadSettings model - = new AzureFileStorageReadSettings().withMaxConcurrentConnections("datafdsafgkysymhuxs") - .withDisableMetricsCollection("datallbpegcetezaa") - .withRecursive("datamgsejisydhardxnk") - .withWildcardFolderPath("dataqfffglftlqakie") - .withWildcardFileName("datau") - .withPrefix("datarbjxewcscuveljf") - .withFileListPath("datain") - .withEnablePartitionDiscovery("dataziztgddahymv") - .withPartitionRootPath("datajtdhmig") - .withDeleteFilesAfterCompletion("dataaoexgienylsijqyg") - .withModifiedDatetimeStart("datashd") - .withModifiedDatetimeEnd("datahxv"); - 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 c1bdd292837d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFileStorageWriteSettingsTests.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.AzureFileStorageWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class AzureFileStorageWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFileStorageWriteSettings model = BinaryData.fromString( - "{\"type\":\"AzureFileStorageWriteSettings\",\"maxConcurrentConnections\":\"datayyjngd\",\"disableMetricsCollection\":\"dataqcjfqmyfgwb\",\"copyBehavior\":\"dataqzfwgb\",\"metadata\":[{\"name\":\"dataxzyj\",\"value\":\"dataiavmqut\"},{\"name\":\"datadlz\",\"value\":\"dataokcbxr\"}],\"\":{\"ppppte\":\"datal\",\"zjplaxxfn\":\"datakktretutsy\",\"rotg\":\"dataltanvb\"}}") - .toObject(AzureFileStorageWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFileStorageWriteSettings model - = new AzureFileStorageWriteSettings().withMaxConcurrentConnections("datayyjngd") - .withDisableMetricsCollection("dataqcjfqmyfgwb") - .withCopyBehavior("dataqzfwgb") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataxzyj").withValue("dataiavmqut"), - new MetadataItem().withName("datadlz").withValue("dataokcbxr"))); - 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 e2cb5155643f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTests.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.AzureFunctionActivity; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureFunctionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFunctionActivity model = BinaryData.fromString( - "{\"type\":\"AzureFunctionActivity\",\"typeProperties\":{\"method\":\"HEAD\",\"functionName\":\"datahwybbdaedqttzslt\",\"headers\":{\"ieaum\":\"datadacetjmap\",\"lhfxjcq\":\"datajxdirdcxuiamr\",\"xqpemqogto\":\"datafpwjjtdzfyivv\"},\"body\":\"datafvysvudbj\"},\"linkedServiceName\":{\"referenceName\":\"htxvmnyslpdq\",\"parameters\":{\"pblnervtym\":\"dataj\"}},\"policy\":{\"timeout\":\"datanjxvtvyyasil\",\"retry\":\"dataqygn\",\"retryIntervalInSeconds\":99436162,\"secureInput\":true,\"secureOutput\":false,\"\":{\"jsugkdv\":\"datavjhmqpjbk\",\"efdsgfztmhvu\":\"datagpeitfbgyznsh\"}},\"name\":\"avpoookhc\",\"description\":\"wgbjzznmjwqwyhh\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jtfnjrrx\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Failed\",\"Succeeded\"],\"\":{\"uhywdckvcof\":\"dataxnbbsjgvalowmmh\",\"vtakijwkwed\":\"datatceehqeahlfujp\"}},{\"activity\":\"uumldunalo\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"ucdvhqec\":\"dataqcbeunss\",\"uiuzsnjjgnmpuqsj\":\"dataqiulwfzoszgbgtwa\"}},{\"activity\":\"vdaj\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Completed\"],\"\":{\"jzleeup\":\"datamtwtbrpdtbgkxzx\"}},{\"activity\":\"lszcwomayr\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"tiwinnhowih\":\"dataardfxn\",\"dzgmfnpel\":\"datag\"}}],\"userProperties\":[{\"name\":\"sicpxu\",\"value\":\"dataupngorwvayrgu\"},{\"name\":\"fjjg\",\"value\":\"dataf\"},{\"name\":\"fwgrubofhkbjgx\",\"value\":\"datarppxjnrujdskkkzq\"}],\"\":{\"jirhaqe\":\"dataib\",\"xzha\":\"datafuazdak\",\"jfrpbdxsjceyyebg\":\"datacwhjv\",\"vwhqct\":\"dataffntrb\"}}") - .toObject(AzureFunctionActivity.class); - Assertions.assertEquals("avpoookhc", model.name()); - Assertions.assertEquals("wgbjzznmjwqwyhh", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("jtfnjrrx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sicpxu", model.userProperties().get(0).name()); - Assertions.assertEquals("htxvmnyslpdq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(99436162, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(AzureFunctionActivityMethod.HEAD, model.method()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFunctionActivity model = new AzureFunctionActivity().withName("avpoookhc") - .withDescription("wgbjzznmjwqwyhh") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jtfnjrrx") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("uumldunalo") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vdaj") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lszcwomayr") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("sicpxu").withValue("dataupngorwvayrgu"), - new UserProperty().withName("fjjg").withValue("dataf"), - new UserProperty().withName("fwgrubofhkbjgx").withValue("datarppxjnrujdskkkzq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("htxvmnyslpdq") - .withParameters(mapOf("pblnervtym", "dataj"))) - .withPolicy(new ActivityPolicy().withTimeout("datanjxvtvyyasil") - .withRetry("dataqygn") - .withRetryIntervalInSeconds(99436162) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withMethod(AzureFunctionActivityMethod.HEAD) - .withFunctionName("datahwybbdaedqttzslt") - .withHeaders( - mapOf("ieaum", "datadacetjmap", "lhfxjcq", "datajxdirdcxuiamr", "xqpemqogto", "datafpwjjtdzfyivv")) - .withBody("datafvysvudbj"); - model = BinaryData.fromObject(model).toObject(AzureFunctionActivity.class); - Assertions.assertEquals("avpoookhc", model.name()); - Assertions.assertEquals("wgbjzznmjwqwyhh", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("jtfnjrrx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sicpxu", model.userProperties().get(0).name()); - Assertions.assertEquals("htxvmnyslpdq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(99436162, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(AzureFunctionActivityMethod.HEAD, 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 279de508a4cd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureFunctionActivityTypePropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureFunctionActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureFunctionActivityTypeProperties model = BinaryData.fromString( - "{\"method\":\"OPTIONS\",\"functionName\":\"datayfugk\",\"headers\":{\"fna\":\"datavevudywnyu\",\"vdslrrtvahi\":\"datanlxwukpqcfkxagti\",\"kekbd\":\"datamzbaqrxzjmxtmedo\"},\"body\":\"datawhuepyrfjzyini\"}") - .toObject(AzureFunctionActivityTypeProperties.class); - Assertions.assertEquals(AzureFunctionActivityMethod.OPTIONS, model.method()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureFunctionActivityTypeProperties model = new AzureFunctionActivityTypeProperties() - .withMethod(AzureFunctionActivityMethod.OPTIONS) - .withFunctionName("datayfugk") - .withHeaders( - mapOf("fna", "datavevudywnyu", "vdslrrtvahi", "datanlxwukpqcfkxagti", "kekbd", "datamzbaqrxzjmxtmedo")) - .withBody("datawhuepyrfjzyini"); - model = BinaryData.fromObject(model).toObject(AzureFunctionActivityTypeProperties.class); - Assertions.assertEquals(AzureFunctionActivityMethod.OPTIONS, 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 294e6e17b7dc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTests.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLBatchExecutionActivity; -import com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLBatchExecutionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLBatchExecutionActivity model = BinaryData.fromString( - "{\"type\":\"AzureMLBatchExecution\",\"typeProperties\":{\"globalParameters\":{\"uldjeq\":\"dataibkuuo\",\"mcy\":\"datamo\"},\"webServiceOutputs\":{\"chqigjamozlh\":{\"filePath\":\"datakeuraylygclwbu\",\"linkedServiceName\":{\"referenceName\":\"qamvdnexqvt\",\"parameters\":{\"unoelknyopglgk\":\"datahzgtydll\",\"zoaryhcx\":\"dataazyhhcqjahhc\",\"bdyhjfmyc\":\"dataftgmqlcooyxfrr\",\"yydbxlturlnbmj\":\"dataucccb\"}}},\"b\":{\"filePath\":\"datat\",\"linkedServiceName\":{\"referenceName\":\"tegxnguvjryfcxsc\",\"parameters\":{\"mnfgfsjp\":\"dataytnoiriemkxmvqa\"}}},\"mtahnimkndujyw\":{\"filePath\":\"datasvweu\",\"linkedServiceName\":{\"referenceName\":\"toe\",\"parameters\":{\"wtpvaiewf\":\"datahmrawmchcde\",\"thpg\":\"datawfkw\"}}},\"praaf\":{\"filePath\":\"dataxf\",\"linkedServiceName\":{\"referenceName\":\"lymuwaf\",\"parameters\":{\"sxcd\":\"datatmttjduc\",\"papwmpdsvkiwjbuf\":\"datatovtnfwp\",\"dg\":\"datamlkjfvudigwkyykh\"}}}},\"webServiceInputs\":{\"f\":{\"filePath\":\"dataojt\",\"linkedServiceName\":{\"referenceName\":\"upjgebnsuiklnc\",\"parameters\":{\"fpcvblyeoyn\":\"dataghrbabxywojux\",\"zmfuh\":\"datahxkq\",\"hvmez\":\"dataupifgizkvokkhr\"}}},\"ttdyvifltvwebzf\":{\"filePath\":\"datadrtokw\",\"linkedServiceName\":{\"referenceName\":\"mbonureklgunpajw\",\"parameters\":{\"smookhobzi\":\"datactdpjuwujx\",\"niac\":\"dataqpstxulnntjiucn\"}}},\"ktwk\":{\"filePath\":\"datallk\",\"linkedServiceName\":{\"referenceName\":\"nwinqywlvxuxztj\",\"parameters\":{\"kq\":\"datarqh\",\"lkjhmugyayhpdstl\":\"dataxjly\",\"evrglzx\":\"datadgiqgeeqcgunsoi\",\"daqxnkdqsyhm\":\"datawkkykaz\"}}}}},\"linkedServiceName\":{\"referenceName\":\"vhwkwzxjezys\",\"parameters\":{\"uhydxahjuda\":\"datarhbkzzqwikqkx\",\"dflfx\":\"datammgsxolwofofmyl\",\"cccaujga\":\"datalwhtpyk\",\"vgemblntdynp\":\"datackjqupjxdbgmgx\"}},\"policy\":{\"timeout\":\"dataigxefscsrw\",\"retry\":\"datauteusuxvliq\",\"retryIntervalInSeconds\":1459080325,\"secureInput\":false,\"secureOutput\":false,\"\":{\"gizvvtdrjockz\":\"datazzsbqnv\",\"ppjzmpxam\":\"datafnph\"}},\"name\":\"qdostvx\",\"description\":\"fnmnfndrbkko\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"qfze\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Failed\",\"Failed\"],\"\":{\"kvn\":\"datadr\",\"arvhzfynbxw\":\"datazumczlknfwslvs\"}}],\"userProperties\":[{\"name\":\"mvlkuvbesrawzxnw\",\"value\":\"datasjygi\"}],\"\":{\"slcnsxhpqey\":\"datafo\",\"chdjarfdfnqfvr\":\"datazydpvv\",\"n\":\"dataxlh\"}}") - .toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("qdostvx", model.name()); - Assertions.assertEquals("fnmnfndrbkko", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("qfze", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mvlkuvbesrawzxnw", model.userProperties().get(0).name()); - Assertions.assertEquals("vhwkwzxjezys", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1459080325, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("qamvdnexqvt", - model.webServiceOutputs().get("chqigjamozlh").linkedServiceName().referenceName()); - Assertions.assertEquals("upjgebnsuiklnc", - model.webServiceInputs().get("f").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivity model = new AzureMLBatchExecutionActivity().withName("qdostvx") - .withDescription("fnmnfndrbkko") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("qfze") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("mvlkuvbesrawzxnw").withValue("datasjygi"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vhwkwzxjezys") - .withParameters(mapOf("uhydxahjuda", "datarhbkzzqwikqkx", "dflfx", "datammgsxolwofofmyl", "cccaujga", - "datalwhtpyk", "vgemblntdynp", "datackjqupjxdbgmgx"))) - .withPolicy(new ActivityPolicy().withTimeout("dataigxefscsrw") - .withRetry("datauteusuxvliq") - .withRetryIntervalInSeconds(1459080325) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withGlobalParameters(mapOf("uldjeq", "dataibkuuo", "mcy", "datamo")) - .withWebServiceOutputs(mapOf("chqigjamozlh", - new AzureMLWebServiceFile().withFilePath("datakeuraylygclwbu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qamvdnexqvt") - .withParameters(mapOf("unoelknyopglgk", "datahzgtydll", "zoaryhcx", "dataazyhhcqjahhc", - "bdyhjfmyc", "dataftgmqlcooyxfrr", "yydbxlturlnbmj", "dataucccb"))), - "b", - new AzureMLWebServiceFile().withFilePath("datat") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tegxnguvjryfcxsc") - .withParameters(mapOf("mnfgfsjp", "dataytnoiriemkxmvqa"))), - "mtahnimkndujyw", - new AzureMLWebServiceFile().withFilePath("datasvweu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("toe") - .withParameters(mapOf("wtpvaiewf", "datahmrawmchcde", "thpg", "datawfkw"))), - "praaf", - new AzureMLWebServiceFile().withFilePath("dataxf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lymuwaf") - .withParameters(mapOf("sxcd", "datatmttjduc", "papwmpdsvkiwjbuf", "datatovtnfwp", "dg", - "datamlkjfvudigwkyykh"))))) - .withWebServiceInputs(mapOf("f", - new AzureMLWebServiceFile().withFilePath("dataojt") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("upjgebnsuiklnc") - .withParameters(mapOf("fpcvblyeoyn", "dataghrbabxywojux", "zmfuh", "datahxkq", "hvmez", - "dataupifgizkvokkhr"))), - "ttdyvifltvwebzf", - new AzureMLWebServiceFile().withFilePath("datadrtokw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mbonureklgunpajw") - .withParameters(mapOf("smookhobzi", "datactdpjuwujx", "niac", "dataqpstxulnntjiucn"))), - "ktwk", - new AzureMLWebServiceFile().withFilePath("datallk") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nwinqywlvxuxztj") - .withParameters(mapOf("kq", "datarqh", "lkjhmugyayhpdstl", "dataxjly", "evrglzx", - "datadgiqgeeqcgunsoi", "daqxnkdqsyhm", "datawkkykaz"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivity.class); - Assertions.assertEquals("qdostvx", model.name()); - Assertions.assertEquals("fnmnfndrbkko", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("qfze", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mvlkuvbesrawzxnw", model.userProperties().get(0).name()); - Assertions.assertEquals("vhwkwzxjezys", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1459080325, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("qamvdnexqvt", - model.webServiceOutputs().get("chqigjamozlh").linkedServiceName().referenceName()); - Assertions.assertEquals("upjgebnsuiklnc", - model.webServiceInputs().get("f").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 99d796ac9260..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLBatchExecutionActivityTypePropertiesTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.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\":{\"xoohyesmlscvhra\":\"databdqmjcedfpub\",\"dxhkdy\":\"dataybbor\"},\"webServiceOutputs\":{\"ekkxlibs\":{\"filePath\":\"dataufqzuduqfdeigx\",\"linkedServiceName\":{\"referenceName\":\"plpgftz\",\"parameters\":{\"b\":\"dataf\"}}},\"erzthcfnrle\":{\"filePath\":\"datacvceglvz\",\"linkedServiceName\":{\"referenceName\":\"ujvv\",\"parameters\":{\"vxnumvorosqessp\":\"datadpclazaoytkub\",\"rqspwsiitzbyu\":\"datautk\",\"ovpsflmwduis\":\"datalumqmo\",\"e\":\"datavlunyqe\"}}},\"ydllhim\":{\"filePath\":\"dataghhcf\",\"linkedServiceName\":{\"referenceName\":\"zmjmfl\",\"parameters\":{\"vauxkgklqu\":\"datalkmtrrcbu\",\"zvarqi\":\"dataxewcdprqjsmhk\"}}}},\"webServiceInputs\":{\"imbqdsuaa\":{\"filePath\":\"dataxhxz\",\"linkedServiceName\":{\"referenceName\":\"bxhmd\",\"parameters\":{\"so\":\"databuapr\",\"cy\":\"dataqicrtibad\",\"w\":\"dataxbjaktg\",\"wcdbtopu\":\"datazpshghorgjidragq\"}}},\"m\":{\"filePath\":\"datakou\",\"linkedServiceName\":{\"referenceName\":\"vgcwsimhjbx\",\"parameters\":{\"z\":\"datagaofwo\",\"bnx\":\"dataxp\"}}},\"oggzppufu\":{\"filePath\":\"datays\",\"linkedServiceName\":{\"referenceName\":\"shbuxjhqu\",\"parameters\":{\"teuegrd\":\"datahcghnclfahryu\",\"miwoisqlsxzfycnp\":\"datatcptpqoajgg\",\"xwcptoihoyv\":\"datavnjzaa\",\"anlgczvfbzzsce\":\"dataaxfjuzgslqpzdxw\"}}}}}") - .toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions.assertEquals("plpgftz", - model.webServiceOutputs().get("ekkxlibs").linkedServiceName().referenceName()); - Assertions.assertEquals("bxhmd", model.webServiceInputs().get("imbqdsuaa").linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLBatchExecutionActivityTypeProperties model - = new AzureMLBatchExecutionActivityTypeProperties() - .withGlobalParameters(mapOf("xoohyesmlscvhra", "databdqmjcedfpub", "dxhkdy", "dataybbor")) - .withWebServiceOutputs(mapOf("ekkxlibs", - new AzureMLWebServiceFile().withFilePath("dataufqzuduqfdeigx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("plpgftz") - .withParameters(mapOf("b", "dataf"))), - "erzthcfnrle", - new AzureMLWebServiceFile().withFilePath("datacvceglvz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ujvv") - .withParameters(mapOf("vxnumvorosqessp", "datadpclazaoytkub", "rqspwsiitzbyu", "datautk", - "ovpsflmwduis", "datalumqmo", "e", "datavlunyqe"))), - "ydllhim", - new AzureMLWebServiceFile().withFilePath("dataghhcf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zmjmfl") - .withParameters(mapOf("vauxkgklqu", "datalkmtrrcbu", "zvarqi", "dataxewcdprqjsmhk"))))) - .withWebServiceInputs(mapOf("imbqdsuaa", - new AzureMLWebServiceFile().withFilePath("dataxhxz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bxhmd") - .withParameters(mapOf("so", "databuapr", "cy", "dataqicrtibad", "w", "dataxbjaktg", - "wcdbtopu", "datazpshghorgjidragq"))), - "m", - new AzureMLWebServiceFile().withFilePath("datakou") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vgcwsimhjbx") - .withParameters(mapOf("z", "datagaofwo", "bnx", "dataxp"))), - "oggzppufu", - new AzureMLWebServiceFile().withFilePath("datays") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("shbuxjhqu") - .withParameters(mapOf("teuegrd", "datahcghnclfahryu", "miwoisqlsxzfycnp", "datatcptpqoajgg", - "xwcptoihoyv", "datavnjzaa", "anlgczvfbzzsce", "dataaxfjuzgslqpzdxw"))))); - model = BinaryData.fromObject(model).toObject(AzureMLBatchExecutionActivityTypeProperties.class); - Assertions.assertEquals("plpgftz", - model.webServiceOutputs().get("ekkxlibs").linkedServiceName().referenceName()); - Assertions.assertEquals("bxhmd", model.webServiceInputs().get("imbqdsuaa").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 91454ed0b27e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.AzureMLExecutePipelineActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLExecutePipelineActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLExecutePipelineActivity model = BinaryData.fromString( - "{\"type\":\"AzureMLExecutePipeline\",\"typeProperties\":{\"mlPipelineId\":\"datat\",\"mlPipelineEndpointId\":\"dataawtfyzq\",\"version\":\"dataglixhapvwacwrcte\",\"experimentName\":\"dataucnknzncoxeop\",\"mlPipelineParameters\":\"dataleuaxrsyxeqwgaei\",\"dataPathAssignments\":\"dataovrcdcidcxkyw\",\"mlParentRunId\":\"dataztssqbclaeciwz\",\"continueOnStepFailure\":\"datattkhaxqyinfdmq\"},\"linkedServiceName\":{\"referenceName\":\"jkhqaxpicza\",\"parameters\":{\"ufezwgwmdv\":\"datavsnnqv\",\"dkjusqhr\":\"dataskffqqaobbq\",\"ykhtsycct\":\"dataadffdr\",\"siembc\":\"datarvn\"}},\"policy\":{\"timeout\":\"datam\",\"retry\":\"datawh\",\"retryIntervalInSeconds\":886184387,\"secureInput\":true,\"secureOutput\":true,\"\":{\"oa\":\"datacorqbmk\"}},\"name\":\"aaqfqgmwdohvinvz\",\"description\":\"ubsaskgi\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"acxldhoqcdpwx\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"axc\":\"datagznp\",\"zo\":\"datahtlqhikmfzdlh\",\"idnj\":\"datahnuziaztmxwmjaev\"}}],\"userProperties\":[{\"name\":\"unhwdirtiyraqyav\",\"value\":\"datayk\"},{\"name\":\"gcfh\",\"value\":\"datah\"},{\"name\":\"ns\",\"value\":\"datahzysuoqfbyc\"},{\"name\":\"aryxrttn\",\"value\":\"datajhjbfoemm\"}],\"\":{\"jm\":\"datatlgdvvpxhdefydit\"}}") - .toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("aaqfqgmwdohvinvz", model.name()); - Assertions.assertEquals("ubsaskgi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("acxldhoqcdpwx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("unhwdirtiyraqyav", model.userProperties().get(0).name()); - Assertions.assertEquals("jkhqaxpicza", model.linkedServiceName().referenceName()); - Assertions.assertEquals(886184387, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLExecutePipelineActivity model = new AzureMLExecutePipelineActivity().withName("aaqfqgmwdohvinvz") - .withDescription("ubsaskgi") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("acxldhoqcdpwx") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("unhwdirtiyraqyav").withValue("datayk"), - new UserProperty().withName("gcfh").withValue("datah"), - new UserProperty().withName("ns").withValue("datahzysuoqfbyc"), - new UserProperty().withName("aryxrttn").withValue("datajhjbfoemm"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jkhqaxpicza") - .withParameters(mapOf("ufezwgwmdv", "datavsnnqv", "dkjusqhr", "dataskffqqaobbq", "ykhtsycct", - "dataadffdr", "siembc", "datarvn"))) - .withPolicy(new ActivityPolicy().withTimeout("datam") - .withRetry("datawh") - .withRetryIntervalInSeconds(886184387) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withMlPipelineId("datat") - .withMlPipelineEndpointId("dataawtfyzq") - .withVersion("dataglixhapvwacwrcte") - .withExperimentName("dataucnknzncoxeop") - .withMlPipelineParameters("dataleuaxrsyxeqwgaei") - .withDataPathAssignments("dataovrcdcidcxkyw") - .withMlParentRunId("dataztssqbclaeciwz") - .withContinueOnStepFailure("datattkhaxqyinfdmq"); - model = BinaryData.fromObject(model).toObject(AzureMLExecutePipelineActivity.class); - Assertions.assertEquals("aaqfqgmwdohvinvz", model.name()); - Assertions.assertEquals("ubsaskgi", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("acxldhoqcdpwx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("unhwdirtiyraqyav", model.userProperties().get(0).name()); - Assertions.assertEquals("jkhqaxpicza", model.linkedServiceName().referenceName()); - Assertions.assertEquals(886184387, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLExecutePipelineActivityTypePropertiesTests.java deleted file mode 100644 index 95bc88d9d247..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\":\"datavjyqhcowou\",\"mlPipelineEndpointId\":\"datahltnyvig\",\"version\":\"dataxhjpsgprlmp\",\"experimentName\":\"dataaiakyflr\",\"mlPipelineParameters\":\"datav\",\"dataPathAssignments\":\"datakdciyidzb\",\"mlParentRunId\":\"datawlxxw\",\"continueOnStepFailure\":\"dataz\"}") - .toObject(AzureMLExecutePipelineActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLExecutePipelineActivityTypeProperties model - = new AzureMLExecutePipelineActivityTypeProperties().withMlPipelineId("datavjyqhcowou") - .withMlPipelineEndpointId("datahltnyvig") - .withVersion("dataxhjpsgprlmp") - .withExperimentName("dataaiakyflr") - .withMlPipelineParameters("datav") - .withDataPathAssignments("datakdciyidzb") - .withMlParentRunId("datawlxxw") - .withContinueOnStepFailure("dataz"); - 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 228187e90075..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTests.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.AzureMLUpdateResourceActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMLUpdateResourceActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMLUpdateResourceActivity model = BinaryData.fromString( - "{\"type\":\"AzureMLUpdateResource\",\"typeProperties\":{\"trainedModelName\":\"datajimussvur\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"lwdxnx\",\"parameters\":{\"lksoqr\":\"datalvkda\"}},\"trainedModelFilePath\":\"datawlanwh\"},\"linkedServiceName\":{\"referenceName\":\"sxliwpzucetziss\",\"parameters\":{\"zfgpzyqiv\":\"datarwswbmaubhrbtt\",\"qxjbq\":\"datasehy\"}},\"policy\":{\"timeout\":\"datai\",\"retry\":\"datacajtuoyxdl\",\"retryIntervalInSeconds\":296107626,\"secureInput\":false,\"secureOutput\":false,\"\":{\"bckfzbqvsg\":\"datakrxnr\",\"sfhtlvjaxdyxjic\":\"dataeijnvsjgnbdhh\",\"mvdddfjmi\":\"datak\"}},\"name\":\"b\",\"description\":\"cqlsisvpfsp\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"fpqyxlncwag\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"ylpwymr\":\"dataotkowiruerh\",\"emsl\":\"datauioepi\"}},{\"activity\":\"z\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Skipped\"],\"\":{\"m\":\"datazv\",\"olbqcftrywd\":\"datanewmpwjcgr\"}},{\"activity\":\"rs\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"i\":\"dataz\",\"djgcuew\":\"datanxvmcxljlpyhdx\"}},{\"activity\":\"nq\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"djmxvvtukyoubjn\":\"datamsxwe\"}}],\"userProperties\":[{\"name\":\"dinbfb\",\"value\":\"datawyvwv\"},{\"name\":\"gm\",\"value\":\"dataklqswwdbs\"}],\"\":{\"yjfquzxmtmsyiby\":\"dataysedqrbevobqrwng\"}}") - .toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("b", model.name()); - Assertions.assertEquals("cqlsisvpfsp", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("fpqyxlncwag", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("dinbfb", model.userProperties().get(0).name()); - Assertions.assertEquals("sxliwpzucetziss", model.linkedServiceName().referenceName()); - Assertions.assertEquals(296107626, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("lwdxnx", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivity model = new AzureMLUpdateResourceActivity().withName("b") - .withDescription("cqlsisvpfsp") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("fpqyxlncwag") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("z") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rs") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nq") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("dinbfb").withValue("datawyvwv"), - new UserProperty().withName("gm").withValue("dataklqswwdbs"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("sxliwpzucetziss") - .withParameters(mapOf("zfgpzyqiv", "datarwswbmaubhrbtt", "qxjbq", "datasehy"))) - .withPolicy(new ActivityPolicy().withTimeout("datai") - .withRetry("datacajtuoyxdl") - .withRetryIntervalInSeconds(296107626) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withTrainedModelName("datajimussvur") - .withTrainedModelLinkedServiceName( - new LinkedServiceReference().withReferenceName("lwdxnx").withParameters(mapOf("lksoqr", "datalvkda"))) - .withTrainedModelFilePath("datawlanwh"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivity.class); - Assertions.assertEquals("b", model.name()); - Assertions.assertEquals("cqlsisvpfsp", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("fpqyxlncwag", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("dinbfb", model.userProperties().get(0).name()); - Assertions.assertEquals("sxliwpzucetziss", model.linkedServiceName().referenceName()); - Assertions.assertEquals(296107626, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("lwdxnx", 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 473cb8617d4f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLUpdateResourceActivityTypePropertiesTests.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.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\":\"dataoupksas\",\"trainedModelLinkedServiceName\":{\"referenceName\":\"jkrosqxvffrnc\",\"parameters\":{\"i\":\"datajgyjoklngjsglz\",\"gakkszz\":\"datawsqdnasjup\",\"likeuqvq\":\"datadtvrgyebvq\"}},\"trainedModelFilePath\":\"dataotvfcbgffdlff\"}") - .toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("jkrosqxvffrnc", model.trainedModelLinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLUpdateResourceActivityTypeProperties model = new AzureMLUpdateResourceActivityTypeProperties() - .withTrainedModelName("dataoupksas") - .withTrainedModelLinkedServiceName(new LinkedServiceReference().withReferenceName("jkrosqxvffrnc") - .withParameters( - mapOf("i", "datajgyjoklngjsglz", "gakkszz", "datawsqdnasjup", "likeuqvq", "datadtvrgyebvq"))) - .withTrainedModelFilePath("dataotvfcbgffdlff"); - model = BinaryData.fromObject(model).toObject(AzureMLUpdateResourceActivityTypeProperties.class); - Assertions.assertEquals("jkrosqxvffrnc", 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 aff2cddf6e77..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMLWebServiceFileTests.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.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\":\"dataiaiec\",\"linkedServiceName\":{\"referenceName\":\"xyiuhjqdw\",\"parameters\":{\"qnxjkopivszejbpt\":\"databtlmszqaudaip\",\"x\":\"datamhabzjemqvlouuc\",\"ncgqhpqgivyx\":\"databqsj\"}}}") - .toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("xyiuhjqdw", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMLWebServiceFile model = new AzureMLWebServiceFile().withFilePath("dataiaiec") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xyiuhjqdw") - .withParameters(mapOf("qnxjkopivszejbpt", "databtlmszqaudaip", "x", "datamhabzjemqvlouuc", - "ncgqhpqgivyx", "databqsj"))); - model = BinaryData.fromObject(model).toObject(AzureMLWebServiceFile.class); - Assertions.assertEquals("xyiuhjqdw", 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 277625a05ad0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMariaDBSource; - -public final class AzureMariaDBSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMariaDBSource model = BinaryData.fromString( - "{\"type\":\"AzureMariaDBSource\",\"query\":\"datatowjzoopzaenl\",\"queryTimeout\":\"dataxztgduwun\",\"additionalColumns\":\"datavaol\",\"sourceRetryCount\":\"datavtczzvqzhtmeu\",\"sourceRetryWait\":\"datatudwchsrps\",\"maxConcurrentConnections\":\"dataq\",\"disableMetricsCollection\":\"databjuakt\",\"\":{\"drjdeyfnqanbadkz\":\"dataupcio\",\"kjexqnrnzlalug\":\"dataqctupl\",\"ovarfqverx\":\"dataeftrbxoma\"}}") - .toObject(AzureMariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBSource model = new AzureMariaDBSource().withSourceRetryCount("datavtczzvqzhtmeu") - .withSourceRetryWait("datatudwchsrps") - .withMaxConcurrentConnections("dataq") - .withDisableMetricsCollection("databjuakt") - .withQueryTimeout("dataxztgduwun") - .withAdditionalColumns("datavaol") - .withQuery("datatowjzoopzaenl"); - model = BinaryData.fromObject(model).toObject(AzureMariaDBSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java deleted file mode 100644 index 13474804f70e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMariaDBTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMariaDBTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMariaDBTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMariaDBTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureMariaDBTable\",\"typeProperties\":{\"tableName\":\"datatythct\"},\"description\":\"oip\",\"structure\":\"datanerwhem\",\"schema\":\"datadsssfzsgzguspej\",\"linkedServiceName\":{\"referenceName\":\"meqgxhwispsogdbl\",\"parameters\":{\"ichlygkvuixwonkr\":\"databaqxaxtuxirppb\",\"dxywabk\":\"datai\",\"aqyjukkajnne\":\"datatnipaptgv\"}},\"parameters\":{\"femiwfhhawbabhz\":{\"type\":\"SecureString\",\"defaultValue\":\"dataop\"},\"qnxyd\":{\"type\":\"String\",\"defaultValue\":\"datadi\"},\"uspaywvs\":{\"type\":\"Object\",\"defaultValue\":\"dataoiqz\"}},\"annotations\":[\"dataronzeafkxfmuwdb\",\"dataytqavouymkdeu\",\"dataxlvzpfdka\"],\"folder\":{\"name\":\"iw\"},\"\":{\"gjmpd\":\"datapqlktthbmrrmtr\",\"juzmu\":\"datarjzwawpewajccs\"}}") - .toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("oip", model.description()); - Assertions.assertEquals("meqgxhwispsogdbl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("femiwfhhawbabhz").type()); - Assertions.assertEquals("iw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMariaDBTableDataset model = new AzureMariaDBTableDataset().withDescription("oip") - .withStructure("datanerwhem") - .withSchema("datadsssfzsgzguspej") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("meqgxhwispsogdbl") - .withParameters(mapOf("ichlygkvuixwonkr", "databaqxaxtuxirppb", "dxywabk", "datai", "aqyjukkajnne", - "datatnipaptgv"))) - .withParameters(mapOf("femiwfhhawbabhz", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataop"), "qnxyd", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datadi"), "uspaywvs", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataoiqz"))) - .withAnnotations(Arrays.asList("dataronzeafkxfmuwdb", "dataytqavouymkdeu", "dataxlvzpfdka")) - .withFolder(new DatasetFolder().withName("iw")) - .withTableName("datatythct"); - model = BinaryData.fromObject(model).toObject(AzureMariaDBTableDataset.class); - Assertions.assertEquals("oip", model.description()); - Assertions.assertEquals("meqgxhwispsogdbl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("femiwfhhawbabhz").type()); - Assertions.assertEquals("iw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java deleted file mode 100644 index bb94ca2a86c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlSink; - -public final class AzureMySqlSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlSink model = BinaryData.fromString( - "{\"type\":\"AzureMySqlSink\",\"preCopyScript\":\"datamyycnnwajxv\",\"writeBatchSize\":\"dataidlwmewrgu\",\"writeBatchTimeout\":\"dataugpkunvygupgnnvm\",\"sinkRetryCount\":\"datazqmxwwmekms\",\"sinkRetryWait\":\"datafjbefszfrxfy\",\"maxConcurrentConnections\":\"dataypxcqmdeecd\",\"disableMetricsCollection\":\"datajsizyhp\",\"\":{\"kqtfyuy\":\"datakgrtwhmadhismw\",\"tzgew\":\"dataybshchxuea\",\"fsewusqupkrr\":\"dataqwibtkrhcgbzr\"}}") - .toObject(AzureMySqlSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSink model = new AzureMySqlSink().withWriteBatchSize("dataidlwmewrgu") - .withWriteBatchTimeout("dataugpkunvygupgnnvm") - .withSinkRetryCount("datazqmxwwmekms") - .withSinkRetryWait("datafjbefszfrxfy") - .withMaxConcurrentConnections("dataypxcqmdeecd") - .withDisableMetricsCollection("datajsizyhp") - .withPreCopyScript("datamyycnnwajxv"); - 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 b6ffc17cb293..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlSource; - -public final class AzureMySqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlSource model = BinaryData.fromString( - "{\"type\":\"AzureMySqlSource\",\"query\":\"datacyrdtrd\",\"queryTimeout\":\"datadmsktuvjh\",\"additionalColumns\":\"datatvyt\",\"sourceRetryCount\":\"datafbsgrzw\",\"sourceRetryWait\":\"datadudxqebtrpsplwt\",\"maxConcurrentConnections\":\"datacseybvtgcoznnjqx\",\"disableMetricsCollection\":\"datarnkuuotlymyb\",\"\":{\"j\":\"datarkxkmtuynugpt\",\"tqqshb\":\"dataisvfh\"}}") - .toObject(AzureMySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlSource model = new AzureMySqlSource().withSourceRetryCount("datafbsgrzw") - .withSourceRetryWait("datadudxqebtrpsplwt") - .withMaxConcurrentConnections("datacseybvtgcoznnjqx") - .withDisableMetricsCollection("datarnkuuotlymyb") - .withQueryTimeout("datadmsktuvjh") - .withAdditionalColumns("datatvyt") - .withQuery("datacyrdtrd"); - model = BinaryData.fromObject(model).toObject(AzureMySqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java deleted file mode 100644 index 84a1fc8078b8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureMySqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureMySqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureMySqlTable\",\"typeProperties\":{\"tableName\":\"datapqokhdyncra\",\"table\":\"datasewbempfapmqnm\"},\"description\":\"yksygih\",\"structure\":\"datalmslnunkqvzlbbb\",\"schema\":\"datadexquaw\",\"linkedServiceName\":{\"referenceName\":\"xizbfzet\",\"parameters\":{\"pnbmajvvyxt\":\"dataw\",\"nakzixbkaybfmln\":\"datav\",\"nrzblxna\":\"datafwhrmvlaknujmw\"}},\"parameters\":{\"hl\":{\"type\":\"Int\",\"defaultValue\":\"datandcbs\"},\"dvt\":{\"type\":\"SecureString\",\"defaultValue\":\"datajkkovohwvprj\"},\"ffhvqii\":{\"type\":\"Array\",\"defaultValue\":\"datamdtacntjn\"},\"sxjbjkewrigl\":{\"type\":\"String\",\"defaultValue\":\"datatwskkfkuyikmxhh\"}},\"annotations\":[\"datarefeclflxcjf\",\"datazwncvdefxonz\",\"datapcjptnnt\"],\"folder\":{\"name\":\"jqpzj\"},\"\":{\"h\":\"datajr\",\"agwviqehmdqvaoli\":\"datagsjbi\",\"m\":\"dataxdfsfvkjc\",\"rkd\":\"datarsvxphtjnhptj\"}}") - .toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("yksygih", model.description()); - Assertions.assertEquals("xizbfzet", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hl").type()); - Assertions.assertEquals("jqpzj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDataset model = new AzureMySqlTableDataset().withDescription("yksygih") - .withStructure("datalmslnunkqvzlbbb") - .withSchema("datadexquaw") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xizbfzet") - .withParameters( - mapOf("pnbmajvvyxt", "dataw", "nakzixbkaybfmln", "datav", "nrzblxna", "datafwhrmvlaknujmw"))) - .withParameters(mapOf("hl", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datandcbs"), "dvt", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datajkkovohwvprj"), - "ffhvqii", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamdtacntjn"), - "sxjbjkewrigl", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatwskkfkuyikmxhh"))) - .withAnnotations(Arrays.asList("datarefeclflxcjf", "datazwncvdefxonz", "datapcjptnnt")) - .withFolder(new DatasetFolder().withName("jqpzj")) - .withTableName("datapqokhdyncra") - .withTable("datasewbempfapmqnm"); - model = BinaryData.fromObject(model).toObject(AzureMySqlTableDataset.class); - Assertions.assertEquals("yksygih", model.description()); - Assertions.assertEquals("xizbfzet", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hl").type()); - Assertions.assertEquals("jqpzj", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 5f70c0f52981..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureMySqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlTableDatasetTypeProperties; - -public final class AzureMySqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMySqlTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"dataz\",\"table\":\"datammydtdtftmizuz\"}") - .toObject(AzureMySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMySqlTableDatasetTypeProperties model - = new AzureMySqlTableDatasetTypeProperties().withTableName("dataz").withTable("datammydtdtftmizuz"); - model = BinaryData.fromObject(model).toObject(AzureMySqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java deleted file mode 100644 index 016f40c81a01..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlSource; - -public final class AzurePostgreSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlSource model = BinaryData.fromString( - "{\"type\":\"AzurePostgreSqlSource\",\"query\":\"datamhookefdgfexakct\",\"queryTimeout\":\"datapszdn\",\"additionalColumns\":\"datao\",\"sourceRetryCount\":\"dataqxmdievkmrso\",\"sourceRetryWait\":\"datayiheheimuqqmd\",\"maxConcurrentConnections\":\"datawxfmrm\",\"disableMetricsCollection\":\"dataf\",\"\":{\"xdldhhkdeviwp\":\"dataypmthfvszlaf\",\"nu\":\"datahfxvl\"}}") - .toObject(AzurePostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlSource model = new AzurePostgreSqlSource().withSourceRetryCount("dataqxmdievkmrso") - .withSourceRetryWait("datayiheheimuqqmd") - .withMaxConcurrentConnections("datawxfmrm") - .withDisableMetricsCollection("dataf") - .withQueryTimeout("datapszdn") - .withAdditionalColumns("datao") - .withQuery("datamhookefdgfexakct"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java deleted file mode 100644 index 0c35a5fb2169..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzurePostgreSqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzurePostgreSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlTableDataset model = BinaryData.fromString( - "{\"type\":\"AzurePostgreSqlTable\",\"typeProperties\":{\"tableName\":\"datascec\",\"table\":\"dataaajdfwrdkql\",\"schema\":\"datakfekdesbpjq\"},\"description\":\"lbh\",\"structure\":\"datapduibsr\",\"schema\":\"dataqnneqrypyurvs\",\"linkedServiceName\":{\"referenceName\":\"hovtuercp\",\"parameters\":{\"yb\":\"datawc\",\"nwczsraz\":\"datadzycxhaoegjzgplj\"}},\"parameters\":{\"uapasizzfmugykw\":{\"type\":\"SecureString\",\"defaultValue\":\"datacqhxhj\"},\"enndzgthdzit\":{\"type\":\"Int\",\"defaultValue\":\"datauo\"},\"wonadezmzxvfybxm\":{\"type\":\"Object\",\"defaultValue\":\"datafpherwjqvsw\"},\"c\":{\"type\":\"Object\",\"defaultValue\":\"datanuvqkrrsguog\"}},\"annotations\":[\"datatpyabensjflwp\",\"datatvvqtmvifgcvsim\",\"datalbmti\",\"dataxgosnxa\"],\"folder\":{\"name\":\"cdfmzxaoxlhmvjc\"},\"\":{\"xh\":\"datasbnuc\",\"nkleldk\":\"dataaqoqbvejoysoxovl\",\"qrykkxakruupti\":\"datadlqqhn\"}}") - .toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("lbh", model.description()); - Assertions.assertEquals("hovtuercp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("uapasizzfmugykw").type()); - Assertions.assertEquals("cdfmzxaoxlhmvjc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDataset model = new AzurePostgreSqlTableDataset().withDescription("lbh") - .withStructure("datapduibsr") - .withSchema("dataqnneqrypyurvs") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hovtuercp") - .withParameters(mapOf("yb", "datawc", "nwczsraz", "datadzycxhaoegjzgplj"))) - .withParameters(mapOf("uapasizzfmugykw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datacqhxhj"), - "enndzgthdzit", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datauo"), - "wonadezmzxvfybxm", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datafpherwjqvsw"), "c", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanuvqkrrsguog"))) - .withAnnotations(Arrays.asList("datatpyabensjflwp", "datatvvqtmvifgcvsim", "datalbmti", "dataxgosnxa")) - .withFolder(new DatasetFolder().withName("cdfmzxaoxlhmvjc")) - .withTableName("datascec") - .withTable("dataaajdfwrdkql") - .withSchemaTypePropertiesSchema("datakfekdesbpjq"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlTableDataset.class); - Assertions.assertEquals("lbh", model.description()); - Assertions.assertEquals("hovtuercp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("uapasizzfmugykw").type()); - Assertions.assertEquals("cdfmzxaoxlhmvjc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 9d5fad721f3b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzurePostgreSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlTableDatasetTypeProperties; - -public final class AzurePostgreSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzurePostgreSqlTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datagvpzgy\",\"table\":\"datacnpxiema\",\"schema\":\"dataztjekxsnnbrys\"}") - .toObject(AzurePostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzurePostgreSqlTableDatasetTypeProperties model - = new AzurePostgreSqlTableDatasetTypeProperties().withTableName("datagvpzgy") - .withTable("datacnpxiema") - .withSchema("dataztjekxsnnbrys"); - model = BinaryData.fromObject(model).toObject(AzurePostgreSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java deleted file mode 100644 index d99946892915..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureQueueSinkTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureQueueSink; - -public final class AzureQueueSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureQueueSink model = BinaryData.fromString( - "{\"type\":\"AzureQueueSink\",\"writeBatchSize\":\"dataavgoullxpaylkras\",\"writeBatchTimeout\":\"datakskkziebm\",\"sinkRetryCount\":\"dataodfmplg\",\"sinkRetryWait\":\"datadtxbrdbwwqt\",\"maxConcurrentConnections\":\"datafofrfvhbbno\",\"disableMetricsCollection\":\"datakkrlkdouk\",\"\":{\"guap\":\"datamdsjgowsh\"}}") - .toObject(AzureQueueSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureQueueSink model = new AzureQueueSink().withWriteBatchSize("dataavgoullxpaylkras") - .withWriteBatchTimeout("datakskkziebm") - .withSinkRetryCount("dataodfmplg") - .withSinkRetryWait("datadtxbrdbwwqt") - .withMaxConcurrentConnections("datafofrfvhbbno") - .withDisableMetricsCollection("datakkrlkdouk"); - model = BinaryData.fromObject(model).toObject(AzureQueueSink.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java deleted file mode 100644 index 302080fcf14f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSearchIndexDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexDataset model = BinaryData.fromString( - "{\"type\":\"AzureSearchIndex\",\"typeProperties\":{\"indexName\":\"dataofwuzeb\"},\"description\":\"vmpjbhzyen\",\"structure\":\"datapetxeudwkh\",\"schema\":\"datackdoxo\",\"linkedServiceName\":{\"referenceName\":\"jcdevzpfreor\",\"parameters\":{\"x\":\"datayjmgvrlh\"}},\"parameters\":{\"kdywkszavuafane\":{\"type\":\"Array\",\"defaultValue\":\"datanhbcjy\"},\"zw\":{\"type\":\"Float\",\"defaultValue\":\"datatptplkossjbzvx\"},\"nyuvbtcuhjcgjt\":{\"type\":\"SecureString\",\"defaultValue\":\"datauhfgtiaczhfjdcc\"},\"bszsbzrrxey\":{\"type\":\"Int\",\"defaultValue\":\"datatomnlzthc\"}},\"annotations\":[\"datacowlrmbdctqx\"],\"folder\":{\"name\":\"joezvw\"},\"\":{\"ndm\":\"datazgavp\",\"ek\":\"datafiekkiskyyy\",\"bjiutfofhoajjyl\":\"datafffyshdawjlmlcuf\"}}") - .toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("vmpjbhzyen", model.description()); - Assertions.assertEquals("jcdevzpfreor", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("kdywkszavuafane").type()); - Assertions.assertEquals("joezvw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDataset model = new AzureSearchIndexDataset().withDescription("vmpjbhzyen") - .withStructure("datapetxeudwkh") - .withSchema("datackdoxo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jcdevzpfreor") - .withParameters(mapOf("x", "datayjmgvrlh"))) - .withParameters(mapOf("kdywkszavuafane", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datanhbcjy"), "zw", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatptplkossjbzvx"), - "nyuvbtcuhjcgjt", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datauhfgtiaczhfjdcc"), - "bszsbzrrxey", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datatomnlzthc"))) - .withAnnotations(Arrays.asList("datacowlrmbdctqx")) - .withFolder(new DatasetFolder().withName("joezvw")) - .withIndexName("dataofwuzeb"); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexDataset.class); - Assertions.assertEquals("vmpjbhzyen", model.description()); - Assertions.assertEquals("jcdevzpfreor", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("kdywkszavuafane").type()); - Assertions.assertEquals("joezvw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java deleted file mode 100644 index 0955650cc2eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSearchIndexDatasetTypeProperties; - -public final class AzureSearchIndexDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexDatasetTypeProperties model = BinaryData.fromString("{\"indexName\":\"datayqyjnufzvl\"}") - .toObject(AzureSearchIndexDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexDatasetTypeProperties model - = new AzureSearchIndexDatasetTypeProperties().withIndexName("datayqyjnufzvl"); - model = BinaryData.fromObject(model).toObject(AzureSearchIndexDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java deleted file mode 100644 index 034d3d83e452..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSearchIndexSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexSink; -import com.azure.resourcemanager.datafactory.models.AzureSearchIndexWriteBehaviorType; -import org.junit.jupiter.api.Assertions; - -public final class AzureSearchIndexSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSearchIndexSink model = BinaryData.fromString( - "{\"type\":\"AzureSearchIndexSink\",\"writeBehavior\":\"Merge\",\"writeBatchSize\":\"datavwiwtykprrddben\",\"writeBatchTimeout\":\"datahfszmxposmqscvy\",\"sinkRetryCount\":\"datadkpdleeslj\",\"sinkRetryWait\":\"datapsubxggknmvkniqo\",\"maxConcurrentConnections\":\"datarcpsjeaz\",\"disableMetricsCollection\":\"datajcsbkmaluchbfrt\",\"\":{\"dx\":\"datasddy\",\"k\":\"datanzp\",\"xsyufexivhjyxa\":\"datafpggi\",\"nzl\":\"datawtkqofrkfccqj\"}}") - .toObject(AzureSearchIndexSink.class); - Assertions.assertEquals(AzureSearchIndexWriteBehaviorType.MERGE, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSearchIndexSink model = new AzureSearchIndexSink().withWriteBatchSize("datavwiwtykprrddben") - .withWriteBatchTimeout("datahfszmxposmqscvy") - .withSinkRetryCount("datadkpdleeslj") - .withSinkRetryWait("datapsubxggknmvkniqo") - .withMaxConcurrentConnections("datarcpsjeaz") - .withDisableMetricsCollection("datajcsbkmaluchbfrt") - .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 627a6e35543d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlDWTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlDWTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlDWTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureSqlDWTable\",\"typeProperties\":{\"tableName\":\"dataync\",\"schema\":\"datau\",\"table\":\"datafstyygjqpulm\"},\"description\":\"gm\",\"structure\":\"dataqmiwxzfvvzucqfg\",\"schema\":\"datajnbxwbmwdukin\",\"linkedServiceName\":{\"referenceName\":\"lxhgdekekzou\",\"parameters\":{\"cgldohgc\":\"datawwpzrd\",\"dqtdnnc\":\"datandxfhhhtes\"}},\"parameters\":{\"dxccyijj\":{\"type\":\"Object\",\"defaultValue\":\"datadshvvf\"},\"ydw\":{\"type\":\"Int\",\"defaultValue\":\"dataijzrqnjxmvvsd\"},\"exqwqnghxnimvy\":{\"type\":\"Object\",\"defaultValue\":\"dataruhhqldrdymnswx\"},\"tnylqu\":{\"type\":\"Object\",\"defaultValue\":\"dataxgunnqgypu\"}},\"annotations\":[\"datamvyumgmmuebsnzn\",\"datagsqufmjxcyo\",\"dataeqcazisvbrqgcy\",\"datapgawepk\"],\"folder\":{\"name\":\"rzp\"},\"\":{\"taflvs\":\"datardtbgblxbuibrvj\"}}") - .toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("gm", model.description()); - Assertions.assertEquals("lxhgdekekzou", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("dxccyijj").type()); - Assertions.assertEquals("rzp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDataset model = new AzureSqlDWTableDataset().withDescription("gm") - .withStructure("dataqmiwxzfvvzucqfg") - .withSchema("datajnbxwbmwdukin") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lxhgdekekzou") - .withParameters(mapOf("cgldohgc", "datawwpzrd", "dqtdnnc", "datandxfhhhtes"))) - .withParameters(mapOf("dxccyijj", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datadshvvf"), "ydw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataijzrqnjxmvvsd"), - "exqwqnghxnimvy", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataruhhqldrdymnswx"), - "tnylqu", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataxgunnqgypu"))) - .withAnnotations( - Arrays.asList("datamvyumgmmuebsnzn", "datagsqufmjxcyo", "dataeqcazisvbrqgcy", "datapgawepk")) - .withFolder(new DatasetFolder().withName("rzp")) - .withTableName("dataync") - .withSchemaTypePropertiesSchema("datau") - .withTable("datafstyygjqpulm"); - model = BinaryData.fromObject(model).toObject(AzureSqlDWTableDataset.class); - Assertions.assertEquals("gm", model.description()); - Assertions.assertEquals("lxhgdekekzou", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("dxccyijj").type()); - Assertions.assertEquals("rzp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java deleted file mode 100644 index 955c60493965..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlDWTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWTableDatasetTypeProperties; - -public final class AzureSqlDWTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlDWTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datajihvfjcqrttjfuq\",\"schema\":\"datafjewfeqbavdo\",\"table\":\"datawy\"}") - .toObject(AzureSqlDWTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlDWTableDatasetTypeProperties model - = new AzureSqlDWTableDatasetTypeProperties().withTableName("datajihvfjcqrttjfuq") - .withSchema("datafjewfeqbavdo") - .withTable("datawy"); - model = BinaryData.fromObject(model).toObject(AzureSqlDWTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java deleted file mode 100644 index 6b869d88c9a4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlMITableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlMITableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlMITableDataset model = BinaryData.fromString( - "{\"type\":\"AzureSqlMITable\",\"typeProperties\":{\"tableName\":\"dataqphkv\",\"schema\":\"datazadcrxyla\",\"table\":\"datadtyzvelffohur\"},\"description\":\"hjdfrwpsshrmnk\",\"structure\":\"datalpc\",\"schema\":\"dataogkscxj\",\"linkedServiceName\":{\"referenceName\":\"s\",\"parameters\":{\"qcowscuyfql\":\"dataspoebnx\",\"bqhsujkafu\":\"datam\"}},\"parameters\":{\"svgoocq\":{\"type\":\"Bool\",\"defaultValue\":\"datapwnikxkcajgrbrc\"},\"tm\":{\"type\":\"Bool\",\"defaultValue\":\"datamzlpcx\"},\"zfvwjdthkvpyeyoa\":{\"type\":\"Int\",\"defaultValue\":\"datarqic\"},\"kjr\":{\"type\":\"String\",\"defaultValue\":\"datampnqup\"}},\"annotations\":[\"dataky\"],\"folder\":{\"name\":\"bdx\"},\"\":{\"p\":\"datadcclcvqsr\",\"ry\":\"dataylcvwbzmfx\"}}") - .toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("hjdfrwpsshrmnk", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("svgoocq").type()); - Assertions.assertEquals("bdx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDataset model = new AzureSqlMITableDataset().withDescription("hjdfrwpsshrmnk") - .withStructure("datalpc") - .withSchema("dataogkscxj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("s") - .withParameters(mapOf("qcowscuyfql", "dataspoebnx", "bqhsujkafu", "datam"))) - .withParameters(mapOf("svgoocq", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datapwnikxkcajgrbrc"), "tm", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datamzlpcx"), - "zfvwjdthkvpyeyoa", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datarqic"), "kjr", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datampnqup"))) - .withAnnotations(Arrays.asList("dataky")) - .withFolder(new DatasetFolder().withName("bdx")) - .withTableName("dataqphkv") - .withSchemaTypePropertiesSchema("datazadcrxyla") - .withTable("datadtyzvelffohur"); - model = BinaryData.fromObject(model).toObject(AzureSqlMITableDataset.class); - Assertions.assertEquals("hjdfrwpsshrmnk", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("svgoocq").type()); - Assertions.assertEquals("bdx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java deleted file mode 100644 index 7ef02149fe45..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlMITableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMITableDatasetTypeProperties; - -public final class AzureSqlMITableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datajxlpiy\",\"schema\":\"datanpfydrfb\",\"table\":\"datanyxbyxmk\"}") - .toObject(AzureSqlMITableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlMITableDatasetTypeProperties model - = new AzureSqlMITableDatasetTypeProperties().withTableName("datajxlpiy") - .withSchema("datanpfydrfb") - .withTable("datanyxbyxmk"); - model = BinaryData.fromObject(model).toObject(AzureSqlMITableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java deleted file mode 100644 index b0a892bb20ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlSourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class AzureSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlSource model = BinaryData.fromString( - "{\"type\":\"AzureSqlSource\",\"sqlReaderQuery\":\"dataiob\",\"sqlReaderStoredProcedureName\":\"datatpyemppwkry\",\"storedProcedureParameters\":\"datadqpkqf\",\"isolationLevel\":\"datahoiq\",\"produceAdditionalTypes\":\"databhmy\",\"partitionOption\":\"datagmf\",\"partitionSettings\":{\"partitionColumnName\":\"datanckggwiquka\",\"partitionUpperBound\":\"dataokeolzizfbunzm\",\"partitionLowerBound\":\"datafttmjomuwl\"},\"queryTimeout\":\"datajwkpznsfbi\",\"additionalColumns\":\"datafzgpvdlx\",\"sourceRetryCount\":\"dataotclcuxzllnwmgqc\",\"sourceRetryWait\":\"datagjequox\",\"maxConcurrentConnections\":\"datagfspwhfhdguuvg\",\"disableMetricsCollection\":\"datavz\",\"\":{\"m\":\"dataytqzx\",\"rmeufhkoe\":\"datanwpwrfetjg\"}}") - .toObject(AzureSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlSource model = new AzureSqlSource().withSourceRetryCount("dataotclcuxzllnwmgqc") - .withSourceRetryWait("datagjequox") - .withMaxConcurrentConnections("datagfspwhfhdguuvg") - .withDisableMetricsCollection("datavz") - .withQueryTimeout("datajwkpznsfbi") - .withAdditionalColumns("datafzgpvdlx") - .withSqlReaderQuery("dataiob") - .withSqlReaderStoredProcedureName("datatpyemppwkry") - .withStoredProcedureParameters("datadqpkqf") - .withIsolationLevel("datahoiq") - .withProduceAdditionalTypes("databhmy") - .withPartitionOption("datagmf") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datanckggwiquka") - .withPartitionUpperBound("dataokeolzizfbunzm") - .withPartitionLowerBound("datafttmjomuwl")); - model = BinaryData.fromObject(model).toObject(AzureSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java deleted file mode 100644 index 88afc4d3aa38..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSqlTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureSqlTable\",\"typeProperties\":{\"tableName\":\"datazwahdrdvhaztkxb\",\"schema\":\"datazfgxmbry\",\"table\":\"datawibios\"},\"description\":\"sykqfd\",\"structure\":\"datadrtx\",\"schema\":\"datadaglmrcok\",\"linkedServiceName\":{\"referenceName\":\"zertkounz\",\"parameters\":{\"fpopikzeb\":\"datawhuby\",\"wt\":\"datannf\",\"jculojhhylx\":\"dataqowsdlkhczygpmg\",\"bybwjmtftcvelnir\":\"dataevfiyymotu\"}},\"parameters\":{\"hfxrt\":{\"type\":\"String\",\"defaultValue\":\"datastpaqpibjgbvswm\"},\"ectcxsfmbzdx\":{\"type\":\"Object\",\"defaultValue\":\"datamsennqfabqcama\"},\"fxuzmsvzyqrbrn\":{\"type\":\"Object\",\"defaultValue\":\"datanbkdnny\"},\"uasnjeglhtrxb\":{\"type\":\"Object\",\"defaultValue\":\"datatlxfikjkxaravw\"}},\"annotations\":[\"datacjcnwjzb\",\"databl\",\"datarnwv\"],\"folder\":{\"name\":\"oq\"},\"\":{\"ooauffhxfqkmwzr\":\"datawwsdsorgfhjxsa\"}}") - .toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("sykqfd", model.description()); - Assertions.assertEquals("zertkounz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hfxrt").type()); - Assertions.assertEquals("oq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDataset model = new AzureSqlTableDataset().withDescription("sykqfd") - .withStructure("datadrtx") - .withSchema("datadaglmrcok") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zertkounz") - .withParameters(mapOf("fpopikzeb", "datawhuby", "wt", "datannf", "jculojhhylx", "dataqowsdlkhczygpmg", - "bybwjmtftcvelnir", "dataevfiyymotu"))) - .withParameters(mapOf("hfxrt", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datastpaqpibjgbvswm"), - "ectcxsfmbzdx", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datamsennqfabqcama"), - "fxuzmsvzyqrbrn", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanbkdnny"), - "uasnjeglhtrxb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datatlxfikjkxaravw"))) - .withAnnotations(Arrays.asList("datacjcnwjzb", "databl", "datarnwv")) - .withFolder(new DatasetFolder().withName("oq")) - .withTableName("datazwahdrdvhaztkxb") - .withSchemaTypePropertiesSchema("datazfgxmbry") - .withTable("datawibios"); - model = BinaryData.fromObject(model).toObject(AzureSqlTableDataset.class); - Assertions.assertEquals("sykqfd", model.description()); - Assertions.assertEquals("zertkounz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("hfxrt").type()); - Assertions.assertEquals("oq", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index ef8c513bc1d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlTableDatasetTypeProperties; - -public final class AzureSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSqlTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datayoybm\",\"schema\":\"dataotoc\",\"table\":\"datazdaiovrb\"}") - .toObject(AzureSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSqlTableDatasetTypeProperties model = new AzureSqlTableDatasetTypeProperties().withTableName("datayoybm") - .withSchema("dataotoc") - .withTable("datazdaiovrb"); - model = BinaryData.fromObject(model).toObject(AzureSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java deleted file mode 100644 index 16ea614de7c1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureSynapseArtifactsLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureSynapseArtifactsLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSynapseArtifactsLinkedService model = BinaryData.fromString( - "{\"type\":\"AzureSynapseArtifacts\",\"typeProperties\":{\"endpoint\":\"datalpcixpxxnyhivhyu\",\"authentication\":\"dataxyfbka\",\"workspaceResourceId\":\"datalaya\"},\"version\":\"dnovuduwwjohgcn\",\"connectVia\":{\"referenceName\":\"mcivhwwhyej\",\"parameters\":{\"fsqbcfqaqoveqowq\":\"datadfcfyzwkmr\"}},\"description\":\"ispasxwiic\",\"parameters\":{\"wsaxpbieehpvq\":{\"type\":\"Float\",\"defaultValue\":\"datahadndowkxq\"}},\"annotations\":[\"datarrjprygjgyovc\",\"datagqiismaggkt\"],\"\":{\"mjkronxmtrhw\":\"datakrbkkcx\",\"utyszhzlvkmirn\":\"datadfnc\"}}") - .toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("dnovuduwwjohgcn", model.version()); - Assertions.assertEquals("mcivhwwhyej", model.connectVia().referenceName()); - Assertions.assertEquals("ispasxwiic", model.description()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("wsaxpbieehpvq").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedService model - = new AzureSynapseArtifactsLinkedService().withVersion("dnovuduwwjohgcn") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("mcivhwwhyej") - .withParameters(mapOf("fsqbcfqaqoveqowq", "datadfcfyzwkmr"))) - .withDescription("ispasxwiic") - .withParameters(mapOf("wsaxpbieehpvq", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datahadndowkxq"))) - .withAnnotations(Arrays.asList("datarrjprygjgyovc", "datagqiismaggkt")) - .withEndpoint("datalpcixpxxnyhivhyu") - .withAuthentication("dataxyfbka") - .withWorkspaceResourceId("datalaya"); - model = BinaryData.fromObject(model).toObject(AzureSynapseArtifactsLinkedService.class); - Assertions.assertEquals("dnovuduwwjohgcn", model.version()); - Assertions.assertEquals("mcivhwwhyej", model.connectVia().referenceName()); - Assertions.assertEquals("ispasxwiic", model.description()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("wsaxpbieehpvq").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 34fcc168f9b9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureSynapseArtifactsLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSynapseArtifactsLinkedServiceTypeProperties; - -public final class AzureSynapseArtifactsLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model = BinaryData.fromString( - "{\"endpoint\":\"datadbza\",\"authentication\":\"dataepbmogtfpksk\",\"workspaceResourceId\":\"datayohfrlyynkgnych\"}") - .toObject(AzureSynapseArtifactsLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSynapseArtifactsLinkedServiceTypeProperties model - = new AzureSynapseArtifactsLinkedServiceTypeProperties().withEndpoint("datadbza") - .withAuthentication("dataepbmogtfpksk") - .withWorkspaceResourceId("datayohfrlyynkgnych"); - model = BinaryData.fromObject(model).toObject(AzureSynapseArtifactsLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java deleted file mode 100644 index e822db0e378d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableDataset model = BinaryData.fromString( - "{\"type\":\"AzureTable\",\"typeProperties\":{\"tableName\":\"datablxk\"},\"description\":\"qgvxrktjcjigcw\",\"structure\":\"datapanbqxasevc\",\"schema\":\"datafp\",\"linkedServiceName\":{\"referenceName\":\"eedyybruholaem\",\"parameters\":{\"aowcahdkm\":\"dataimmrimaabsqqlonb\",\"zglkvbgu\":\"datajsmihrijezbfsjwf\",\"gnbknhj\":\"databsvbwyot\",\"ffaspsdzkucsz\":\"dataclxaxw\"}},\"parameters\":{\"nxclfrsbzrnmuv\":{\"type\":\"String\",\"defaultValue\":\"dataqip\"},\"bf\":{\"type\":\"Array\",\"defaultValue\":\"datauofdd\"},\"oyqxfvgyxz\":{\"type\":\"Bool\",\"defaultValue\":\"datajcnginxdvm\"},\"dnzujsj\":{\"type\":\"Bool\",\"defaultValue\":\"datanofxlttxoqx\"}},\"annotations\":[\"datarpskcjhmmo\",\"databnivdqtkykp\",\"dataxnlsf\"],\"folder\":{\"name\":\"scaccptbz\"},\"\":{\"xxicee\":\"datay\"}}") - .toObject(AzureTableDataset.class); - Assertions.assertEquals("qgvxrktjcjigcw", model.description()); - Assertions.assertEquals("eedyybruholaem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("nxclfrsbzrnmuv").type()); - Assertions.assertEquals("scaccptbz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDataset model = new AzureTableDataset().withDescription("qgvxrktjcjigcw") - .withStructure("datapanbqxasevc") - .withSchema("datafp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("eedyybruholaem") - .withParameters(mapOf("aowcahdkm", "dataimmrimaabsqqlonb", "zglkvbgu", "datajsmihrijezbfsjwf", - "gnbknhj", "databsvbwyot", "ffaspsdzkucsz", "dataclxaxw"))) - .withParameters(mapOf("nxclfrsbzrnmuv", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataqip"), "bf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datauofdd"), "oyqxfvgyxz", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajcnginxdvm"), "dnzujsj", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datanofxlttxoqx"))) - .withAnnotations(Arrays.asList("datarpskcjhmmo", "databnivdqtkykp", "dataxnlsf")) - .withFolder(new DatasetFolder().withName("scaccptbz")) - .withTableName("datablxk"); - model = BinaryData.fromObject(model).toObject(AzureTableDataset.class); - Assertions.assertEquals("qgvxrktjcjigcw", model.description()); - Assertions.assertEquals("eedyybruholaem", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("nxclfrsbzrnmuv").type()); - Assertions.assertEquals("scaccptbz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java deleted file mode 100644 index 92f2aad3132e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.AzureTableDatasetTypeProperties; - -public final class AzureTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datavjwyuveox\"}") - .toObject(AzureTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableDatasetTypeProperties model = new AzureTableDatasetTypeProperties().withTableName("datavjwyuveox"); - model = BinaryData.fromObject(model).toObject(AzureTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java deleted file mode 100644 index 0168adccf714..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/AzureTableSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.AzureTableSource; - -public final class AzureTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureTableSource model = BinaryData.fromString( - "{\"type\":\"AzureTableSource\",\"azureTableSourceQuery\":\"datans\",\"azureTableSourceIgnoreTableNotFound\":\"dataqtmhff\",\"queryTimeout\":\"datanvrdtdl\",\"additionalColumns\":\"datamgghutl\",\"sourceRetryCount\":\"datazzljyog\",\"sourceRetryWait\":\"datawnegpbiuwnxhqelj\",\"maxConcurrentConnections\":\"dataolqdiku\",\"disableMetricsCollection\":\"datacl\",\"\":{\"wnlpbawtp\":\"datahghkf\"}}") - .toObject(AzureTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureTableSource model = new AzureTableSource().withSourceRetryCount("datazzljyog") - .withSourceRetryWait("datawnegpbiuwnxhqelj") - .withMaxConcurrentConnections("dataolqdiku") - .withDisableMetricsCollection("datacl") - .withQueryTimeout("datanvrdtdl") - .withAdditionalColumns("datamgghutl") - .withAzureTableSourceQuery("datans") - .withAzureTableSourceIgnoreTableNotFound("dataqtmhff"); - 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 d5d6c4b9826f..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\":\"datak\"}") - .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("datak"); - model = BinaryData.fromObject(model).toObject(BigDataPoolParametrizationReference.class); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java deleted file mode 100644 index 442298f6827e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryDataset; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BinaryDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryDataset model = BinaryData.fromString( - "{\"type\":\"Binary\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataizhqikmgobl\",\"fileName\":\"datae\",\"\":{\"jxvtrkfkgenjqnnp\":\"dataiiisklbonxxu\",\"ujjcxgdqmrlhn\":\"datawkosnyxigf\",\"xyxwjezbfqplo\":\"datakwopswnyinxupr\",\"trsvjmnsvujnjkt\":\"datauekdcpvu\"}},\"compression\":{\"type\":\"datalefcjis\",\"level\":\"datakdb\",\"\":{\"ampqocl\":\"datafb\",\"tgvpatr\":\"datannmxynlsuqbwzstr\"}}},\"description\":\"jktfinf\",\"structure\":\"dataks\",\"schema\":\"dataculwkqic\",\"linkedServiceName\":{\"referenceName\":\"uookrjfls\",\"parameters\":{\"pqsdoc\":\"datajbt\",\"pujzfl\":\"datap\",\"wlluunxhfwlfxz\":\"datacdsgxceluji\"}},\"parameters\":{\"jdmngsytqpdzfyxc\":{\"type\":\"Float\",\"defaultValue\":\"dataupcknecexkgrvfp\"}},\"annotations\":[\"datawoxcgzbejqfb\",\"datafopfjxdwdrpazqjk\",\"datafmbwotfcuuugt\"],\"folder\":{\"name\":\"pgayiawohfmhnnzm\"},\"\":{\"gloiovsl\":\"datajkmqenhaidzrpv\",\"pijpkhc\":\"dataivqsuvwtenb\",\"xukuicjuftekio\":\"dataoa\"}}") - .toObject(BinaryDataset.class); - Assertions.assertEquals("jktfinf", model.description()); - Assertions.assertEquals("uookrjfls", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jdmngsytqpdzfyxc").type()); - Assertions.assertEquals("pgayiawohfmhnnzm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDataset model = new BinaryDataset().withDescription("jktfinf") - .withStructure("dataks") - .withSchema("dataculwkqic") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uookrjfls") - .withParameters(mapOf("pqsdoc", "datajbt", "pujzfl", "datap", "wlluunxhfwlfxz", "datacdsgxceluji"))) - .withParameters(mapOf("jdmngsytqpdzfyxc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataupcknecexkgrvfp"))) - .withAnnotations(Arrays.asList("datawoxcgzbejqfb", "datafopfjxdwdrpazqjk", "datafmbwotfcuuugt")) - .withFolder(new DatasetFolder().withName("pgayiawohfmhnnzm")) - .withLocation(new DatasetLocation().withFolderPath("dataizhqikmgobl") - .withFileName("datae") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withCompression(new DatasetCompression().withType("datalefcjis") - .withLevel("datakdb") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(BinaryDataset.class); - Assertions.assertEquals("jktfinf", model.description()); - Assertions.assertEquals("uookrjfls", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("jdmngsytqpdzfyxc").type()); - Assertions.assertEquals("pgayiawohfmhnnzm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java deleted file mode 100644 index 9e73b2ff731e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryDatasetTypePropertiesTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.BinaryDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class BinaryDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datand\",\"fileName\":\"datawfhvpxjhxzu\",\"\":{\"uaixcdckix\":\"datazabbwzgv\",\"igavk\":\"dataps\"}},\"compression\":{\"type\":\"datayxzerejr\",\"level\":\"datazjbyetjxryopta\",\"\":{\"rrabovrwwxywp\":\"datawhlbecgihzbpem\",\"hifppskpeswyhhm\":\"datahspbo\",\"lyuqvcmlaexb\":\"datafjuajxwwvcmmpe\"}}}") - .toObject(BinaryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryDatasetTypeProperties model = new BinaryDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datand") - .withFileName("datawfhvpxjhxzu") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withCompression(new DatasetCompression().withType("datayxzerejr") - .withLevel("datazjbyetjxryopta") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(BinaryDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java deleted file mode 100644 index fac0a71c0338..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinaryReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryReadSettings; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class BinaryReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinaryReadSettings model = BinaryData.fromString( - "{\"type\":\"BinaryReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"zqvawkesx\":\"datadycfyfauna\",\"brzkmgylmyc\":\"datazcxxfwpjpgq\"}},\"\":{\"cyhjhrkfpt\":\"dataorrecoiqwnqliz\",\"fmbvmajcmpohjdvf\":\"dataiommis\"}}") - .toObject(BinaryReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinaryReadSettings model = new BinaryReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(BinaryReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java deleted file mode 100644 index db23cca60431..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySinkTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinarySink; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class BinarySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinarySink model = BinaryData.fromString( - "{\"type\":\"BinarySink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataajqnsrcqd\",\"disableMetricsCollection\":\"datamlqamd\",\"copyBehavior\":\"dataukdmrv\",\"metadata\":[{\"name\":\"datacclsnprdartq\",\"value\":\"databbxexacgmtpkx\"}],\"\":{\"bmujlsztpygq\":\"databovexsnmww\",\"sn\":\"datakdl\",\"mksfejzmyvlbz\":\"datamkc\"}},\"writeBatchSize\":\"datagxzpdnbjov\",\"writeBatchTimeout\":\"datadvtnbt\",\"sinkRetryCount\":\"datagkjfkaoew\",\"sinkRetryWait\":\"datayizdglzz\",\"maxConcurrentConnections\":\"datafi\",\"disableMetricsCollection\":\"datavyxyrykn\",\"\":{\"jyj\":\"datajgpyvjg\",\"c\":\"datahwbbhwr\",\"pb\":\"datawzuerrvpamfpini\",\"uu\":\"datakmfb\"}}") - .toObject(BinarySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySink model = new BinarySink().withWriteBatchSize("datagxzpdnbjov") - .withWriteBatchTimeout("datadvtnbt") - .withSinkRetryCount("datagkjfkaoew") - .withSinkRetryWait("datayizdglzz") - .withMaxConcurrentConnections("datafi") - .withDisableMetricsCollection("datavyxyrykn") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("dataajqnsrcqd") - .withDisableMetricsCollection("datamlqamd") - .withCopyBehavior("dataukdmrv") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datacclsnprdartq").withValue("databbxexacgmtpkx"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))); - model = BinaryData.fromObject(model).toObject(BinarySink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java deleted file mode 100644 index 713c0fdc035d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BinarySourceTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BinaryReadSettings; -import com.azure.resourcemanager.datafactory.models.BinarySource; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class BinarySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BinarySource model = BinaryData.fromString( - "{\"type\":\"BinarySource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataf\",\"disableMetricsCollection\":\"dataaqdswfnomciwhu\",\"\":{\"rpbcgdptfxof\":\"dataihfndsjpuilf\"}},\"formatSettings\":{\"type\":\"BinaryReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"ynttrnksvxim\":\"dataxomnguqwx\",\"iycxuyzrnngnm\":\"datan\"}},\"\":{\"qalwlirapqhsidf\":\"datawfoummdomvditp\",\"tiqbxzeiudog\":\"datasfnoczefgfqxejj\",\"oeomufaza\":\"datafcrb\",\"bsspexejhwpnjc\":\"datawzbew\"}},\"sourceRetryCount\":\"datacj\",\"sourceRetryWait\":\"dataovuvmdzdqtir\",\"maxConcurrentConnections\":\"dataajsrdecbowkhmaff\",\"disableMetricsCollection\":\"datapdnnsujx\",\"\":{\"ykueatztnprnshln\":\"dataqljzkhnca\",\"tjyisjscuwylukt\":\"dataahvlzgsqwiubgb\",\"xrziry\":\"datacuxuxaihheg\",\"mxqvv\":\"datarpjru\"}}") - .toObject(BinarySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BinarySource model = new BinarySource().withSourceRetryCount("datacj") - .withSourceRetryWait("dataovuvmdzdqtir") - .withMaxConcurrentConnections("dataajsrdecbowkhmaff") - .withDisableMetricsCollection("datapdnnsujx") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataf") - .withDisableMetricsCollection("dataaqdswfnomciwhu") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new BinaryReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")))); - model = BinaryData.fromObject(model).toObject(BinarySource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.java deleted file mode 100644 index 2cca7b353f14..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobEventsTriggerTests.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.BlobEventTypes; -import com.azure.resourcemanager.datafactory.models.BlobEventsTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobEventsTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobEventsTrigger model = BinaryData.fromString( - "{\"type\":\"BlobEventsTrigger\",\"typeProperties\":{\"blobPathBeginsWith\":\"suqap\",\"blobPathEndsWith\":\"dgrbcltfkyq\",\"ignoreEmptyBlobs\":true,\"events\":[\"Microsoft.Storage.BlobDeleted\",\"Microsoft.Storage.BlobDeleted\"],\"scope\":\"kc\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"txty\",\"name\":\"pmfpbodswgnglmll\"},\"parameters\":{\"efapouwsynsbdndi\":\"dataxslccuysc\",\"ggvhcoaoetitkt\":\"datadlehjzvpdwy\"}}],\"description\":\"irambfm\",\"runtimeState\":\"Started\",\"annotations\":[\"datalubqtfcupjmwtemi\",\"dataujiqmksafjhtl\"],\"\":{\"qnyvufvzr\":\"dataghtsfppjunkhxth\",\"qqetasijiaqqwomk\":\"dataaphepcehe\",\"mjmp\":\"datacmwqfdhgpmvlfmvq\"}}") - .toObject(BlobEventsTrigger.class); - Assertions.assertEquals("irambfm", model.description()); - Assertions.assertEquals("txty", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("pmfpbodswgnglmll", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("suqap", model.blobPathBeginsWith()); - Assertions.assertEquals("dgrbcltfkyq", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("kc", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTrigger model = new BlobEventsTrigger().withDescription("irambfm") - .withAnnotations(Arrays.asList("datalubqtfcupjmwtemi", "dataujiqmksafjhtl")) - .withPipelines(Arrays.asList(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("txty").withName("pmfpbodswgnglmll")) - .withParameters(mapOf("efapouwsynsbdndi", "dataxslccuysc", "ggvhcoaoetitkt", "datadlehjzvpdwy")))) - .withBlobPathBeginsWith("suqap") - .withBlobPathEndsWith("dgrbcltfkyq") - .withIgnoreEmptyBlobs(true) - .withEvents(Arrays.asList(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, - BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED)) - .withScope("kc"); - model = BinaryData.fromObject(model).toObject(BlobEventsTrigger.class); - Assertions.assertEquals("irambfm", model.description()); - Assertions.assertEquals("txty", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("pmfpbodswgnglmll", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("suqap", model.blobPathBeginsWith()); - Assertions.assertEquals("dgrbcltfkyq", model.blobPathEndsWith()); - Assertions.assertEquals(true, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("kc", 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 2b41ff3221a7..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\":\"zxbafscdp\",\"blobPathEndsWith\":\"porjhubzkzjaz\",\"ignoreEmptyBlobs\":false,\"events\":[\"Microsoft.Storage.BlobDeleted\"],\"scope\":\"xqtcnyhs\"}") - .toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("zxbafscdp", model.blobPathBeginsWith()); - Assertions.assertEquals("porjhubzkzjaz", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("xqtcnyhs", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobEventsTriggerTypeProperties model - = new BlobEventsTriggerTypeProperties().withBlobPathBeginsWith("zxbafscdp") - .withBlobPathEndsWith("porjhubzkzjaz") - .withIgnoreEmptyBlobs(false) - .withEvents(Arrays.asList(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED)) - .withScope("xqtcnyhs"); - model = BinaryData.fromObject(model).toObject(BlobEventsTriggerTypeProperties.class); - Assertions.assertEquals("zxbafscdp", model.blobPathBeginsWith()); - Assertions.assertEquals("porjhubzkzjaz", model.blobPathEndsWith()); - Assertions.assertEquals(false, model.ignoreEmptyBlobs()); - Assertions.assertEquals(BlobEventTypes.MICROSOFT_STORAGE_BLOB_DELETED, model.events().get(0)); - Assertions.assertEquals("xqtcnyhs", 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 df206270cb90..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\":\"BlobSink\",\"blobWriterOverwriteFiles\":\"datadjxbjqiab\",\"blobWriterDateTimeFormat\":\"dataevvowiypyljzkx\",\"blobWriterAddHeader\":\"datafyv\",\"copyBehavior\":\"dataftaq\",\"metadata\":[{\"name\":\"datajlhmneykxe\",\"value\":\"datamta\"}],\"writeBatchSize\":\"datar\",\"writeBatchTimeout\":\"datazpxoqegerxmlfnu\",\"sinkRetryCount\":\"datamyr\",\"sinkRetryWait\":\"datatdkpoxzwgrsnit\",\"maxConcurrentConnections\":\"datacaehjhwkl\",\"disableMetricsCollection\":\"datazqqgypan\",\"\":{\"ytk\":\"databngojnaks\",\"ksormfhru\":\"datatfoaa\",\"aupjmjig\":\"datawxmnrdfjobhrvon\"}}") - .toObject(BlobSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSink model = new BlobSink().withWriteBatchSize("datar") - .withWriteBatchTimeout("datazpxoqegerxmlfnu") - .withSinkRetryCount("datamyr") - .withSinkRetryWait("datatdkpoxzwgrsnit") - .withMaxConcurrentConnections("datacaehjhwkl") - .withDisableMetricsCollection("datazqqgypan") - .withBlobWriterOverwriteFiles("datadjxbjqiab") - .withBlobWriterDateTimeFormat("dataevvowiypyljzkx") - .withBlobWriterAddHeader("datafyv") - .withCopyBehavior("dataftaq") - .withMetadata(Arrays.asList(new MetadataItem().withName("datajlhmneykxe").withValue("datamta"))); - 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 54bbd4f160c4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.BlobSource; - -public final class BlobSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobSource model = BinaryData.fromString( - "{\"type\":\"BlobSource\",\"treatEmptyAsNull\":\"datakiw\",\"skipHeaderLineCount\":\"dataplqnilozf\",\"recursive\":\"datavsf\",\"sourceRetryCount\":\"datacarfdmlie\",\"sourceRetryWait\":\"datawocufcshqfc\",\"maxConcurrentConnections\":\"datanxfof\",\"disableMetricsCollection\":\"datadroqktegi\",\"\":{\"lzvgjme\":\"datazctqbvn\",\"yislepdb\":\"dataqoy\",\"pfnumpyy\":\"dataiklnt\",\"bmjbmtxbi\":\"datab\"}}") - .toObject(BlobSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobSource model = new BlobSource().withSourceRetryCount("datacarfdmlie") - .withSourceRetryWait("datawocufcshqfc") - .withMaxConcurrentConnections("datanxfof") - .withDisableMetricsCollection("datadroqktegi") - .withTreatEmptyAsNull("datakiw") - .withSkipHeaderLineCount("dataplqnilozf") - .withRecursive("datavsf"); - 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 01a61ae74805..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTests.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.BlobTrigger; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BlobTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobTrigger model = BinaryData.fromString( - "{\"type\":\"BlobTrigger\",\"typeProperties\":{\"folderPath\":\"awtdsnvxhxk\",\"maxConcurrency\":1755716093,\"linkedService\":{\"referenceName\":\"ec\",\"parameters\":{\"zxsdbfbkqi\":\"dataffglwmkmbxusnxlq\",\"ngrdu\":\"dataehxmztf\",\"zhpbjhhuimgdfoha\":\"dataozdzbhtfmgpio\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"tfavmdp\",\"name\":\"l\"},\"parameters\":{\"jwlrits\":\"datawewognpuupaqjerq\",\"tjc\":\"datauxregfbffkzpfjmj\"}},{\"pipelineReference\":{\"referenceName\":\"gljrlrkv\",\"name\":\"n\"},\"parameters\":{\"svoimdgrfppek\":\"datammpu\",\"mwit\":\"dataeomiov\",\"tshcssliep\":\"dataihwlpzdqggghwxpg\",\"wx\":\"datapphfezzg\"}},{\"pipelineReference\":{\"referenceName\":\"kpo\",\"name\":\"zgvtjrobowhcvssm\"},\"parameters\":{\"mu\":\"datadstlxrg\",\"ulwvezthgwqqtb\":\"datahxoldmhypptfpp\"}}],\"description\":\"kyipzehitdq\",\"runtimeState\":\"Stopped\",\"annotations\":[\"dataua\"],\"\":{\"blkcvkmedrkol\":\"datatgpz\",\"afvks\":\"datanebn\",\"hivw\":\"datajdbdjxvcxepjfxcm\",\"lirbvqkbxgzepiny\":\"datamtret\"}}") - .toObject(BlobTrigger.class); - Assertions.assertEquals("kyipzehitdq", model.description()); - Assertions.assertEquals("tfavmdp", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("l", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("awtdsnvxhxk", model.folderPath()); - Assertions.assertEquals(1755716093, model.maxConcurrency()); - Assertions.assertEquals("ec", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTrigger model = new BlobTrigger().withDescription("kyipzehitdq") - .withAnnotations(Arrays.asList("dataua")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("tfavmdp").withName("l")) - .withParameters(mapOf("jwlrits", "datawewognpuupaqjerq", "tjc", "datauxregfbffkzpfjmj")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("gljrlrkv").withName("n")) - .withParameters(mapOf("svoimdgrfppek", "datammpu", "mwit", "dataeomiov", "tshcssliep", - "dataihwlpzdqggghwxpg", "wx", "datapphfezzg")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("kpo").withName("zgvtjrobowhcvssm")) - .withParameters(mapOf("mu", "datadstlxrg", "ulwvezthgwqqtb", "datahxoldmhypptfpp")))) - .withFolderPath("awtdsnvxhxk") - .withMaxConcurrency(1755716093) - .withLinkedService(new LinkedServiceReference().withReferenceName("ec") - .withParameters(mapOf("zxsdbfbkqi", "dataffglwmkmbxusnxlq", "ngrdu", "dataehxmztf", "zhpbjhhuimgdfoha", - "dataozdzbhtfmgpio"))); - model = BinaryData.fromObject(model).toObject(BlobTrigger.class); - Assertions.assertEquals("kyipzehitdq", model.description()); - Assertions.assertEquals("tfavmdp", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("l", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("awtdsnvxhxk", model.folderPath()); - Assertions.assertEquals(1755716093, model.maxConcurrency()); - Assertions.assertEquals("ec", 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 ed4ac923baee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/BlobTriggerTypePropertiesTests.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.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\":\"rs\",\"maxConcurrency\":1591447033,\"linkedService\":{\"referenceName\":\"hrzpyxmfip\",\"parameters\":{\"wfxssxarxvft\":\"datalfp\"}}}") - .toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("rs", model.folderPath()); - Assertions.assertEquals(1591447033, model.maxConcurrency()); - Assertions.assertEquals("hrzpyxmfip", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobTriggerTypeProperties model = new BlobTriggerTypeProperties().withFolderPath("rs") - .withMaxConcurrency(1591447033) - .withLinkedService(new LinkedServiceReference().withReferenceName("hrzpyxmfip") - .withParameters(mapOf("wfxssxarxvft", "datalfp"))); - model = BinaryData.fromObject(model).toObject(BlobTriggerTypeProperties.class); - Assertions.assertEquals("rs", model.folderPath()); - Assertions.assertEquals(1591447033, model.maxConcurrency()); - Assertions.assertEquals("hrzpyxmfip", 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 269f752ff00b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CassandraSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CassandraSource; -import com.azure.resourcemanager.datafactory.models.CassandraSourceReadConsistencyLevels; -import org.junit.jupiter.api.Assertions; - -public final class CassandraSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CassandraSource model = BinaryData.fromString( - "{\"type\":\"CassandraSource\",\"query\":\"dataq\",\"consistencyLevel\":\"LOCAL_QUORUM\",\"queryTimeout\":\"dataagsxhzherv\",\"additionalColumns\":\"dataibrolqxloed\",\"sourceRetryCount\":\"datarvfrfsyqb\",\"sourceRetryWait\":\"datawujwowthvuepszzn\",\"maxConcurrentConnections\":\"datajnsp\",\"disableMetricsCollection\":\"dataqo\",\"\":{\"wivvnmavf\":\"datatqt\"}}") - .toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.LOCAL_QUORUM, model.consistencyLevel()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CassandraSource model = new CassandraSource().withSourceRetryCount("datarvfrfsyqb") - .withSourceRetryWait("datawujwowthvuepszzn") - .withMaxConcurrentConnections("datajnsp") - .withDisableMetricsCollection("dataqo") - .withQueryTimeout("dataagsxhzherv") - .withAdditionalColumns("dataibrolqxloed") - .withQuery("dataq") - .withConsistencyLevel(CassandraSourceReadConsistencyLevels.LOCAL_QUORUM); - model = BinaryData.fromObject(model).toObject(CassandraSource.class); - Assertions.assertEquals(CassandraSourceReadConsistencyLevels.LOCAL_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 cfb577e92a08..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ChainingTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChainingTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChainingTrigger model = BinaryData.fromString( - "{\"type\":\"ChainingTrigger\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"snqktbgu\",\"name\":\"cr\"},\"parameters\":{\"jmylrtnzyosdvk\":\"dataupouxergclmqkuf\",\"uligunwyf\":\"dataezee\",\"wxzxroht\":\"dataucvwz\"}},\"typeProperties\":{\"dependsOn\":[{\"referenceName\":\"widsp\",\"name\":\"xdeaisk\"}],\"runDimension\":\"cmcqslngmsip\"},\"description\":\"jn\",\"runtimeState\":\"Started\",\"annotations\":[\"datajdcxa\"],\"\":{\"ahxphuplfopqgc\":\"dataiyfpfa\",\"ez\":\"datadntzfjldnvfp\"}}") - .toObject(ChainingTrigger.class); - Assertions.assertEquals("jn", model.description()); - Assertions.assertEquals("snqktbgu", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("cr", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("widsp", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("xdeaisk", model.dependsOn().get(0).name()); - Assertions.assertEquals("cmcqslngmsip", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTrigger model - = new ChainingTrigger().withDescription("jn") - .withAnnotations(Arrays.asList("datajdcxa")) - .withPipeline(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("snqktbgu").withName("cr")) - .withParameters(mapOf("jmylrtnzyosdvk", "dataupouxergclmqkuf", "uligunwyf", "dataezee", "wxzxroht", - "dataucvwz"))) - .withDependsOn(Arrays.asList(new PipelineReference().withReferenceName("widsp").withName("xdeaisk"))) - .withRunDimension("cmcqslngmsip"); - model = BinaryData.fromObject(model).toObject(ChainingTrigger.class); - Assertions.assertEquals("jn", model.description()); - Assertions.assertEquals("snqktbgu", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("cr", model.pipeline().pipelineReference().name()); - Assertions.assertEquals("widsp", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("xdeaisk", model.dependsOn().get(0).name()); - Assertions.assertEquals("cmcqslngmsip", 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 2dc1b28f6421..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChainingTriggerTypePropertiesTests.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.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\":\"y\",\"name\":\"ofhinehh\"},{\"referenceName\":\"rbgmxmvxbaaznu\",\"name\":\"wbnngcdt\"}],\"runDimension\":\"xy\"}") - .toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("y", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("ofhinehh", model.dependsOn().get(0).name()); - Assertions.assertEquals("xy", model.runDimension()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChainingTriggerTypeProperties model = new ChainingTriggerTypeProperties() - .withDependsOn(Arrays.asList(new PipelineReference().withReferenceName("y").withName("ofhinehh"), - new PipelineReference().withReferenceName("rbgmxmvxbaaznu").withName("wbnngcdt"))) - .withRunDimension("xy"); - model = BinaryData.fromObject(model).toObject(ChainingTriggerTypeProperties.class); - Assertions.assertEquals("y", model.dependsOn().get(0).referenceName()); - Assertions.assertEquals("ofhinehh", model.dependsOn().get(0).name()); - Assertions.assertEquals("xy", model.runDimension()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java deleted file mode 100644 index 5feab0015b8e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureFolderTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureFolder model - = BinaryData.fromString("{\"name\":\"yovwzdbpqv\"}").toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("yovwzdbpqv", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureFolder model = new ChangeDataCaptureFolder().withName("yovwzdbpqv"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureFolder.class); - Assertions.assertEquals("yovwzdbpqv", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java deleted file mode 100644 index 5f911fb14dc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureListResponseTests.java +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureListResponse; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"folder\":{\"name\":\"hpv\"},\"description\":\"mslclblyjxlt\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datadrtc\",\"dataukdqkkyihztg\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datadoychillcecfeh\",\"datawaoaguhi\"]},{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datacsjvhrwef\"]}],\"policy\":{\"mode\":\"wqejpmvsse\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":18531700}},\"allowVNetOverride\":true,\"status\":\"tczhupeuknijd\"},\"name\":\"yespydjfbocyv\",\"type\":\"ulrtywikdmh\",\"etag\":\"kuflgbh\",\"\":{\"f\":\"dataacdixmx\",\"oeoq\":\"datasryjqgdkfno\",\"jchnta\":\"datavjhvefgwbm\"},\"id\":\"ay\"},{\"properties\":{\"folder\":{\"name\":\"ulpzealb\"},\"description\":\"kyojwyvfk\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"type\":\"linkedservicetype\"}},{\"sourceEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datacubiwsdr\",\"datapxqwo\",\"dataiffjxcjrm\",\"datauabwibvjogjo\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"databamwineo\",\"datavfkakpold\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{}],\"relationships\":[\"datahzjkn\",\"datauxgvttxpnr\",\"datapzaamrdixtreki\"]}],\"policy\":{\"mode\":\"wyskbruffgll\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":1275101011}},\"allowVNetOverride\":false,\"status\":\"rpq\"},\"name\":\"mblcouqehbhbcds\",\"type\":\"ryrando\",\"etag\":\"mbltoo\",\"\":{\"aolnjpnnbmjk\":\"datafqlwxldykalsy\",\"nadzyq\":\"dataibjgsjjxxahm\"},\"id\":\"xyivpinbm\"},{\"properties\":{\"folder\":{\"name\":\"jijkgqxnhmbke\"},\"description\":\"jauj\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"dataawxwfek\",\"dataumrrqmbzm\",\"datakratbnxwbj\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"datakso\",\"datadgo\",\"dataewijymrhbguz\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datazhhh\",\"datao\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"type\":\"linkedservicetype\"},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"datacyar\",\"dataroohguabzogh\",\"datat\"]}],\"policy\":{\"mode\":\"yczhco\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":953952910}},\"allowVNetOverride\":true,\"status\":\"ttjzcfyjzpt\"},\"name\":\"lohap\",\"type\":\"nfszpyglqdhmrjz\",\"etag\":\"l\",\"\":{\"ypsjoq\":\"datajb\"},\"id\":\"enky\"}],\"nextLink\":\"qzvs\"}") - .toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("ay", model.value().get(0).id()); - Assertions.assertEquals("hpv", model.value().get(0).folder().name()); - Assertions.assertEquals("mslclblyjxlt", model.value().get(0).description()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals("wqejpmvsse", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(18531700, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("tczhupeuknijd", model.value().get(0).status()); - Assertions.assertEquals("qzvs", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureListResponse model = new ChangeDataCaptureListResponse() - .withValue(Arrays.asList( - new ChangeDataCaptureResourceInner().withId("ay") - .withFolder(new ChangeDataCaptureFolder().withName("hpv")) - .withDescription("mslclblyjxlt") - .withSourceConnectionsInfo(Arrays.asList( - new MapperSourceConnectionsInfo().withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo(Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("datadrtc", "dataukdqkkyihztg")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datadoychillcecfeh", "datawaoaguhi")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datacsjvhrwef")))) - .withPolicy(new MapperPolicy().withMode("wqejpmvsse") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(18531700))) - .withAllowVNetOverride(true) - .withStatus("tczhupeuknijd") - .withAdditionalProperties(mapOf("name", "yespydjfbocyv", "etag", "kuflgbh", "type", "ulrtywikdmh")), - new ChangeDataCaptureResourceInner().withId("xyivpinbm") - .withFolder(new ChangeDataCaptureFolder().withName("ulpzealb")) - .withDescription("kyojwyvfk") - .withSourceConnectionsInfo(Arrays.asList( - new MapperSourceConnectionsInfo().withSourceEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo(Arrays.asList(new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping())) - .withRelationships( - Arrays.asList("datacubiwsdr", "datapxqwo", "dataiffjxcjrm", "datauabwibvjogjo")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("databamwineo", "datavfkakpold")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), - new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping())) - .withRelationships(Arrays.asList("datahzjkn", "datauxgvttxpnr", "datapzaamrdixtreki")))) - .withPolicy( - new MapperPolicy().withMode("wyskbruffgll") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.HOUR) - .withInterval(1275101011))) - .withAllowVNetOverride(false) - .withStatus("rpq") - .withAdditionalProperties(mapOf("name", "mblcouqehbhbcds", "etag", "mbltoo", "type", "ryrando")), - new ChangeDataCaptureResourceInner().withId("enky") - .withFolder(new ChangeDataCaptureFolder().withName("jijkgqxnhmbke")) - .withDescription("jauj") - .withSourceConnectionsInfo(Arrays.asList(new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)))) - .withTargetConnectionsInfo(Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("dataawxwfek", "dataumrrqmbzm", "datakratbnxwbj")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping())) - .withRelationships(Arrays.asList("datakso", "datadgo", "dataewijymrhbguz")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datazhhh", "datao")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable(), new MapperTable(), - new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection().withType(ConnectionType.LINKEDSERVICETYPE)) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping(), - new DataMapperMapping(), new DataMapperMapping())) - .withRelationships(Arrays.asList("datacyar", "dataroohguabzogh", "datat")))) - .withPolicy( - new MapperPolicy().withMode("yczhco") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND) - .withInterval(953952910))) - .withAllowVNetOverride(true) - .withStatus("ttjzcfyjzpt") - .withAdditionalProperties(mapOf("name", "lohap", "etag", "l", "type", "nfszpyglqdhmrjz")))) - .withNextLink("qzvs"); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureListResponse.class); - Assertions.assertEquals("ay", model.value().get(0).id()); - Assertions.assertEquals("hpv", model.value().get(0).folder().name()); - Assertions.assertEquals("mslclblyjxlt", model.value().get(0).description()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.value().get(0).targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals("wqejpmvsse", model.value().get(0).policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.value().get(0).policy().recurrence().frequency()); - Assertions.assertEquals(18531700, model.value().get(0).policy().recurrence().interval()); - Assertions.assertEquals(true, model.value().get(0).allowVNetOverride()); - Assertions.assertEquals("tczhupeuknijd", model.value().get(0).status()); - Assertions.assertEquals("qzvs", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java deleted file mode 100644 index 3669570745b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureResourceInnerTests.java +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCaptureResourceInner model = BinaryData.fromString( - "{\"properties\":{\"folder\":{\"name\":\"xj\"},\"description\":\"gcm\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"hhqxuwyvcacoyviv\",\"properties\":{}},{\"name\":\"zusjsz\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"mnlzijiufehgmvf\",\"parameters\":{\"rlniyl\":\"datayvqkxr\"}},\"linkedServiceType\":\"yfw\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{\"name\":\"hghmupgxyj\",\"properties\":{}},{\"name\":\"xabb\",\"properties\":{}},{\"name\":\"tabenbbk\",\"properties\":{}},{\"name\":\"xzu\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ddwwnlzafwxudgnh\",\"parameters\":{\"wgpbemeluclv\":\"datakrtalvn\",\"xhqf\":\"datajjukyrdnqodxah\",\"avsczuejdtxp\":\"dataqnvzoqgyipemch\"}},\"linkedServiceType\":\"ghwzhomewjjstli\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}},{\"sourceEntities\":[{\"name\":\"ancz\",\"properties\":{}},{\"name\":\"drrslblxydk\",\"properties\":{}},{\"name\":\"vvbxiwkgfbqljnq\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"h\",\"parameters\":{\"fawey\":\"datakulehurqlrq\",\"vjuqdbrxmrgchb\":\"datarkphyjdxr\",\"j\":\"datapxkiyf\",\"ycblevpmcl\":\"databajbuscgduusi\"}},\"linkedServiceType\":\"yxkyxlz\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{\"name\":\"afhbzf\",\"properties\":{}},{\"name\":\"wmbjlzqsczpg\",\"properties\":{}},{\"name\":\"napfdqwowftpt\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"tkschgcgqyhl\",\"parameters\":{\"tj\":\"datayqrhvyeld\",\"kukjtasb\":\"datadkwisw\"}},\"linkedServiceType\":\"ispkxkdtx\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"nvgmmbugtywa\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"qkueatgroesho\",\"parameters\":{\"oytehqpuvjm\":\"datacbyfqxkf\",\"dwckygroe\":\"dataqm\"}},\"linkedServiceType\":\"ndljdjuskbr\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"sfaq\",\"sourceEntityName\":\"pl\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datahwddkvbxgkq\"},{\"targetEntityName\":\"ybwptda\",\"sourceEntityName\":\"rvv\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataymtpo\"},{\"targetEntityName\":\"enazerohzrsqals\",\"sourceEntityName\":\"dnwqapfg\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datavessm\"}],\"relationships\":[\"datakuui\"]},{\"targetEntities\":[{\"name\":\"qctekvalb\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"qvqyvweht\",\"parameters\":{\"usxivzrrryvei\":\"dataxhzzyse\",\"yzatvfuzkaft\":\"dataipsk\",\"syeipqd\":\"datavvruxwi\"}},\"linkedServiceType\":\"jtgrqgdgkkileplk\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"baedorvvmqfl\",\"sourceEntityName\":\"gbdg\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataxdgd\"},{\"targetEntityName\":\"abgdexj\",\"sourceEntityName\":\"vjsaqwotm\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datacolsrsxaptefhex\"},{\"targetEntityName\":\"jokjl\",\"sourceEntityName\":\"hv\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"dataek\"},{\"targetEntityName\":\"eksnbksdqhjvyk\",\"sourceEntityName\":\"eslk\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datatcpoqma\"}],\"relationships\":[\"dataqjwgoknlej\",\"datajkxyb\"]},{\"targetEntities\":[{\"name\":\"kjbztensvkzykj\",\"properties\":{}},{\"name\":\"nsxfwu\",\"properties\":{}},{\"name\":\"dpkupnqrmgjf\",\"properties\":{}},{\"name\":\"uwxeoiojfizf\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"zwfbcyaykmmfzs\",\"parameters\":{\"bjazejwwviy\":\"dataxrzxmdewsrsxkrp\",\"suhbrnn\":\"datay\",\"zycyqiqyhg\":\"datajxsqwjhqkbiwetp\",\"zlex\":\"datase\"}},\"linkedServiceType\":\"fledynojpziu\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"hqsycljselp\",\"sourceEntityName\":\"bafvafhlbylcc\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datarhyzdf\"},{\"targetEntityName\":\"sofpltd\",\"sourceEntityName\":\"airrhvhfnracw\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datag\"}],\"relationships\":[\"datajwouhda\",\"datas\",\"datagrbjbxsjybvitvqk\"]},{\"targetEntities\":[{\"name\":\"nu\",\"properties\":{}}],\"connection\":{\"linkedService\":{\"referenceName\":\"m\",\"parameters\":{\"zfnkfexlvxno\":\"datach\",\"knaqlnuwig\":\"datakizvoa\",\"kwph\":\"datayxl\"}},\"linkedServiceType\":\"zc\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]},\"dataMapperMappings\":[{\"targetEntityName\":\"ke\",\"sourceEntityName\":\"onwivkcqhrxhxkn\",\"sourceConnectionReference\":{},\"attributeMappingInfo\":{},\"sourceDenormalizeInfo\":\"datammkyu\"}],\"relationships\":[\"dataubyqj\",\"datakakfqfr\",\"dataem\"]}],\"policy\":{\"mode\":\"ldudxjascowv\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1348862039}},\"allowVNetOverride\":false,\"status\":\"lkksnmgzvyfi\"},\"name\":\"kzuqnwsith\",\"type\":\"olyahluqwqulsut\",\"etag\":\"bhxykfhyqezvqqug\",\"\":{\"ve\":\"datatb\",\"hreagk\":\"datareuquowtljvf\",\"dgglmepjpfs\":\"datayxvrqtvbczsul\",\"fpgylkve\":\"dataykgsangpszng\"},\"id\":\"ujcngo\"}") - .toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("ujcngo", model.id()); - Assertions.assertEquals("xj", model.folder().name()); - Assertions.assertEquals("gcm", model.description()); - Assertions.assertEquals("hhqxuwyvcacoyviv", - model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("mnlzijiufehgmvf", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("yfw", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nvgmmbugtywa", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("qkueatgroesho", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ndljdjuskbr", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("sfaq", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("pl", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("ldudxjascowv", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1348862039, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("lkksnmgzvyfi", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCaptureResourceInner model - = new ChangeDataCaptureResourceInner().withId("ujcngo") - .withFolder(new ChangeDataCaptureFolder().withName("xj")) - .withDescription("gcm") - .withSourceConnectionsInfo( - Arrays.asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("hhqxuwyvcacoyviv"), - new MapperTable().withName("zusjsz"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("mnlzijiufehgmvf") - .withParameters(mapOf("rlniyl", "datayvqkxr"))) - .withLinkedServiceType("yfw") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("hghmupgxyj"), - new MapperTable().withName("xabb"), new MapperTable().withName("tabenbbk"), - new MapperTable().withName("xzu"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ddwwnlzafwxudgnh") - .withParameters(mapOf("wgpbemeluclv", "datakrtalvn", "xhqf", "datajjukyrdnqodxah", - "avsczuejdtxp", "dataqnvzoqgyipemch"))) - .withLinkedServiceType("ghwzhomewjjstli") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("ancz"), - new MapperTable().withName("drrslblxydk"), - new MapperTable().withName("vvbxiwkgfbqljnq"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("h") - .withParameters(mapOf("fawey", "datakulehurqlrq", "vjuqdbrxmrgchb", "datarkphyjdxr", - "j", "datapxkiyf", "ycblevpmcl", "databajbuscgduusi"))) - .withLinkedServiceType("yxkyxlz") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties()))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("afhbzf"), - new MapperTable().withName("wmbjlzqsczpg"), - new MapperTable().withName("napfdqwowftpt"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("tkschgcgqyhl") - .withParameters(mapOf("tj", "datayqrhvyeld", "kukjtasb", "datadkwisw"))) - .withLinkedServiceType("ispkxkdtx") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo( - Arrays - .asList( - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("nvgmmbugtywa"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("qkueatgroesho") - .withParameters(mapOf("oytehqpuvjm", "datacbyfqxkf", "dwckygroe", "dataqm"))) - .withLinkedServiceType("ndljdjuskbr") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList( - new DataMapperMapping().withTargetEntityName("sfaq") - .withSourceEntityName("pl") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datahwddkvbxgkq"), - new DataMapperMapping().withTargetEntityName("ybwptda") - .withSourceEntityName("rvv") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataymtpo"), - new DataMapperMapping().withTargetEntityName("enazerohzrsqals") - .withSourceEntityName("dnwqapfg") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datavessm"))) - .withRelationships(Arrays.asList("datakuui")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("qctekvalb"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("qvqyvweht") - .withParameters(mapOf("usxivzrrryvei", "dataxhzzyse", "yzatvfuzkaft", - "dataipsk", "syeipqd", "datavvruxwi"))) - .withLinkedServiceType("jtgrqgdgkkileplk") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays - .asList(new DataMapperMapping().withTargetEntityName("baedorvvmqfl") - .withSourceEntityName("gbdg") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataxdgd"), - new DataMapperMapping().withTargetEntityName("abgdexj") - .withSourceEntityName("vjsaqwotm") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datacolsrsxaptefhex"), - new DataMapperMapping().withTargetEntityName("jokjl") - .withSourceEntityName("hv") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("dataek"), - new DataMapperMapping().withTargetEntityName("eksnbksdqhjvyk") - .withSourceEntityName("eslk") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datatcpoqma"))) - .withRelationships(Arrays.asList("dataqjwgoknlej", "datajkxyb")), - new MapperTargetConnectionsInfo() - .withTargetEntities( - Arrays.asList(new MapperTable().withName("kjbztensvkzykj"), - new MapperTable().withName("nsxfwu"), - new MapperTable().withName("dpkupnqrmgjf"), - new MapperTable().withName("uwxeoiojfizf"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("zwfbcyaykmmfzs") - .withParameters(mapOf("bjazejwwviy", "dataxrzxmdewsrsxkrp", "suhbrnn", "datay", - "zycyqiqyhg", "datajxsqwjhqkbiwetp", "zlex", "datase"))) - .withLinkedServiceType("fledynojpziu") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList( - new DataMapperMapping().withTargetEntityName("hqsycljselp") - .withSourceEntityName("bafvafhlbylcc") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datarhyzdf"), - new DataMapperMapping().withTargetEntityName("sofpltd") - .withSourceEntityName("airrhvhfnracw") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datag"))) - .withRelationships(Arrays.asList("datajwouhda", "datas", "datagrbjbxsjybvitvqk")), - new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList(new MapperTable().withName("nu"))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("m") - .withParameters(mapOf("zfnkfexlvxno", "datach", "knaqlnuwig", "datakizvoa", - "kwph", "datayxl"))) - .withLinkedServiceType("zc") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping().withTargetEntityName("ke") - .withSourceEntityName("onwivkcqhrxhxkn") - .withSourceConnectionReference(new MapperConnectionReference()) - .withAttributeMappingInfo(new MapperAttributeMappings()) - .withSourceDenormalizeInfo("datammkyu"))) - .withRelationships(Arrays.asList("dataubyqj", "datakakfqfr", "dataem")))) - .withPolicy(new MapperPolicy().withMode("ldudxjascowv") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(1348862039))) - .withAllowVNetOverride(false) - .withStatus("lkksnmgzvyfi") - .withAdditionalProperties( - mapOf("name", "kzuqnwsith", "etag", "bhxykfhyqezvqqug", "type", "olyahluqwqulsut")); - model = BinaryData.fromObject(model).toObject(ChangeDataCaptureResourceInner.class); - Assertions.assertEquals("ujcngo", model.id()); - Assertions.assertEquals("xj", model.folder().name()); - Assertions.assertEquals("gcm", model.description()); - Assertions.assertEquals("hhqxuwyvcacoyviv", - model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("mnlzijiufehgmvf", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("yfw", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nvgmmbugtywa", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("qkueatgroesho", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ndljdjuskbr", model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("sfaq", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("pl", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("ldudxjascowv", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(1348862039, model.policy().recurrence().interval()); - Assertions.assertEquals(false, model.allowVNetOverride()); - Assertions.assertEquals("lkksnmgzvyfi", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java deleted file mode 100644 index ed857f7fe840..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCaptureTests.java +++ /dev/null @@ -1,291 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCapture; -import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ChangeDataCaptureTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeDataCapture model = BinaryData.fromString( - "{\"folder\":{\"name\":\"edmzrgjfoknub\"},\"description\":\"itpkpztrgdg\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{\"name\":\"raswugyxpqit\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"skbuhzaca\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"qcujpd\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"jkmvbi\",\"properties\":{\"schema\":[{},{},{},{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"ovjufycsjmlbe\",\"parameters\":{\"hortu\":\"datajiriuxeg\"}},\"linkedServiceType\":\"wlpjfelqerppt\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"nhii\",\"value\":\"dataalwcjgckbb\"},{\"name\":\"cgzpraoxnyu\",\"value\":\"dataa\"},{\"name\":\"gftipwc\",\"value\":\"datayubhiqdx\"}]}},{\"sourceEntities\":[{\"name\":\"pnuhzafccnu\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"bui\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"crkdlbn\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{},{},{}]}},{\"name\":\"yhzlwxaeaovurexd\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"derzmwnto\",\"parameters\":{\"jiuazjc\":\"datattmvmmagoaqylkjz\",\"tkrlgjmtbd\":\"datamxitpfinzcpd\",\"mpheqdur\":\"datavcqguefzh\",\"kyeclcdigpta\":\"datalyujlfyoump\"}},\"linkedServiceType\":\"rzmq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"oclxiut\",\"value\":\"datacyzyzjdnrqjbt\"}]}},{\"sourceEntities\":[{\"name\":\"oqa\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{}]}},{\"name\":\"w\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"bqamteuliyslpk\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"xe\",\"parameters\":{\"iijq\":\"datawbormcqmi\"}},\"linkedServiceType\":\"zfboj\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"qwixvcpwnk\",\"value\":\"datawzwofalickduo\"},{\"name\":\"tamtyv\",\"value\":\"datanxrwzawnvs\"},{\"name\":\"fhzag\",\"value\":\"datavhycvdimwrzregzg\"},{\"name\":\"futrwpweryekzkd\",\"value\":\"dataeotta\"}]}},{\"sourceEntities\":[{\"name\":\"sxwwhnhjtf\",\"properties\":{\"schema\":[{},{}],\"dslConnectorProperties\":[{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"jpnwynudql\",\"parameters\":{\"ehuxiqhzlraym\":\"dataauzpjlx\",\"dsajrednwyysh\":\"datazxlskihmxr\"}},\"linkedServiceType\":\"w\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"pwzyi\",\"value\":\"datakgwl\"},{\"name\":\"eqipxgzdy\",\"value\":\"datasfayorpravkjoges\"},{\"name\":\"bnsmjkwynqxaek\",\"value\":\"dataykvwjtqpkevmyltj\"},{\"name\":\"spxklu\",\"value\":\"dataclf\"}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{\"name\":\"noytzposewxigp\",\"properties\":{\"schema\":[{}],\"dslConnectorProperties\":[{},{}]}},{\"name\":\"pxvpifdfaif\",\"properties\":{\"schema\":[{},{},{}],\"dslConnectorProperties\":[{},{},{},{}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"beidsz\",\"parameters\":{\"hgygvfltgvd\":\"datatoi\",\"xwetwkdrcyrucpc\":\"datahoynk\",\"zdqumoe\":\"datann\"}},\"linkedServiceType\":\"dnaienhqhskndnel\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"nwf\",\"value\":\"datanniyopetxi\"},{\"name\":\"nrlyxnuc\",\"value\":\"datap\"},{\"name\":\"lkwq\",\"value\":\"datatv\"},{\"name\":\"sdtcjbctvivuzqym\",\"value\":\"dataowog\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"sqhzvbrzcdbanfz\",\"sourceEntityName\":\"scxmxeat\",\"sourceConnectionReference\":{\"connectionName\":\"mwnrdj\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{},{}]},\"sourceDenormalizeInfo\":\"dataomhjrmkuhm\"}],\"relationships\":[\"datajalfihcjmobcanc\",\"dataexxqcwg\",\"dataxf\",\"datavaknokzwjj\"]}],\"policy\":{\"mode\":\"ltixldzyyfytpq\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":104830049}},\"allowVNetOverride\":true,\"status\":\"ivyqlkjuvsmbmsl\"}") - .toObject(ChangeDataCapture.class); - Assertions.assertEquals("edmzrgjfoknub", model.folder().name()); - Assertions.assertEquals("itpkpztrgdg", model.description()); - Assertions.assertEquals("raswugyxpqit", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("ovjufycsjmlbe", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("wlpjfelqerppt", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nhii", - model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("noytzposewxigp", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("beidsz", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("dnaienhqhskndnel", - model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nwf", - model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("sqhzvbrzcdbanfz", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("scxmxeat", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("mwnrdj", - model.targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("ltixldzyyfytpq", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(104830049, model.policy().recurrence().interval()); - Assertions.assertEquals(true, model.allowVNetOverride()); - Assertions.assertEquals("ivyqlkjuvsmbmsl", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeDataCapture model - = new ChangeDataCapture().withFolder(new ChangeDataCaptureFolder().withName("edmzrgjfoknub")) - .withDescription("itpkpztrgdg") - .withSourceConnectionsInfo(Arrays.asList( - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList( - new MapperTable().withName("raswugyxpqit") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("skbuhzaca") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable().withName("qcujpd") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("jkmvbi") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ovjufycsjmlbe") - .withParameters(mapOf("hortu", "datajiriuxeg"))) - .withLinkedServiceType("wlpjfelqerppt") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("nhii").withValue("dataalwcjgckbb"), - new MapperDslConnectorProperties().withName("cgzpraoxnyu").withValue("dataa"), - new MapperDslConnectorProperties().withName("gftipwc").withValue("datayubhiqdx")))), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays.asList( - new MapperTable().withName("pnuhzafccnu") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable() - .withName("bui") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("crkdlbn") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable() - .withName("yhzlwxaeaovurexd") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection().withLinkedService(new LinkedServiceReference() - .withReferenceName("derzmwnto") - .withParameters(mapOf("jiuazjc", "datattmvmmagoaqylkjz", "tkrlgjmtbd", "datamxitpfinzcpd", - "mpheqdur", "datavcqguefzh", "kyeclcdigpta", "datalyujlfyoump"))) - .withLinkedServiceType("rzmq") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("oclxiut") - .withValue("datacyzyzjdnrqjbt")))), - new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList( - new MapperTable().withName("oqa") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties())), - new MapperTable().withName("w") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("bqamteuliyslpk") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("xe") - .withParameters(mapOf("iijq", "datawbormcqmi"))) - .withLinkedServiceType("zfboj") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("qwixvcpwnk") - .withValue("datawzwofalickduo"), - new MapperDslConnectorProperties().withName("tamtyv").withValue("datanxrwzawnvs"), - new MapperDslConnectorProperties().withName("fhzag").withValue("datavhycvdimwrzregzg"), - new MapperDslConnectorProperties().withName("futrwpweryekzkd") - .withValue("dataeotta")))), - new MapperSourceConnectionsInfo() - .withSourceEntities( - Arrays.asList(new MapperTable() - .withName("sxwwhnhjtf") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("jpnwynudql") - .withParameters( - mapOf("ehuxiqhzlraym", "dataauzpjlx", "dsajrednwyysh", "datazxlskihmxr"))) - .withLinkedServiceType("w") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("pwzyi").withValue("datakgwl"), - new MapperDslConnectorProperties().withName("eqipxgzdy") - .withValue("datasfayorpravkjoges"), - new MapperDslConnectorProperties().withName("bnsmjkwynqxaek") - .withValue("dataykvwjtqpkevmyltj"), - new MapperDslConnectorProperties().withName("spxklu").withValue("dataclf")))))) - .withTargetConnectionsInfo( - Arrays - .asList(new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList( - new MapperTable().withName("noytzposewxigp") - .withSchema(Arrays.asList(new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())), - new MapperTable().withName("pxvpifdfaif") - .withSchema(Arrays.asList(new MapperTableSchema(), new MapperTableSchema(), - new MapperTableSchema())) - .withDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties())))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("beidsz") - .withParameters(mapOf("hgygvfltgvd", "datatoi", "xwetwkdrcyrucpc", "datahoynk", - "zdqumoe", "datann"))) - .withLinkedServiceType("dnaienhqhskndnel") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("nwf").withValue("datanniyopetxi"), - new MapperDslConnectorProperties().withName("nrlyxnuc").withValue("datap"), - new MapperDslConnectorProperties().withName("lkwq").withValue("datatv"), - new MapperDslConnectorProperties() - .withName("sdtcjbctvivuzqym") - .withValue("dataowog")))) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping().withTargetEntityName("sqhzvbrzcdbanfz") - .withSourceEntityName("scxmxeat") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("mwnrdj") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings( - Arrays.asList(new MapperAttributeMapping(), new MapperAttributeMapping()))) - .withSourceDenormalizeInfo("dataomhjrmkuhm"))) - .withRelationships( - Arrays.asList("datajalfihcjmobcanc", "dataexxqcwg", "dataxf", "datavaknokzwjj")))) - .withPolicy(new MapperPolicy().withMode("ltixldzyyfytpq") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(104830049))) - .withAllowVNetOverride(true) - .withStatus("ivyqlkjuvsmbmsl"); - model = BinaryData.fromObject(model).toObject(ChangeDataCapture.class); - Assertions.assertEquals("edmzrgjfoknub", model.folder().name()); - Assertions.assertEquals("itpkpztrgdg", model.description()); - Assertions.assertEquals("raswugyxpqit", model.sourceConnectionsInfo().get(0).sourceEntities().get(0).name()); - Assertions.assertEquals("ovjufycsjmlbe", - model.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("wlpjfelqerppt", model.sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nhii", - model.sourceConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("noytzposewxigp", model.targetConnectionsInfo().get(0).targetEntities().get(0).name()); - Assertions.assertEquals("beidsz", - model.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("dnaienhqhskndnel", - model.targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, model.targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("nwf", - model.targetConnectionsInfo().get(0).connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("sqhzvbrzcdbanfz", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("scxmxeat", - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("mwnrdj", - model.targetConnectionsInfo() - .get(0) - .dataMapperMappings() - .get(0) - .sourceConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.targetConnectionsInfo().get(0).dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("ltixldzyyfytpq", model.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, model.policy().recurrence().frequency()); - Assertions.assertEquals(104830049, model.policy().recurrence().interval()); - Assertions.assertEquals(true, model.allowVNetOverride()); - Assertions.assertEquals("ivyqlkjuvsmbmsl", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 29cb4037a9cb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesCreateOrUpdateWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"vb\"},\"description\":\"zkhp\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"vlvosbccxbbr\"},\"linkedServiceType\":\"ssl\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]}},{\"sourceEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"aspglc\"},\"linkedServiceType\":\"raer\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"gchdqtlbnk\"},\"linkedServiceType\":\"yox\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"swgpxhs\"},\"linkedServiceType\":\"bbk\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{},{},{},{}],\"relationships\":[\"dataqyrtbniyspbghnn\",\"datakouvs\",\"datamiq\"]},{\"targetEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"lbriawknncdfc\"},\"linkedServiceType\":\"yulmxonobozg\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"dataz\",\"datawcruczvdjuxijmaw\"]}],\"policy\":{\"mode\":\"mdfwexnjbdgls\",\"recurrence\":{\"frequency\":\"Second\",\"interval\":1811335760}},\"allowVNetOverride\":true,\"status\":\"qekvjwaqjps\"},\"name\":\"pkgvstwdczxgfvev\",\"type\":\"vkfm\",\"etag\":\"kluewthydgzlwbbf\",\"\":{\"zwioxar\":\"dataoywlvkp\",\"bzekrwpwyiyq\":\"dataxhpufvucnqym\",\"vudmps\":\"datarcsekhuzim\",\"tkpewtbyciedxsey\":\"dataqpraqjscnilpv\"},\"id\":\"hrvembit\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ChangeDataCaptureResource response - = manager.changeDataCaptures() - .define("ccaqoiifvind") - .withExistingFactory("aydm", "lpdjtliil") - .withSourceConnectionsInfo( - Arrays - .asList(new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable(), new MapperTable(), new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("iyngupphvo")) - .withLinkedServiceType("ocjsadbuvvpdj") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties(), new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))))) - .withTargetConnectionsInfo( - Arrays - .asList(new MapperTargetConnectionsInfo().withTargetEntities(Arrays.asList(new MapperTable())) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("vz")) - .withLinkedServiceType("dfikduwqkhmabgzc") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList(new MapperDslConnectorProperties(), - new MapperDslConnectorProperties()))) - .withDataMapperMappings(Arrays.asList(new DataMapperMapping(), new DataMapperMapping())) - .withRelationships( - Arrays.asList("datawfnlpjivtzshuzyy", "dataivr", "dataqiijkvops", "datamtxvnelw")))) - .withPolicy(new MapperPolicy().withMode("dm") - .withRecurrence( - new MapperPolicyRecurrence().withFrequency(FrequencyType.SECOND).withInterval(52613163))) - .withFolder(new ChangeDataCaptureFolder().withName("a")) - .withDescription("jrznydcslydhp") - .withAllowVNetOverride(false) - .withStatus("fltuxwfwlf") - .withIfMatch("reqfp") - .create(); - - Assertions.assertEquals("hrvembit", response.id()); - Assertions.assertEquals("vb", response.folder().name()); - Assertions.assertEquals("zkhp", response.description()); - Assertions.assertEquals("vlvosbccxbbr", - response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("ssl", 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("swgpxhs", - response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("bbk", 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("mdfwexnjbdgls", response.policy().mode()); - Assertions.assertEquals(FrequencyType.SECOND, response.policy().recurrence().frequency()); - Assertions.assertEquals(1811335760, response.policy().recurrence().interval()); - Assertions.assertEquals(true, response.allowVNetOverride()); - Assertions.assertEquals("qekvjwaqjps", 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 4edc53f26902..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.changeDataCaptures() - .deleteWithResponse("chiz", "icxlmymncuhqet", "pqcxrwtygbqowrtn", 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 18a1b6e2b059..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesGetWithResponseMockTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"wjowgdwc\"},\"description\":\"yyzmxuelpl\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ldmflngjtltx\"},\"linkedServiceType\":\"byq\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{}]}},{\"sourceEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"ptockgjvflch\"},\"linkedServiceType\":\"b\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"nlsmfqglvflxltng\"},\"linkedServiceType\":\"lpgclo\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"fzcymyb\"},\"linkedServiceType\":\"v\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"databgitkowflc\",\"dataxqwy\"]},{\"targetEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"qqgaysynejdvt\"},\"linkedServiceType\":\"gwxilbazrui\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{},{},{}],\"relationships\":[\"dataslylqzw\",\"datalhxgsjzrifgubpn\",\"dataiwlernch\",\"dataxpsonkku\"]},{\"targetEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"zrng\"},\"linkedServiceType\":\"eunp\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"datawmqgya\",\"datan\",\"dataxwxnnjvodqne\"]}],\"policy\":{\"mode\":\"y\",\"recurrence\":{\"frequency\":\"Minute\",\"interval\":1237768460}},\"allowVNetOverride\":false,\"status\":\"ngbh\"},\"name\":\"tyvwxc\",\"type\":\"hhzjhmxynszadgv\",\"etag\":\"oxmlb\",\"\":{\"ibqnuhr\":\"datasecwsw\",\"gesaolceb\":\"dataiwnb\",\"olfupxhrl\":\"dataditccuzjlcmzgh\",\"lrcrxxkvuzpsoujc\":\"datatknmp\"},\"id\":\"ubpjwwvies\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ChangeDataCaptureResource response = manager.changeDataCaptures() - .getWithResponse("exdwwraim", "kazamidgoyawgps", "kymm", "imbesgi", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ubpjwwvies", response.id()); - Assertions.assertEquals("wjowgdwc", response.folder().name()); - Assertions.assertEquals("yyzmxuelpl", response.description()); - Assertions.assertEquals("ldmflngjtltx", - response.sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("byq", 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("fzcymyb", - response.targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("v", 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("y", response.policy().mode()); - Assertions.assertEquals(FrequencyType.MINUTE, response.policy().recurrence().frequency()); - Assertions.assertEquals(1237768460, response.policy().recurrence().interval()); - Assertions.assertEquals(false, response.allowVNetOverride()); - Assertions.assertEquals("ngbh", 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 b9c1f514a5e2..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"rrm\"},\"description\":\"xjwlhulvyz\",\"sourceConnectionsInfo\":[{\"sourceEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"vzq\"},\"linkedServiceType\":\"dkvldrcx\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{},{}]}},{\"sourceEntities\":[{},{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"qkdtvtpwrmmyao\"},\"linkedServiceType\":\"h\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{}]}}],\"targetConnectionsInfo\":[{\"targetEntities\":[{}],\"connection\":{\"linkedService\":{\"referenceName\":\"evpmtpqdfpgso\"},\"linkedServiceType\":\"xd\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"dataqusg\"]},{\"targetEntities\":[{},{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"qjh\"},\"linkedServiceType\":\"xnocixvr\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{},{},{},{}]},\"dataMapperMappings\":[{}],\"relationships\":[\"datawixtefduqprhz\",\"dataaquhahqt\",\"databbwicteqwjlyn\",\"datarjoydzmbvsl\"]},{\"targetEntities\":[{},{}],\"connection\":{\"linkedService\":{\"referenceName\":\"otozxadk\"},\"linkedServiceType\":\"aptv\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{},{},{}]},\"dataMapperMappings\":[{},{}],\"relationships\":[\"datapypkfvwlzv\"]}],\"policy\":{\"mode\":\"xvspubfkelqzcpts\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":1026057080}},\"allowVNetOverride\":true,\"status\":\"fvanpzabbf\"},\"name\":\"issdelyecjmfaf\",\"type\":\"ffyyfthsafvamos\",\"etag\":\"nmcimdtuydynugkj\",\"\":{\"ajjyournxq\":\"datafprfhpcy\",\"mbsghzund\":\"datauzls\"},\"id\":\"bmuvgfkdea\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.changeDataCaptures().listByFactory("l", "tdije", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bmuvgfkdea", response.iterator().next().id()); - Assertions.assertEquals("rrm", response.iterator().next().folder().name()); - Assertions.assertEquals("xjwlhulvyz", response.iterator().next().description()); - Assertions.assertEquals("vzq", - response.iterator().next().sourceConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("dkvldrcx", - response.iterator().next().sourceConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.iterator().next().sourceConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(false, - response.iterator().next().sourceConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("evpmtpqdfpgso", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedService().referenceName()); - Assertions.assertEquals("xd", - response.iterator().next().targetConnectionsInfo().get(0).connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - response.iterator().next().targetConnectionsInfo().get(0).connection().type()); - Assertions.assertEquals(true, - response.iterator().next().targetConnectionsInfo().get(0).connection().isInlineDataset()); - Assertions.assertEquals("xvspubfkelqzcpts", response.iterator().next().policy().mode()); - Assertions.assertEquals(FrequencyType.HOUR, response.iterator().next().policy().recurrence().frequency()); - Assertions.assertEquals(1026057080, response.iterator().next().policy().recurrence().interval()); - Assertions.assertEquals(true, response.iterator().next().allowVNetOverride()); - Assertions.assertEquals("fvanpzabbf", 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 5291728c9bd4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ChangeDataCapturesStartWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.changeDataCaptures() - .startWithResponse("ymaznmqlpn", "ppagv", "nryjqboylm", 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 f67a2047fab0..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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 = "\"tq\""; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - String response = manager.changeDataCaptures() - .statusWithResponse("rvnq", "dwsggjkzulihdh", "ccbbh", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("tq", 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 73c932122bc8..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.changeDataCaptures() - .stopWithResponse("w", "zvmftxkwicg", "tbflechgiqxknjr", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java deleted file mode 100644 index 5bddc381a80c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CmkIdentityDefinitionTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CmkIdentityDefinition; -import org.junit.jupiter.api.Assertions; - -public final class CmkIdentityDefinitionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CmkIdentityDefinition model - = BinaryData.fromString("{\"userAssignedIdentity\":\"lexxbczwtru\"}").toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("lexxbczwtru", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CmkIdentityDefinition model = new CmkIdentityDefinition().withUserAssignedIdentity("lexxbczwtru"); - model = BinaryData.fromObject(model).toObject(CmkIdentityDefinition.class); - Assertions.assertEquals("lexxbczwtru", model.userAssignedIdentity()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java deleted file mode 100644 index 9a4c32813bf9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CommonDataServiceForAppsEntityDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CommonDataServiceForAppsEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsEntityDataset model = BinaryData.fromString( - "{\"type\":\"CommonDataServiceForAppsEntity\",\"typeProperties\":{\"entityName\":\"datablwal\"},\"description\":\"ssnqe\",\"structure\":\"dataotbptg\",\"schema\":\"datamanxx\",\"linkedServiceName\":{\"referenceName\":\"wqfmdqecvta\",\"parameters\":{\"sibxovuqo\":\"datazmnobfeww\",\"qnzjcyqqz\":\"datajrkblndyclwgycv\",\"dpisjdl\":\"dataembtbwnalb\",\"eopsk\":\"dataajvmvvlooubsfxip\"}},\"parameters\":{\"dwzrgdqyxajc\":{\"type\":\"Bool\",\"defaultValue\":\"datamlupfazusjcdhusl\"},\"sjnkiixepbn\":{\"type\":\"Int\",\"defaultValue\":\"datacavqcwyzoqzkmqcw\"}},\"annotations\":[\"datawwgfgsqxilef\"],\"folder\":{\"name\":\"ewrznequqynttw\"},\"\":{\"ogjmqjhgcyd\":\"dataajksbs\",\"ixtdlxw\":\"datajnmcvjbssfcriqx\",\"orogeuv\":\"datavcdkucpxpyafrwr\",\"frsnqpljp\":\"datakrspnrsjsemlz\"}}") - .toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("ssnqe", model.description()); - Assertions.assertEquals("wqfmdqecvta", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dwzrgdqyxajc").type()); - Assertions.assertEquals("ewrznequqynttw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDataset model - = new CommonDataServiceForAppsEntityDataset().withDescription("ssnqe") - .withStructure("dataotbptg") - .withSchema("datamanxx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wqfmdqecvta") - .withParameters(mapOf("sibxovuqo", "datazmnobfeww", "qnzjcyqqz", "datajrkblndyclwgycv", "dpisjdl", - "dataembtbwnalb", "eopsk", "dataajvmvvlooubsfxip"))) - .withParameters(mapOf("dwzrgdqyxajc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datamlupfazusjcdhusl"), - "sjnkiixepbn", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datacavqcwyzoqzkmqcw"))) - .withAnnotations(Arrays.asList("datawwgfgsqxilef")) - .withFolder(new DatasetFolder().withName("ewrznequqynttw")) - .withEntityName("datablwal"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsEntityDataset.class); - Assertions.assertEquals("ssnqe", model.description()); - Assertions.assertEquals("wqfmdqecvta", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dwzrgdqyxajc").type()); - Assertions.assertEquals("ewrznequqynttw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java deleted file mode 100644 index 720515e410a1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsEntityDatasetTypeProperties; - -public final class CommonDataServiceForAppsEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsEntityDatasetTypeProperties model - = BinaryData.fromString("{\"entityName\":\"dataexutike\"}") - .toObject(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsEntityDatasetTypeProperties model - = new CommonDataServiceForAppsEntityDatasetTypeProperties().withEntityName("dataexutike"); - model = BinaryData.fromObject(model).toObject(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.java deleted file mode 100644 index 88c32036caca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CommonDataServiceForAppsSourceTests.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.CommonDataServiceForAppsSource; - -public final class CommonDataServiceForAppsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommonDataServiceForAppsSource model = BinaryData.fromString( - "{\"type\":\"CommonDataServiceForAppsSource\",\"query\":\"datajstncjwze\",\"additionalColumns\":\"dataezltlundkjphvh\",\"sourceRetryCount\":\"dataivsh\",\"sourceRetryWait\":\"datax\",\"maxConcurrentConnections\":\"datajythxearlpnajjt\",\"disableMetricsCollection\":\"datalyd\",\"\":{\"gucdfxglrcj\":\"dataxbungmpnry\",\"jcwuzanpoyrqjoni\":\"datagoazzy\",\"cloq\":\"datanyhzestt\",\"hfmzeufjzqaqeqc\":\"datagzdbonep\"}}") - .toObject(CommonDataServiceForAppsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommonDataServiceForAppsSource model = new CommonDataServiceForAppsSource().withSourceRetryCount("dataivsh") - .withSourceRetryWait("datax") - .withMaxConcurrentConnections("datajythxearlpnajjt") - .withDisableMetricsCollection("datalyd") - .withQuery("datajstncjwze") - .withAdditionalColumns("dataezltlundkjphvh"); - 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 566b419030ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CompressionReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class CompressionReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CompressionReadSettings model = BinaryData.fromString( - "{\"type\":\"CompressionReadSettings\",\"\":{\"ypftrdicst\":\"dataxikxiqxlxoks\",\"opgwpkat\":\"databqgatkl\",\"sdpyirtrlzkpje\":\"datacetyyvxkwobbw\",\"klowuth\":\"datagzhhfnaqclep\"}}") - .toObject(CompressionReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CompressionReadSettings model - = new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")); - model = BinaryData.fromObject(model).toObject(CompressionReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java deleted file mode 100644 index 66f9eeb62134..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConcurObjectDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ConcurObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConcurObjectDataset model = BinaryData.fromString( - "{\"type\":\"ConcurObject\",\"typeProperties\":{\"tableName\":\"dataf\"},\"description\":\"cnqbblr\",\"structure\":\"dataofzghfuifwxu\",\"schema\":\"datanoh\",\"linkedServiceName\":{\"referenceName\":\"cqxu\",\"parameters\":{\"fbplv\":\"dataugdcr\",\"qe\":\"datamhurosdjlzbdmddg\",\"orservpvesors\":\"datay\"}},\"parameters\":{\"fjqzyhzydyvtuq\":{\"type\":\"SecureString\",\"defaultValue\":\"datamex\"},\"igtvjxsocsvjekej\":{\"type\":\"SecureString\",\"defaultValue\":\"datalunssky\"}},\"annotations\":[\"datazjdcwuzscyf\",\"dataixecmasjnfgn\",\"dataxaojeeyvfxbfckmo\"],\"folder\":{\"name\":\"axvwxtxuzh\"},\"\":{\"ygtc\":\"datayffwflbkjcdzu\",\"jef\":\"dataz\",\"kbhzi\":\"dataubaldjcgldryvlr\"}}") - .toObject(ConcurObjectDataset.class); - Assertions.assertEquals("cnqbblr", model.description()); - Assertions.assertEquals("cqxu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("fjqzyhzydyvtuq").type()); - Assertions.assertEquals("axvwxtxuzh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurObjectDataset model = new ConcurObjectDataset().withDescription("cnqbblr") - .withStructure("dataofzghfuifwxu") - .withSchema("datanoh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("cqxu") - .withParameters(mapOf("fbplv", "dataugdcr", "qe", "datamhurosdjlzbdmddg", "orservpvesors", "datay"))) - .withParameters(mapOf("fjqzyhzydyvtuq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datamex"), - "igtvjxsocsvjekej", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datalunssky"))) - .withAnnotations(Arrays.asList("datazjdcwuzscyf", "dataixecmasjnfgn", "dataxaojeeyvfxbfckmo")) - .withFolder(new DatasetFolder().withName("axvwxtxuzh")) - .withTableName("dataf"); - model = BinaryData.fromObject(model).toObject(ConcurObjectDataset.class); - Assertions.assertEquals("cnqbblr", model.description()); - Assertions.assertEquals("cqxu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("fjqzyhzydyvtuq").type()); - Assertions.assertEquals("axvwxtxuzh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java deleted file mode 100644 index ddb9ef73d935..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConcurSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConcurSource; - -public final class ConcurSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConcurSource model = BinaryData.fromString( - "{\"type\":\"ConcurSource\",\"query\":\"datamwozwjinxyrt\",\"queryTimeout\":\"datafvzslttkpirkujc\",\"additionalColumns\":\"dataczh\",\"sourceRetryCount\":\"datapfoabmah\",\"sourceRetryWait\":\"dataxodddq\",\"maxConcurrentConnections\":\"datawrrytgsocqkd\",\"disableMetricsCollection\":\"databzqnaoxsgmpdc\",\"\":{\"kqlafiaywmc\":\"datazautuaysxhfupvq\"}}") - .toObject(ConcurSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConcurSource model = new ConcurSource().withSourceRetryCount("datapfoabmah") - .withSourceRetryWait("dataxodddq") - .withMaxConcurrentConnections("datawrrytgsocqkd") - .withDisableMetricsCollection("databzqnaoxsgmpdc") - .withQueryTimeout("datafvzslttkpirkujc") - .withAdditionalColumns("dataczh") - .withQuery("datamwozwjinxyrt"); - model = BinaryData.fromObject(model).toObject(ConcurSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java deleted file mode 100644 index f75c77c3efb3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ConnectionStatePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; - -public final class ConnectionStatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConnectionStateProperties model = BinaryData - .fromString( - "{\"actionsRequired\":\"lejchcsr\",\"description\":\"knmzlanrupdwvnp\",\"status\":\"nzqtpjhmqrhvt\"}") - .toObject(ConnectionStateProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConnectionStateProperties model = new ConnectionStateProperties(); - model = BinaryData.fromObject(model).toObject(ConnectionStateProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java deleted file mode 100644 index 1992aaeee3e8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ControlActivityTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ControlActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ControlActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ControlActivity model = BinaryData.fromString( - "{\"type\":\"Container\",\"name\":\"ugnvhtgwa\",\"description\":\"dokoxqbozezxzw\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"obovqlltqlqufkr\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Failed\"],\"\":{\"yputawdmdikuf\":\"dataolozq\",\"ujzofyldxk\":\"dataqvv\",\"ebuiy\":\"datahvfojcvnh\"}},{\"activity\":\"kysg\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Completed\"],\"\":{\"dnmguifqj\":\"datavld\",\"arfumitjaiis\":\"dataoxzxbljpzauug\",\"qrjcozrwrylcttv\":\"dataokfdybvywbgmjrvr\",\"a\":\"datakxgffpvvqwvvnxoq\"}},{\"activity\":\"jbl\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Skipped\"],\"\":{\"rymqqfksqfcxdle\":\"datafeugcwtsztxoswv\",\"baxygwv\":\"datahysdg\"}},{\"activity\":\"krqiyuqdsjj\",\"dependencyConditions\":[\"Failed\"],\"\":{\"aaqyxkloab\":\"datajmeipfo\"}}],\"userProperties\":[{\"name\":\"qaavjkrepqasviy\",\"value\":\"databvolivianklqclft\"}],\"\":{\"bc\":\"dataouxpdnlbp\",\"zekg\":\"dataohnroa\"}}") - .toObject(ControlActivity.class); - Assertions.assertEquals("ugnvhtgwa", model.name()); - Assertions.assertEquals("dokoxqbozezxzw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("obovqlltqlqufkr", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qaavjkrepqasviy", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlActivity model = new ControlActivity().withName("ugnvhtgwa") - .withDescription("dokoxqbozezxzw") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("obovqlltqlqufkr") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kysg") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jbl") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("krqiyuqdsjj") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qaavjkrepqasviy").withValue("databvolivianklqclft"))); - model = BinaryData.fromObject(model).toObject(ControlActivity.class); - Assertions.assertEquals("ugnvhtgwa", model.name()); - Assertions.assertEquals("dokoxqbozezxzw", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("obovqlltqlqufkr", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qaavjkrepqasviy", 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 34bbb6f94c8a..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\":\"dataynupski\",\"enableReliableLogging\":\"datakphamefzzgwjoau\"}") - .toObject(CopyActivityLogSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityLogSettings model = new CopyActivityLogSettings().withLogLevel("dataynupski") - .withEnableReliableLogging("datakphamefzzgwjoau"); - 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 0c1f13196236..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTests.java +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CopyActivity; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivity model = BinaryData.fromString( - "{\"type\":\"Copy\",\"typeProperties\":{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datatytwtfqpmpyww\",\"sourceRetryWait\":\"dataukqmjcwdo\",\"maxConcurrentConnections\":\"datadqun\",\"disableMetricsCollection\":\"dataqcocc\",\"\":{\"rbyrb\":\"dataj\"}},\"sink\":{\"type\":\"CopySink\",\"writeBatchSize\":\"dataqpsquou\",\"writeBatchTimeout\":\"datazgdtu\",\"sinkRetryCount\":\"dataoimojcm\",\"sinkRetryWait\":\"datacd\",\"maxConcurrentConnections\":\"datavorzhzfoc\",\"disableMetricsCollection\":\"datayltornv\",\"\":{\"yv\":\"datayolwifbd\"}},\"translator\":\"datayw\",\"enableStaging\":\"datavkthrexzve\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"zyuiklokeqeowb\",\"parameters\":{\"bpobvjhun\":\"dataehvgchsgotgwe\",\"rxcei\":\"datac\",\"dtkllqhznutrx\":\"datav\"}},\"path\":\"dataz\",\"enableCompression\":\"datanniarjezj\",\"\":{\"sqykqfserlsai\":\"dataiqfoqw\",\"tagwmzgvnojgm\":\"datashh\",\"oi\":\"databkali\",\"owxsxbxd\":\"datakehpdssvlubdp\"}},\"parallelCopies\":\"dataixurcekc\",\"dataIntegrationUnits\":\"datajqqauftg\",\"enableSkipIncompatibleRow\":\"datatbu\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"datacnkghkrbirshlh\",\"path\":\"datayod\",\"\":{\"xzovbhqelssl\":\"datanqbpxyoff\",\"sgigs\":\"dataxejpo\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"tx\",\"parameters\":{\"dzovkbcbefohny\":\"datajwmglgstrzfhe\",\"gfvzvmtjcxig\":\"datafhmljim\",\"eet\":\"dataszxdbgl\",\"izw\":\"dataivmbu\"}},\"path\":\"datafhfptbdxtvlpj\",\"logLevel\":\"datasl\",\"enableReliableLogging\":\"datauzytxeaqig\",\"\":{\"tgcidbrjwi\":\"datatutet\",\"grcmcqppledx\":\"dataouepaqnfy\",\"welutrvd\":\"dataecttub\"}},\"logSettings\":{\"enableCopyActivityLog\":\"datapxpscw\",\"copyActivityLogSettings\":{\"logLevel\":\"dataslf\",\"enableReliableLogging\":\"datayavysfmndrdqq\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"k\",\"parameters\":{\"erzkhiovh\":\"datamldkci\"}},\"path\":\"datawfolpjrep\"}},\"preserveRules\":[\"dataoiranxq\"],\"preserve\":[\"datasvnldtqykzmwd\",\"dataqre\",\"dataltrnq\"],\"validateDataConsistency\":\"datacyozryoxmfrxfx\",\"skipErrorFile\":{\"fileMissing\":\"dataialvchfu\",\"dataInconsistency\":\"datafgmlzxxk\"}},\"inputs\":[{\"referenceName\":\"pklfwnhf\",\"parameters\":{\"hg\":\"datalrtffswqdkvljitb\"}},{\"referenceName\":\"rvlarozswmucr\",\"parameters\":{\"nlvjgskbksltun\":\"datagsdxtwqqukg\",\"uqyzxzjehd\":\"datawxsqvxlupccfwqis\",\"pgmoazsj\":\"datalvqtmzociaetctj\",\"ccvxqbxgq\":\"datauevfvnnt\"}}],\"outputs\":[{\"referenceName\":\"nri\",\"parameters\":{\"ldi\":\"datakibvw\"}},{\"referenceName\":\"mxsvz\",\"parameters\":{\"dljthmibqgldhtt\":\"datatalobx\",\"nny\":\"dataalpq\"}}],\"linkedServiceName\":{\"referenceName\":\"jea\",\"parameters\":{\"fdkkvijilfqvodz\":\"dataewlwbxuf\",\"ld\":\"datawdqvq\",\"qpfwnjdyoxformfe\":\"dataqoaop\"}},\"policy\":{\"timeout\":\"dataqjneszxte\",\"retry\":\"datahxphxokdbv\",\"retryIntervalInSeconds\":187311,\"secureInput\":false,\"secureOutput\":true,\"\":{\"jrnnwgrxzcn\":\"dataxbzmpvue\",\"zqlsnycchpcjzt\":\"dataguezxluimkwbwmg\",\"njxciunetcxgdg\":\"dataiuuuyvpcfv\",\"tzbphxxvftj\":\"datakletlwa\"}},\"name\":\"rq\",\"description\":\"onmokyjmtdny\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"bqlcakle\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Skipped\"],\"\":{\"xgg\":\"dataezyhphaokhbq\",\"oclef\":\"datakqitpbynetyxuxo\"}},{\"activity\":\"gg\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"rvswcpspaoxigp\":\"databouhmngccnkgiu\",\"u\":\"datai\"}},{\"activity\":\"pgpqsmglutn\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"idbcxbgfwwcfwl\":\"dataxxnbogx\",\"imviefbje\":\"datanjganmopcmetdruu\",\"khjuuepnjuqw\":\"datamiy\"}}],\"userProperties\":[{\"name\":\"bbpxqsv\",\"value\":\"dataxvqwisdwtug\"}],\"\":{\"cbwiwhtjox\":\"dataupip\"}}") - .toObject(CopyActivity.class); - Assertions.assertEquals("rq", model.name()); - Assertions.assertEquals("onmokyjmtdny", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("bqlcakle", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bbpxqsv", model.userProperties().get(0).name()); - Assertions.assertEquals("jea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(187311, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("pklfwnhf", model.inputs().get(0).referenceName()); - Assertions.assertEquals("nri", model.outputs().get(0).referenceName()); - Assertions.assertEquals("zyuiklokeqeowb", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("tx", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("k", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivity model = new CopyActivity().withName("rq") - .withDescription("onmokyjmtdny") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("bqlcakle") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gg") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pgpqsmglutn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("bbpxqsv").withValue("dataxvqwisdwtug"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jea") - .withParameters( - mapOf("fdkkvijilfqvodz", "dataewlwbxuf", "ld", "datawdqvq", "qpfwnjdyoxformfe", "dataqoaop"))) - .withPolicy(new ActivityPolicy().withTimeout("dataqjneszxte") - .withRetry("datahxphxokdbv") - .withRetryIntervalInSeconds(187311) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withInputs(Arrays.asList( - new DatasetReference().withReferenceName("pklfwnhf") - .withParameters(mapOf("hg", "datalrtffswqdkvljitb")), - new DatasetReference().withReferenceName("rvlarozswmucr") - .withParameters(mapOf("nlvjgskbksltun", "datagsdxtwqqukg", "uqyzxzjehd", "datawxsqvxlupccfwqis", - "pgmoazsj", "datalvqtmzociaetctj", "ccvxqbxgq", "datauevfvnnt")))) - .withOutputs( - Arrays.asList(new DatasetReference().withReferenceName("nri").withParameters(mapOf("ldi", "datakibvw")), - new DatasetReference().withReferenceName("mxsvz") - .withParameters(mapOf("dljthmibqgldhtt", "datatalobx", "nny", "dataalpq")))) - .withSource(new CopySource().withSourceRetryCount("datatytwtfqpmpyww") - .withSourceRetryWait("dataukqmjcwdo") - .withMaxConcurrentConnections("datadqun") - .withDisableMetricsCollection("dataqcocc") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withSink(new CopySink().withWriteBatchSize("dataqpsquou") - .withWriteBatchTimeout("datazgdtu") - .withSinkRetryCount("dataoimojcm") - .withSinkRetryWait("datacd") - .withMaxConcurrentConnections("datavorzhzfoc") - .withDisableMetricsCollection("datayltornv") - .withAdditionalProperties(mapOf("type", "CopySink"))) - .withTranslator("datayw") - .withEnableStaging("datavkthrexzve") - .withStagingSettings(new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zyuiklokeqeowb") - .withParameters( - mapOf("bpobvjhun", "dataehvgchsgotgwe", "rxcei", "datac", "dtkllqhznutrx", "datav"))) - .withPath("dataz") - .withEnableCompression("datanniarjezj") - .withAdditionalProperties(mapOf())) - .withParallelCopies("dataixurcekc") - .withDataIntegrationUnits("datajqqauftg") - .withEnableSkipIncompatibleRow("datatbu") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings().withLinkedServiceName("datacnkghkrbirshlh") - .withPath("datayod") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tx") - .withParameters(mapOf("dzovkbcbefohny", "datajwmglgstrzfhe", "gfvzvmtjcxig", "datafhmljim", "eet", - "dataszxdbgl", "izw", "dataivmbu"))) - .withPath("datafhfptbdxtvlpj") - .withLogLevel("datasl") - .withEnableReliableLogging("datauzytxeaqig") - .withAdditionalProperties(mapOf())) - .withLogSettings(new LogSettings().withEnableCopyActivityLog("datapxpscw") - .withCopyActivityLogSettings(new CopyActivityLogSettings().withLogLevel("dataslf") - .withEnableReliableLogging("datayavysfmndrdqq")) - .withLogLocationSettings( - new LogLocationSettings().withLinkedServiceName(new LinkedServiceReference().withReferenceName("k") - .withParameters(mapOf("erzkhiovh", "datamldkci"))).withPath("datawfolpjrep"))) - .withPreserveRules(Arrays.asList("dataoiranxq")) - .withPreserve(Arrays.asList("datasvnldtqykzmwd", "dataqre", "dataltrnq")) - .withValidateDataConsistency("datacyozryoxmfrxfx") - .withSkipErrorFile( - new SkipErrorFile().withFileMissing("dataialvchfu").withDataInconsistency("datafgmlzxxk")); - model = BinaryData.fromObject(model).toObject(CopyActivity.class); - Assertions.assertEquals("rq", model.name()); - Assertions.assertEquals("onmokyjmtdny", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("bqlcakle", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bbpxqsv", model.userProperties().get(0).name()); - Assertions.assertEquals("jea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(187311, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("pklfwnhf", model.inputs().get(0).referenceName()); - Assertions.assertEquals("nri", model.outputs().get(0).referenceName()); - Assertions.assertEquals("zyuiklokeqeowb", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("tx", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("k", 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 c273167c6a52..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyActivityTypePropertiesTests.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.fluent.models.CopyActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyActivityTypeProperties model = BinaryData.fromString( - "{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datalhkz\",\"sourceRetryWait\":\"datanw\",\"maxConcurrentConnections\":\"datawxyawxkdvev\",\"disableMetricsCollection\":\"datauuihapcqmcvur\",\"\":{\"tlcrxfiiifgxnfar\":\"databljnizw\",\"vtrulzlrm\":\"dataficqrde\",\"xcgcdfel\":\"datatcsmpmhlcxb\",\"ygosuhroicjt\":\"dataapbdbicjzntiblx\"}},\"sink\":{\"type\":\"CopySink\",\"writeBatchSize\":\"datadymoanpkcmdixiux\",\"writeBatchTimeout\":\"datacalgspz\",\"sinkRetryCount\":\"datafprzlvhohzkcsjd\",\"sinkRetryWait\":\"dataposmnmkypeqm\",\"maxConcurrentConnections\":\"dataeox\",\"disableMetricsCollection\":\"datarulavxeaym\",\"\":{\"funptsryp\":\"datahw\",\"kbwbxvs\":\"dataa\",\"baddlmj\":\"datatbxcj\"}},\"translator\":\"datali\",\"enableStaging\":\"datarc\",\"stagingSettings\":{\"linkedServiceName\":{\"referenceName\":\"thluzey\",\"parameters\":{\"mn\":\"dataezkyfy\",\"pqegty\":\"dataeasuw\",\"tfqffwvnjg\":\"databycceuf\",\"sw\":\"datarykshizw\"}},\"path\":\"dataye\",\"enableCompression\":\"datas\",\"\":{\"qqemeftlgjrf\":\"dataqzwsgui\",\"relokxklgluareg\":\"dataqfc\"}},\"parallelCopies\":\"datay\",\"dataIntegrationUnits\":\"dataoisbmv\",\"enableSkipIncompatibleRow\":\"dataenrcqickhvps\",\"redirectIncompatibleRowSettings\":{\"linkedServiceName\":\"datauiuvingmonq\",\"path\":\"datatyuqdz\",\"\":{\"kydqy\":\"datajzvaykfjgakays\"}},\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"wmfwr\",\"parameters\":{\"vmuot\":\"datazg\",\"fyjampvwxlkh\":\"datasea\",\"ipmnqrbyq\":\"datarlt\"}},\"path\":\"datawxbowcjkargg\",\"logLevel\":\"datauewgy\",\"enableReliableLogging\":\"datalvxwlqlugnbudjy\",\"\":{\"ykvlxs\":\"dataotgtlan\",\"xooxuaufqoo\":\"datacqqd\",\"t\":\"datawx\"}},\"logSettings\":{\"enableCopyActivityLog\":\"dataqvpedwmhqcjreryp\",\"copyActivityLogSettings\":{\"logLevel\":\"dataqxeyzqnupsipclxv\",\"enableReliableLogging\":\"datavss\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"b\",\"parameters\":{\"icqdb\":\"dataq\",\"lrixzdbntopbab\":\"datazwlejiiyoonbu\",\"boysquygokh\":\"datadwcfmzmqmgdlgsxk\",\"qukcojyxhhvoo\":\"datastwcyigrhfevxy\"}},\"path\":\"datatcsucot\"}},\"preserveRules\":[\"dataiqzjnxzvjnmpv\"],\"preserve\":[\"dataudfbhzuk\",\"datapfbhihddiiuex\"],\"validateDataConsistency\":\"datayfku\",\"skipErrorFile\":{\"fileMissing\":\"dataqpwardpw\",\"dataInconsistency\":\"datalvfisk\"}}") - .toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("thluzey", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("wmfwr", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("b", model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyActivityTypeProperties model = new CopyActivityTypeProperties() - .withSource(new CopySource().withSourceRetryCount("datalhkz") - .withSourceRetryWait("datanw") - .withMaxConcurrentConnections("datawxyawxkdvev") - .withDisableMetricsCollection("datauuihapcqmcvur") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withSink(new CopySink().withWriteBatchSize("datadymoanpkcmdixiux") - .withWriteBatchTimeout("datacalgspz") - .withSinkRetryCount("datafprzlvhohzkcsjd") - .withSinkRetryWait("dataposmnmkypeqm") - .withMaxConcurrentConnections("dataeox") - .withDisableMetricsCollection("datarulavxeaym") - .withAdditionalProperties(mapOf("type", "CopySink"))) - .withTranslator("datali") - .withEnableStaging("datarc") - .withStagingSettings(new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("thluzey") - .withParameters(mapOf("mn", "dataezkyfy", "pqegty", "dataeasuw", "tfqffwvnjg", "databycceuf", "sw", - "datarykshizw"))) - .withPath("dataye") - .withEnableCompression("datas") - .withAdditionalProperties(mapOf())) - .withParallelCopies("datay") - .withDataIntegrationUnits("dataoisbmv") - .withEnableSkipIncompatibleRow("dataenrcqickhvps") - .withRedirectIncompatibleRowSettings( - new RedirectIncompatibleRowSettings().withLinkedServiceName("datauiuvingmonq") - .withPath("datatyuqdz") - .withAdditionalProperties(mapOf())) - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wmfwr") - .withParameters(mapOf("vmuot", "datazg", "fyjampvwxlkh", "datasea", "ipmnqrbyq", "datarlt"))) - .withPath("datawxbowcjkargg") - .withLogLevel("datauewgy") - .withEnableReliableLogging("datalvxwlqlugnbudjy") - .withAdditionalProperties(mapOf())) - .withLogSettings( - new LogSettings().withEnableCopyActivityLog("dataqvpedwmhqcjreryp") - .withCopyActivityLogSettings(new CopyActivityLogSettings().withLogLevel("dataqxeyzqnupsipclxv") - .withEnableReliableLogging("datavss")) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("b") - .withParameters(mapOf("icqdb", "dataq", "lrixzdbntopbab", "datazwlejiiyoonbu", - "boysquygokh", "datadwcfmzmqmgdlgsxk", "qukcojyxhhvoo", "datastwcyigrhfevxy"))) - .withPath("datatcsucot"))) - .withPreserveRules(Arrays.asList("dataiqzjnxzvjnmpv")) - .withPreserve(Arrays.asList("dataudfbhzuk", "datapfbhihddiiuex")) - .withValidateDataConsistency("datayfku") - .withSkipErrorFile(new SkipErrorFile().withFileMissing("dataqpwardpw").withDataInconsistency("datalvfisk")); - model = BinaryData.fromObject(model).toObject(CopyActivityTypeProperties.class); - Assertions.assertEquals("thluzey", model.stagingSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("wmfwr", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("b", 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 305b4ecff5e4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyComputeScalePropertiesTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyComputeScaleProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CopyComputeScalePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyComputeScaleProperties model = BinaryData.fromString( - "{\"dataIntegrationUnit\":992750702,\"timeToLive\":447712322,\"\":{\"pumzuh\":\"datakifqbxmnnidot\",\"pva\":\"dataodttq\",\"avzlhjgmrodbl\":\"dataumvuwjyulqfpqql\"}}") - .toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(992750702, model.dataIntegrationUnit()); - Assertions.assertEquals(447712322, model.timeToLive()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyComputeScaleProperties model = new CopyComputeScaleProperties().withDataIntegrationUnit(992750702) - .withTimeToLive(447712322) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CopyComputeScaleProperties.class); - Assertions.assertEquals(992750702, model.dataIntegrationUnit()); - Assertions.assertEquals(447712322, 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 fda8fb7e3e3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySinkTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopySink; -import java.util.HashMap; -import java.util.Map; - -public final class CopySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopySink model = BinaryData.fromString( - "{\"type\":\"CopySink\",\"writeBatchSize\":\"datavvwroug\",\"writeBatchTimeout\":\"dataywgqrevbobheyx\",\"sinkRetryCount\":\"datacsktvkwb\",\"sinkRetryWait\":\"datakfvvxiikrja\",\"maxConcurrentConnections\":\"datatvnmr\",\"disableMetricsCollection\":\"datatypuotmkbofuh\",\"\":{\"rgyyjeagov\":\"datasgouzvegtnphno\",\"ufegbvvkuz\":\"datadunbaets\"}}") - .toObject(CopySink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySink model = new CopySink().withWriteBatchSize("datavvwroug") - .withWriteBatchTimeout("dataywgqrevbobheyx") - .withSinkRetryCount("datacsktvkwb") - .withSinkRetryWait("datakfvvxiikrja") - .withMaxConcurrentConnections("datatvnmr") - .withDisableMetricsCollection("datatypuotmkbofuh") - .withAdditionalProperties(mapOf("type", "CopySink")); - model = BinaryData.fromObject(model).toObject(CopySink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java deleted file mode 100644 index fac7b14702a5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopySourceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopySource; -import java.util.HashMap; -import java.util.Map; - -public final class CopySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopySource model = BinaryData.fromString( - "{\"type\":\"CopySource\",\"sourceRetryCount\":\"datawkr\",\"sourceRetryWait\":\"datazlmwfncwlwov\",\"maxConcurrentConnections\":\"databomjby\",\"disableMetricsCollection\":\"dataprkbzraljwfnc\",\"\":{\"ppqajdm\":\"dataylcpgzmxr\",\"wrziminetb\":\"dataunntqqguhv\",\"kedlclxxq\":\"datafwfuxdtpjcs\"}}") - .toObject(CopySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopySource model = new CopySource().withSourceRetryCount("datawkr") - .withSourceRetryWait("datazlmwfncwlwov") - .withMaxConcurrentConnections("databomjby") - .withDisableMetricsCollection("dataprkbzraljwfnc") - .withAdditionalProperties(mapOf("type", "CopySource")); - model = BinaryData.fromObject(model).toObject(CopySource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java deleted file mode 100644 index 5ecc969f75e9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CopyTranslatorTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyTranslator; -import java.util.HashMap; -import java.util.Map; - -public final class CopyTranslatorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyTranslator model = BinaryData.fromString( - "{\"type\":\"CopyTranslator\",\"\":{\"sxtsmzvaozfajalb\":\"dataugeaenk\",\"qzznwlxzms\":\"datawwbrllvvazuj\"}}") - .toObject(CopyTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyTranslator model = new CopyTranslator().withAdditionalProperties(mapOf("type", "CopyTranslator")); - model = BinaryData.fromObject(model).toObject(CopyTranslator.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java deleted file mode 100644 index c7228306363d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiCollectionDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbMongoDbApiCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiCollectionDataset model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApiCollection\",\"typeProperties\":{\"collection\":\"databpebrmj\"},\"description\":\"fpghtbttpkim\",\"structure\":\"datahnkkhbykrs\",\"schema\":\"datarcmelycpgokut\",\"linkedServiceName\":{\"referenceName\":\"rvybnz\",\"parameters\":{\"ixlvzcgul\":\"datamshfuzzlap\",\"wjt\":\"dataebxiauqsuptessj\",\"skxgxqaygas\":\"datatpvb\",\"wpvlcjbvyezjwjkq\":\"datakvc\"}},\"parameters\":{\"fpucwn\":{\"type\":\"Bool\",\"defaultValue\":\"dataiieyozvrc\"}},\"annotations\":[\"dataqefgzjvbx\",\"datacbgoarxtuuciagv\",\"datadlhuduklbjo\",\"datafmjfexulv\"],\"folder\":{\"name\":\"kna\"},\"\":{\"leqfgkxenvszg\":\"dataiancsqoacbuqdgsa\",\"eszsuuv\":\"datavya\",\"brveci\":\"datalaqcwggchxvlqg\"}}") - .toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("fpghtbttpkim", model.description()); - Assertions.assertEquals("rvybnz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("fpucwn").type()); - Assertions.assertEquals("kna", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDataset model = new CosmosDbMongoDbApiCollectionDataset() - .withDescription("fpghtbttpkim") - .withStructure("datahnkkhbykrs") - .withSchema("datarcmelycpgokut") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rvybnz") - .withParameters(mapOf("ixlvzcgul", "datamshfuzzlap", "wjt", "dataebxiauqsuptessj", "skxgxqaygas", - "datatpvb", "wpvlcjbvyezjwjkq", "datakvc"))) - .withParameters(mapOf("fpucwn", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataiieyozvrc"))) - .withAnnotations(Arrays.asList("dataqefgzjvbx", "datacbgoarxtuuciagv", "datadlhuduklbjo", "datafmjfexulv")) - .withFolder(new DatasetFolder().withName("kna")) - .withCollection("databpebrmj"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiCollectionDataset.class); - Assertions.assertEquals("fpghtbttpkim", model.description()); - Assertions.assertEquals("rvybnz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("fpucwn").type()); - Assertions.assertEquals("kna", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index b47c427606a7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties; - -public final class CosmosDbMongoDbApiCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiCollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collection\":\"dataaovphirlzbipi\"}") - .toObject(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiCollectionDatasetTypeProperties model - = new CosmosDbMongoDbApiCollectionDatasetTypeProperties().withCollection("dataaovphirlzbipi"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.java deleted file mode 100644 index d5dc8706ca02..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiLinkedServiceTests.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.CosmosDbMongoDbApiLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbMongoDbApiLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiLinkedService model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApi\",\"typeProperties\":{\"isServerVersionAbove32\":\"dataqifsgzfgxwfxji\",\"connectionString\":\"datapdsohwn\",\"database\":\"dataayooghj\"},\"version\":\"pppnksqiwlm\",\"connectVia\":{\"referenceName\":\"jtoseohoyg\",\"parameters\":{\"zzugdorc\":\"dataz\",\"plpexhh\":\"datapqvovsirtasep\",\"tl\":\"dataj\",\"biroxamnvrcq\":\"datap\"}},\"description\":\"bainsi\",\"parameters\":{\"wqjcphofyoqfvm\":{\"type\":\"String\",\"defaultValue\":\"dataufjybtzmmxdmppib\"}},\"annotations\":[\"datal\",\"datamuzltnneolghgte\",\"datatyxlsycckj\"],\"\":{\"c\":\"datatykcaocjuuxqnk\"}}") - .toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("pppnksqiwlm", model.version()); - Assertions.assertEquals("jtoseohoyg", model.connectVia().referenceName()); - Assertions.assertEquals("bainsi", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("wqjcphofyoqfvm").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedService model - = new CosmosDbMongoDbApiLinkedService().withVersion("pppnksqiwlm") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("jtoseohoyg") - .withParameters(mapOf("zzugdorc", "dataz", "plpexhh", "datapqvovsirtasep", "tl", "dataj", - "biroxamnvrcq", "datap"))) - .withDescription("bainsi") - .withParameters(mapOf("wqjcphofyoqfvm", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("dataufjybtzmmxdmppib"))) - .withAnnotations(Arrays.asList("datal", "datamuzltnneolghgte", "datatyxlsycckj")) - .withIsServerVersionAbove32("dataqifsgzfgxwfxji") - .withConnectionString("datapdsohwn") - .withDatabase("dataayooghj"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiLinkedService.class); - Assertions.assertEquals("pppnksqiwlm", model.version()); - Assertions.assertEquals("jtoseohoyg", model.connectVia().referenceName()); - Assertions.assertEquals("bainsi", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("wqjcphofyoqfvm").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 02144a36c726..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\":\"datarwciynjcvew\",\"connectionString\":\"datarjrnaktj\",\"database\":\"datapigla\"}") - .toObject(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiLinkedServiceTypeProperties model - = new CosmosDbMongoDbApiLinkedServiceTypeProperties().withIsServerVersionAbove32("datarwciynjcvew") - .withConnectionString("datarjrnaktj") - .withDatabase("datapigla"); - 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 473a0226d0da..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSink; - -public final class CosmosDbMongoDbApiSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiSink model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApiSink\",\"writeBehavior\":\"datae\",\"writeBatchSize\":\"datam\",\"writeBatchTimeout\":\"datalkjfpqebbqetxsux\",\"sinkRetryCount\":\"datajwlwysrswzhci\",\"sinkRetryWait\":\"datawe\",\"maxConcurrentConnections\":\"dataskmqkanuxju\",\"disableMetricsCollection\":\"datavzodnxlcdgkc\",\"\":{\"kz\":\"datancjlkr\",\"qzihmvwj\":\"datauuba\",\"ivwdlrt\":\"datajwvqiahoqjz\"}}") - .toObject(CosmosDbMongoDbApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSink model = new CosmosDbMongoDbApiSink().withWriteBatchSize("datam") - .withWriteBatchTimeout("datalkjfpqebbqetxsux") - .withSinkRetryCount("datajwlwysrswzhci") - .withSinkRetryWait("datawe") - .withMaxConcurrentConnections("dataskmqkanuxju") - .withDisableMetricsCollection("datavzodnxlcdgkc") - .withWriteBehavior("datae"); - 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 71f56011e48d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbMongoDbApiSourceTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbMongoDbApiSource; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class CosmosDbMongoDbApiSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbMongoDbApiSource model = BinaryData.fromString( - "{\"type\":\"CosmosDbMongoDbApiSource\",\"filter\":\"datacugchtwxifudlrxb\",\"cursorMethods\":{\"project\":\"datatpvgmqzitcuvmllt\",\"sort\":\"dataufqsfpzeszveg\",\"skip\":\"databmyvgmbirvv\",\"limit\":\"databqxisavktuxw\",\"\":{\"cdymoqvcjkrynzi\":\"datahibridagwu\"}},\"batchSize\":\"datamhedhry\",\"queryTimeout\":\"dataagvuioxjwzt\",\"additionalColumns\":\"dataotllfzcvhf\",\"sourceRetryCount\":\"dataccffsbz\",\"sourceRetryWait\":\"datatfxq\",\"maxConcurrentConnections\":\"dataj\",\"disableMetricsCollection\":\"dataud\",\"\":{\"hpzvqzmlfer\":\"datatavb\",\"nnqudexnicqu\":\"datawh\"}}") - .toObject(CosmosDbMongoDbApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbMongoDbApiSource model = new CosmosDbMongoDbApiSource().withSourceRetryCount("dataccffsbz") - .withSourceRetryWait("datatfxq") - .withMaxConcurrentConnections("dataj") - .withDisableMetricsCollection("dataud") - .withFilter("datacugchtwxifudlrxb") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("datatpvgmqzitcuvmllt") - .withSort("dataufqsfpzeszveg") - .withSkip("databmyvgmbirvv") - .withLimit("databqxisavktuxw") - .withAdditionalProperties(mapOf())) - .withBatchSize("datamhedhry") - .withQueryTimeout("dataagvuioxjwzt") - .withAdditionalColumns("dataotllfzcvhf"); - model = BinaryData.fromObject(model).toObject(CosmosDbMongoDbApiSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java deleted file mode 100644 index 712d50580491..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiCollectionDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CosmosDbSqlApiCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiCollectionDataset model = BinaryData.fromString( - "{\"type\":\"CosmosDbSqlApiCollection\",\"typeProperties\":{\"collectionName\":\"datawpad\"},\"description\":\"dbfobdc\",\"structure\":\"dataothm\",\"schema\":\"datajaoz\",\"linkedServiceName\":{\"referenceName\":\"bwfcn\",\"parameters\":{\"lhscmyh\":\"datapo\",\"okndwpppqwojoevz\":\"datahjvszfq\",\"zlyvapbkrbuog\":\"dataufytdxmly\",\"cuhaizijv\":\"datatdlt\"}},\"parameters\":{\"m\":{\"type\":\"Float\",\"defaultValue\":\"dataohlpsftqkr\"}},\"annotations\":[\"datavvcpwtqsuspn\",\"datamzy\"],\"folder\":{\"name\":\"etevrntfknwacy\"},\"\":{\"atvcsxr\":\"dataotctkhfhf\",\"cubleh\":\"datahnmizhvprhqq\"}}") - .toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("dbfobdc", model.description()); - Assertions.assertEquals("bwfcn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("m").type()); - Assertions.assertEquals("etevrntfknwacy", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDataset model = new CosmosDbSqlApiCollectionDataset().withDescription("dbfobdc") - .withStructure("dataothm") - .withSchema("datajaoz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bwfcn") - .withParameters(mapOf("lhscmyh", "datapo", "okndwpppqwojoevz", "datahjvszfq", "zlyvapbkrbuog", - "dataufytdxmly", "cuhaizijv", "datatdlt"))) - .withParameters(mapOf("m", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataohlpsftqkr"))) - .withAnnotations(Arrays.asList("datavvcpwtqsuspn", "datamzy")) - .withFolder(new DatasetFolder().withName("etevrntfknwacy")) - .withCollectionName("datawpad"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiCollectionDataset.class); - Assertions.assertEquals("dbfobdc", model.description()); - Assertions.assertEquals("bwfcn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("m").type()); - Assertions.assertEquals("etevrntfknwacy", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 263dc932dd7c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbSqlApiCollectionDatasetTypeProperties; - -public final class CosmosDbSqlApiCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiCollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collectionName\":\"datakplobzgottaksadz\"}") - .toObject(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiCollectionDatasetTypeProperties model - = new CosmosDbSqlApiCollectionDatasetTypeProperties().withCollectionName("datakplobzgottaksadz"); - model = BinaryData.fromObject(model).toObject(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java deleted file mode 100644 index 3f2f1b66f209..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSink; - -public final class CosmosDbSqlApiSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiSink model = BinaryData.fromString( - "{\"type\":\"CosmosDbSqlApiSink\",\"writeBehavior\":\"datafztrvonbtnnwamk\",\"writeBatchSize\":\"datayskm\",\"writeBatchTimeout\":\"datawsbznjngerw\",\"sinkRetryCount\":\"datalpsswoslqmftk\",\"sinkRetryWait\":\"dataafjycfbdbzb\",\"maxConcurrentConnections\":\"dataoeegal\",\"disableMetricsCollection\":\"dataqy\",\"\":{\"locnk\":\"dataz\",\"qegjv\":\"datatnhi\"}}") - .toObject(CosmosDbSqlApiSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSink model = new CosmosDbSqlApiSink().withWriteBatchSize("datayskm") - .withWriteBatchTimeout("datawsbznjngerw") - .withSinkRetryCount("datalpsswoslqmftk") - .withSinkRetryWait("dataafjycfbdbzb") - .withMaxConcurrentConnections("dataoeegal") - .withDisableMetricsCollection("dataqy") - .withWriteBehavior("datafztrvonbtnnwamk"); - 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 f95ebee9ea7a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CosmosDbSqlApiSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CosmosDbSqlApiSource; - -public final class CosmosDbSqlApiSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CosmosDbSqlApiSource model = BinaryData.fromString( - "{\"type\":\"CosmosDbSqlApiSource\",\"query\":\"datamsptcesvvr\",\"pageSize\":\"databyfhzybjrxen\",\"preferredRegions\":\"dataxanlbrcydwrc\",\"detectDatetime\":\"dataanbw\",\"additionalColumns\":\"datalqioq\",\"sourceRetryCount\":\"dataxcg\",\"sourceRetryWait\":\"datazluilzgpghjakzmn\",\"maxConcurrentConnections\":\"datanqmajs\",\"disableMetricsCollection\":\"datamjlp\",\"\":{\"ojrwpoxuy\":\"datapfyup\",\"gtxwyqkkdumxdrg\":\"dataqyoyjptkyfrk\",\"ovfundk\":\"datamsioffyboon\",\"nugcbjxgjudg\":\"datadmyxmsbtqhh\"}}") - .toObject(CosmosDbSqlApiSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CosmosDbSqlApiSource model = new CosmosDbSqlApiSource().withSourceRetryCount("dataxcg") - .withSourceRetryWait("datazluilzgpghjakzmn") - .withMaxConcurrentConnections("datanqmajs") - .withDisableMetricsCollection("datamjlp") - .withQuery("datamsptcesvvr") - .withPageSize("databyfhzybjrxen") - .withPreferredRegions("dataxanlbrcydwrc") - .withDetectDatetime("dataanbw") - .withAdditionalColumns("datalqioq"); - 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 acb154b4bac5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CouchbaseSource; - -public final class CouchbaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CouchbaseSource model = BinaryData.fromString( - "{\"type\":\"CouchbaseSource\",\"query\":\"datauyefhhdrm\",\"queryTimeout\":\"dataifgyxkgqwmpgh\",\"additionalColumns\":\"datacxqcbnkxhcodhxsb\",\"sourceRetryCount\":\"datalfw\",\"sourceRetryWait\":\"dataouuyzpaqjahjxged\",\"maxConcurrentConnections\":\"datazhofhk\",\"disableMetricsCollection\":\"datawtacgu\",\"\":{\"cmrgahs\":\"datardqrfassiii\",\"ieqonsbukznxd\":\"dataayyxgcgb\",\"oxtkmknacnfz\":\"datavqopxun\",\"gzfeyexbg\":\"dataytbhdjpagwszmw\"}}") - .toObject(CouchbaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseSource model = new CouchbaseSource().withSourceRetryCount("datalfw") - .withSourceRetryWait("dataouuyzpaqjahjxged") - .withMaxConcurrentConnections("datazhofhk") - .withDisableMetricsCollection("datawtacgu") - .withQueryTimeout("dataifgyxkgqwmpgh") - .withAdditionalColumns("datacxqcbnkxhcodhxsb") - .withQuery("datauyefhhdrm"); - model = BinaryData.fromObject(model).toObject(CouchbaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java deleted file mode 100644 index a27053fb67f2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CouchbaseTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CouchbaseTableDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CouchbaseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CouchbaseTableDataset model = BinaryData.fromString( - "{\"type\":\"CouchbaseTable\",\"typeProperties\":{\"tableName\":\"datacaujbfomf\"},\"description\":\"zpjyxefppqcwd\",\"structure\":\"datajj\",\"schema\":\"datapsnxebycympohxub\",\"linkedServiceName\":{\"referenceName\":\"n\",\"parameters\":{\"usp\":\"dataebcxn\",\"vgspjlfzhjngwqx\":\"datayzssjlmykdyg\"}},\"parameters\":{\"c\":{\"type\":\"Bool\",\"defaultValue\":\"datagyoimmsszz\"},\"nwcnvpnyldjdkj\":{\"type\":\"SecureString\",\"defaultValue\":\"dataognhtvagw\"}},\"annotations\":[\"datayknkxioxhnrjlq\"],\"folder\":{\"name\":\"ejexfdlhuhd\"},\"\":{\"cflvxbocaywmfvuh\":\"datagywadrklpdyehjr\",\"gsfmhwdxqu\":\"datamolhveol\",\"ynhitrnwqgq\":\"dataymlhklmnjqzm\",\"piqnrjoc\":\"databthb\"}}") - .toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("zpjyxefppqcwd", model.description()); - Assertions.assertEquals("n", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("c").type()); - Assertions.assertEquals("ejexfdlhuhd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CouchbaseTableDataset model = new CouchbaseTableDataset().withDescription("zpjyxefppqcwd") - .withStructure("datajj") - .withSchema("datapsnxebycympohxub") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("n") - .withParameters(mapOf("usp", "dataebcxn", "vgspjlfzhjngwqx", "datayzssjlmykdyg"))) - .withParameters( - mapOf("c", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datagyoimmsszz"), - "nwcnvpnyldjdkj", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataognhtvagw"))) - .withAnnotations(Arrays.asList("datayknkxioxhnrjlq")) - .withFolder(new DatasetFolder().withName("ejexfdlhuhd")) - .withTableName("datacaujbfomf"); - model = BinaryData.fromObject(model).toObject(CouchbaseTableDataset.class); - Assertions.assertEquals("zpjyxefppqcwd", model.description()); - Assertions.assertEquals("n", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("c").type()); - Assertions.assertEquals("ejexfdlhuhd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java deleted file mode 100644 index e4ae9c0db4b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionRequestTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CreateDataFlowDebugSessionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateDataFlowDebugSessionRequest model = BinaryData.fromString( - "{\"computeType\":\"qfrddgam\",\"coreCount\":534741289,\"timeToLive\":362279180,\"integrationRuntime\":{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"sjuivfcdisyir\",\"\":{\"xrxzbujrtr\":\"datahcz\",\"khgn\":\"dataqvwre\",\"piqywnc\":\"datanzonzl\",\"zehtdhgb\":\"datajtszcof\"}},\"name\":\"vreljea\"}}") - .toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("qfrddgam", model.computeType()); - Assertions.assertEquals(534741289, model.coreCount()); - Assertions.assertEquals(362279180, model.timeToLive()); - Assertions.assertEquals("vreljea", model.integrationRuntime().name()); - Assertions.assertEquals("sjuivfcdisyir", model.integrationRuntime().properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionRequest model = new CreateDataFlowDebugSessionRequest().withComputeType("qfrddgam") - .withCoreCount(534741289) - .withTimeToLive(362279180) - .withIntegrationRuntime(new IntegrationRuntimeDebugResource().withName("vreljea") - .withProperties(new IntegrationRuntime().withDescription("sjuivfcdisyir") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")))); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionRequest.class); - Assertions.assertEquals("qfrddgam", model.computeType()); - Assertions.assertEquals(534741289, model.coreCount()); - Assertions.assertEquals(362279180, model.timeToLive()); - Assertions.assertEquals("vreljea", model.integrationRuntime().name()); - Assertions.assertEquals("sjuivfcdisyir", model.integrationRuntime().properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java deleted file mode 100644 index 9d66012f51be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateDataFlowDebugSessionResponseInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CreateDataFlowDebugSessionResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CreateDataFlowDebugSessionResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateDataFlowDebugSessionResponseInner model - = BinaryData.fromString("{\"status\":\"srboldforobw\",\"sessionId\":\"vizbfhfo\"}") - .toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("srboldforobw", model.status()); - Assertions.assertEquals("vizbfhfo", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateDataFlowDebugSessionResponseInner model - = new CreateDataFlowDebugSessionResponseInner().withStatus("srboldforobw").withSessionId("vizbfhfo"); - model = BinaryData.fromObject(model).toObject(CreateDataFlowDebugSessionResponseInner.class); - Assertions.assertEquals("srboldforobw", model.status()); - Assertions.assertEquals("vizbfhfo", model.sessionId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java deleted file mode 100644 index b3b56bd0fd34..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateLinkedIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class CreateLinkedIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateLinkedIntegrationRuntimeRequest model = BinaryData.fromString( - "{\"name\":\"ni\",\"subscriptionId\":\"x\",\"dataFactoryName\":\"kpycgklwndnhjd\",\"dataFactoryLocation\":\"whvylw\"}") - .toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ni", model.name()); - Assertions.assertEquals("x", model.subscriptionId()); - Assertions.assertEquals("kpycgklwndnhjd", model.dataFactoryName()); - Assertions.assertEquals("whvylw", model.dataFactoryLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateLinkedIntegrationRuntimeRequest model = new CreateLinkedIntegrationRuntimeRequest().withName("ni") - .withSubscriptionId("x") - .withDataFactoryName("kpycgklwndnhjd") - .withDataFactoryLocation("whvylw"); - model = BinaryData.fromObject(model).toObject(CreateLinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("ni", model.name()); - Assertions.assertEquals("x", model.subscriptionId()); - Assertions.assertEquals("kpycgklwndnhjd", model.dataFactoryName()); - Assertions.assertEquals("whvylw", model.dataFactoryLocation()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java deleted file mode 100644 index 109f89704ae7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CreateRunResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CreateRunResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CreateRunResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateRunResponseInner model - = BinaryData.fromString("{\"runId\":\"kokwbqplhlvnu\"}").toObject(CreateRunResponseInner.class); - Assertions.assertEquals("kokwbqplhlvnu", model.runId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateRunResponseInner model = new CreateRunResponseInner().withRunId("kokwbqplhlvnu"); - model = BinaryData.fromObject(model).toObject(CreateRunResponseInner.class); - Assertions.assertEquals("kokwbqplhlvnu", model.runId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java deleted file mode 100644 index af061cf088a3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialListResponseTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.Credential; -import com.azure.resourcemanager.datafactory.models.CredentialListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"Credential\",\"description\":\"iwdcxsmlzzhzd\",\"annotations\":[\"datatlgy\",\"datalhqvlnnpxybafi\",\"datageaar\",\"datagjekglklby\"],\"\":{\"wvmzegjonfhjir\":\"datadw\",\"z\":\"datagdn\",\"tk\":\"datarfkspzhz\",\"lkeuac\":\"datajcitdigsxcdglj\"}},\"name\":\"omflrytswfp\",\"type\":\"dgycxnmskwhqjjy\",\"etag\":\"urlpshh\",\"id\":\"pedwqsl\"},{\"properties\":{\"type\":\"Credential\",\"description\":\"hmpqvw\",\"annotations\":[\"dataondcbrw\",\"datamuvqejosovyr\"],\"\":{\"sinuqtljqobbpih\":\"dataa\",\"bbmpxdlvykfre\":\"datahcecybmrqbr\"}},\"name\":\"rseqwjksghudgz\",\"type\":\"ogjggsvoujkxibda\",\"etag\":\"rkmdyom\",\"id\":\"fbvfbhdy\"},{\"properties\":{\"type\":\"Credential\",\"description\":\"hpwpgddeimawzovg\",\"annotations\":[\"datamuikjcjcaztbws\"],\"\":{\"ytwvczcswkacve\":\"dataowxwcomli\",\"pqthehnmnaoya\":\"datayfdvlvhbwrnfxtgd\"}},\"name\":\"coeqswankltytm\",\"type\":\"roznnhdrlktgj\",\"etag\":\"gguxhemlwyw\",\"id\":\"eczgfb\"},{\"properties\":{\"type\":\"Credential\",\"description\":\"klelssxb\",\"annotations\":[\"datasxz\"],\"\":{\"sqplpvmjcd\":\"datasrlsmd\"}},\"name\":\"wb\",\"type\":\"yvteowxvgpiudeu\",\"etag\":\"sxze\",\"id\":\"axwk\"}],\"nextLink\":\"ykhv\"}") - .toObject(CredentialListResponse.class); - Assertions.assertEquals("pedwqsl", model.value().get(0).id()); - Assertions.assertEquals("iwdcxsmlzzhzd", model.value().get(0).properties().description()); - Assertions.assertEquals("ykhv", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialListResponse model - = new CredentialListResponse() - .withValue(Arrays.asList( - new CredentialResourceInner().withId("pedwqsl") - .withProperties(new Credential().withDescription("iwdcxsmlzzhzd") - .withAnnotations( - Arrays.asList("datatlgy", "datalhqvlnnpxybafi", "datageaar", "datagjekglklby")) - .withAdditionalProperties(mapOf("type", "Credential"))), - new CredentialResourceInner().withId("fbvfbhdy") - .withProperties(new Credential().withDescription("hmpqvw") - .withAnnotations(Arrays.asList("dataondcbrw", "datamuvqejosovyr")) - .withAdditionalProperties(mapOf("type", "Credential"))), - new CredentialResourceInner().withId("eczgfb") - .withProperties(new Credential().withDescription("hpwpgddeimawzovg") - .withAnnotations(Arrays.asList("datamuikjcjcaztbws")) - .withAdditionalProperties(mapOf("type", "Credential"))), - new CredentialResourceInner().withId("axwk") - .withProperties(new Credential().withDescription("klelssxb") - .withAnnotations(Arrays.asList("datasxz")) - .withAdditionalProperties(mapOf("type", "Credential"))))) - .withNextLink("ykhv"); - model = BinaryData.fromObject(model).toObject(CredentialListResponse.class); - Assertions.assertEquals("pedwqsl", model.value().get(0).id()); - Assertions.assertEquals("iwdcxsmlzzhzd", model.value().get(0).properties().description()); - Assertions.assertEquals("ykhv", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index ef04355f2f73..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Credential; -import com.azure.resourcemanager.datafactory.models.CredentialResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Credential\",\"description\":\"rgwmge\",\"annotations\":[\"datairnfnlyvdryx\",\"datauqwtazuacawxs\",\"datas\"],\"\":{\"xycvoexbxr\":\"databbqqtvp\",\"acgmnelozzfwyegd\":\"datarvxwlfmbb\"}},\"name\":\"fktmdlf\",\"type\":\"jucpt\",\"etag\":\"esdfujfpn\",\"id\":\"zablqmsybvjf\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CredentialResource response = manager.credentialOperations() - .define("z") - .withExistingFactory("gunnjwmdtb", "qtomcbaiamtdfpkf") - .withProperties(new Credential().withDescription("elxd") - .withAnnotations(Arrays.asList("datafsteouzoglvtz", "datajlejvlf", "datazrqkgibpeh", "databctz")) - .withAdditionalProperties(mapOf("type", "Credential"))) - .withIfMatch("par") - .create(); - - Assertions.assertEquals("zablqmsybvjf", response.id()); - Assertions.assertEquals("rgwmge", 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 44cf7372d441..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialOperationsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.credentialOperations() - .deleteWithResponse("fjsseem", "dfmlail", "xausivh", 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 3d2b15f43932..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CredentialResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Credential\",\"description\":\"dlcstucswhmns\",\"annotations\":[\"datahmatfgoerjmhtxip\",\"datavwzbkgt\"],\"\":{\"zeu\":\"datarzmkte\",\"l\":\"dataxt\",\"gpcccg\":\"datajcwlfzxxpwexck\"}},\"name\":\"knjjskzuh\",\"type\":\"yavfeyybyduy\",\"etag\":\"ty\",\"id\":\"miy\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CredentialResource response = manager.credentialOperations() - .getWithResponse("ayjeh", "vowvqpncif", "xtib", "qrhz", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("miy", response.id()); - Assertions.assertEquals("dlcstucswhmns", 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 05e922f78bf8..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CredentialResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CredentialOperationsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"Credential\",\"description\":\"qfzvvtifcqsuem\",\"annotations\":[\"datautovbpnrfu\"],\"\":{\"psdpfwjcw\":\"datamhmzc\",\"ajtbmjokttqgo\":\"databunfymbwinu\"}},\"name\":\"ajuylkfl\",\"type\":\"ofjskndwywbptvym\",\"etag\":\"pdcddbeozhprlxxb\",\"id\":\"z\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.credentialOperations() - .listByFactory("wugpnses", "wkhkcdtofakm", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("z", response.iterator().next().id()); - Assertions.assertEquals("qfzvvtifcqsuem", response.iterator().next().properties().description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java deleted file mode 100644 index a810de82b01f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialReferenceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.CredentialReferenceType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialReference model = BinaryData.fromString( - "{\"type\":\"CredentialReference\",\"referenceName\":\"ypefcpczshnuqnda\",\"\":{\"tvegwqiukvzwy\":\"datapfkhuytuszxhmt\",\"i\":\"datawtthaokgksk\",\"hajqfuk\":\"databs\",\"hwu\":\"dataeexpgeumi\"}}") - .toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("ypefcpczshnuqnda", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialReference model = new CredentialReference().withType(CredentialReferenceType.CREDENTIAL_REFERENCE) - .withReferenceName("ypefcpczshnuqnda") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(CredentialReference.class); - Assertions.assertEquals(CredentialReferenceType.CREDENTIAL_REFERENCE, model.type()); - Assertions.assertEquals("ypefcpczshnuqnda", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialResourceInnerTests.java deleted file mode 100644 index fcc99a797401..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialResourceInnerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CredentialResourceInner; -import com.azure.resourcemanager.datafactory.models.Credential; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CredentialResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Credential\",\"description\":\"xepmrut\",\"annotations\":[\"databaobn\",\"datalujdjltymkmv\",\"datauihywart\",\"datapphkixkykxds\"],\"\":{\"kkflrmymyincqlhr\":\"dataemmucfxh\",\"sl\":\"datas\",\"ctotiowlx\":\"dataiiiovgqcgxuugq\"}},\"name\":\"qd\",\"type\":\"jgwdtgukranbl\",\"etag\":\"hqlkccuzgygqwaho\",\"id\":\"lwgniiprglvawu\"}") - .toObject(CredentialResourceInner.class); - Assertions.assertEquals("lwgniiprglvawu", model.id()); - Assertions.assertEquals("xepmrut", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CredentialResourceInner model = new CredentialResourceInner().withId("lwgniiprglvawu") - .withProperties(new Credential().withDescription("xepmrut") - .withAnnotations(Arrays.asList("databaobn", "datalujdjltymkmv", "datauihywart", "datapphkixkykxds")) - .withAdditionalProperties(mapOf("type", "Credential"))); - model = BinaryData.fromObject(model).toObject(CredentialResourceInner.class); - Assertions.assertEquals("lwgniiprglvawu", model.id()); - Assertions.assertEquals("xepmrut", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java deleted file mode 100644 index 0b23e23851b3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CredentialTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Credential; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CredentialTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Credential model = BinaryData.fromString( - "{\"type\":\"Credential\",\"description\":\"d\",\"annotations\":[\"datapivlsbbjpm\",\"dataubkmifo\"],\"\":{\"ovpbbttefjoknssq\":\"dataubvphavpmhbrbqgv\"}}") - .toObject(Credential.class); - Assertions.assertEquals("d", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Credential model = new Credential().withDescription("d") - .withAnnotations(Arrays.asList("datapivlsbbjpm", "dataubkmifo")) - .withAdditionalProperties(mapOf("type", "Credential")); - model = BinaryData.fromObject(model).toObject(Credential.class); - Assertions.assertEquals("d", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java deleted file mode 100644 index 50ca97bba8ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityReferenceObjectTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomActivityReferenceObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomActivityReferenceObject model = BinaryData.fromString( - "{\"linkedServices\":[{\"referenceName\":\"uttlmfc\",\"parameters\":{\"okdqkfbpf\":\"datagaiypihqmmm\"}},{\"referenceName\":\"xnivvuwrvghlzr\",\"parameters\":{\"pbddhfkjsqqqun\":\"datapipwtrtrbf\",\"uyhvaovoqonqjlpc\":\"dataawzkefz\",\"tyz\":\"datayqiytrhhmld\"}}],\"datasets\":[{\"referenceName\":\"st\",\"parameters\":{\"mcprg\":\"datafgzovbbcsbcfe\",\"gvxhw\":\"datachfssbqwvr\",\"mfbl\":\"dataqipfrrvngill\",\"mdffoibx\":\"datagekouxurlifc\"}},{\"referenceName\":\"gcuppwsgawq\",\"parameters\":{\"qbt\":\"datanjz\"}},{\"referenceName\":\"ft\",\"parameters\":{\"ga\":\"datazhox\",\"vtefevhedfzxs\":\"datanouh\"}},{\"referenceName\":\"ypara\",\"parameters\":{\"iqgqvprl\":\"datasfnjokrf\",\"xdxnmuosoziqcui\":\"datasglqiuqsqzu\",\"tgeejxwbredxmd\":\"datakuyaxpuk\",\"oaejylqgenbe\":\"datafxlkwy\"}}]}") - .toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("uttlmfc", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("st", 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("uttlmfc") - .withParameters(mapOf("okdqkfbpf", "datagaiypihqmmm")), - new LinkedServiceReference().withReferenceName("xnivvuwrvghlzr") - .withParameters(mapOf("pbddhfkjsqqqun", "datapipwtrtrbf", "uyhvaovoqonqjlpc", "dataawzkefz", "tyz", - "datayqiytrhhmld")))) - .withDatasets(Arrays.asList( - new DatasetReference().withReferenceName("st") - .withParameters(mapOf("mcprg", "datafgzovbbcsbcfe", "gvxhw", "datachfssbqwvr", "mfbl", - "dataqipfrrvngill", "mdffoibx", "datagekouxurlifc")), - new DatasetReference().withReferenceName("gcuppwsgawq").withParameters(mapOf("qbt", "datanjz")), - new DatasetReference().withReferenceName("ft") - .withParameters(mapOf("ga", "datazhox", "vtefevhedfzxs", "datanouh")), - new DatasetReference().withReferenceName("ypara") - .withParameters(mapOf("iqgqvprl", "datasfnjokrf", "xdxnmuosoziqcui", "datasglqiuqsqzu", - "tgeejxwbredxmd", "datakuyaxpuk", "oaejylqgenbe", "datafxlkwy")))); - model = BinaryData.fromObject(model).toObject(CustomActivityReferenceObject.class); - Assertions.assertEquals("uttlmfc", model.linkedServices().get(0).referenceName()); - Assertions.assertEquals("st", 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 006bed3d38a8..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\":\"Custom\",\"typeProperties\":{\"command\":\"datazqg\",\"resourceLinkedService\":{\"referenceName\":\"arbvblatvbjkq\",\"parameters\":{\"fej\":\"datadgi\",\"ifujynfjwktiyhiy\":\"dataipe\",\"pdafuft\":\"dataatvaodif\"}},\"folderPath\":\"datapsjrqhgnr\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"wtrxpwuxy\",\"parameters\":{\"oakutdth\":\"datamvshgbjukaswg\",\"tjsebcuynqdl\":\"dataoafhhiyk\",\"vqu\":\"dataptefdvjgbemrjb\"}},{\"referenceName\":\"pdprjethyhbnoye\",\"parameters\":{\"giqoib\":\"datavdrzxobtek\"}},{\"referenceName\":\"aumoguzx\",\"parameters\":{\"tpgkybdktyvr\":\"datarj\",\"psc\":\"datamrqbeqzhnpx\",\"dn\":\"datanygajqmpfrgouwef\",\"akdyqxjpzykkw\":\"datagathvlwhr\"}}],\"datasets\":[{\"referenceName\":\"kpby\",\"parameters\":{\"bsdg\":\"datawi\"}},{\"referenceName\":\"he\",\"parameters\":{\"urthmbgavw\":\"datarbojzfsznephb\",\"mi\":\"dataqjetoaijayvu\"}},{\"referenceName\":\"fnqjcx\",\"parameters\":{\"noxjbhltxtpgqqin\":\"dataeqwxivjhmld\",\"cwawblkkc\":\"dataktayafg\",\"ncqqhbjmvbe\":\"dataixsgklxgsqhczok\",\"ejnwwqyyfctfs\":\"datanlukeqzcbqv\"}}]},\"extendedProperties\":{\"rybbhktnuzor\":\"datarugh\",\"izjqpdfsaut\":\"dataa\"},\"retentionTimeInDays\":\"datatisl\",\"autoUserSpecification\":\"dataxs\"},\"linkedServiceName\":{\"referenceName\":\"diqemcghorrj\",\"parameters\":{\"cfnzpybrflqv\":\"dataczbbvrmvhtmzwgi\"}},\"policy\":{\"timeout\":\"dataqwpmmm\",\"retry\":\"datap\",\"retryIntervalInSeconds\":910562634,\"secureInput\":true,\"secureOutput\":false,\"\":{\"gfqgefxypxmkexjo\":\"databgboqnciiiwuufo\",\"jdaxezfdsoglji\":\"dataa\",\"aifwogqwdxtpmfa\":\"datawduwn\",\"znnkmms\":\"datahk\"}},\"name\":\"nigjoxhzcmgmcsj\",\"description\":\"bu\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"fvbayqwj\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Completed\",\"Failed\"],\"\":{\"uupbihuinjy\":\"datakxl\",\"ejryvvu\":\"datanqwep\"}},{\"activity\":\"tcnxtpamwjbm\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"ycknq\":\"datajutvovhuifblyv\"}},{\"activity\":\"bvssjby\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Succeeded\"],\"\":{\"u\":\"datannqifuhsjz\",\"upfndafrziwjcy\":\"datamplt\",\"vd\":\"datazaneave\"}}],\"userProperties\":[{\"name\":\"hworhzes\",\"value\":\"datadvmxu\"},{\"name\":\"rqpawwjvdohz\",\"value\":\"datawu\"},{\"name\":\"lae\",\"value\":\"datahftlsfwpvflm\"},{\"name\":\"jdu\",\"value\":\"datatxbrj\"}],\"\":{\"uqwdmny\":\"datay\",\"ornzpr\":\"datafvxfsshocxd\"}}") - .toObject(CustomActivity.class); - Assertions.assertEquals("nigjoxhzcmgmcsj", model.name()); - Assertions.assertEquals("bu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("fvbayqwj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hworhzes", model.userProperties().get(0).name()); - Assertions.assertEquals("diqemcghorrj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(910562634, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("arbvblatvbjkq", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("wtrxpwuxy", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("kpby", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivity model = new CustomActivity().withName("nigjoxhzcmgmcsj") - .withDescription("bu") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("fvbayqwj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tcnxtpamwjbm") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bvssjby") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("hworhzes").withValue("datadvmxu"), - new UserProperty().withName("rqpawwjvdohz").withValue("datawu"), - new UserProperty().withName("lae").withValue("datahftlsfwpvflm"), - new UserProperty().withName("jdu").withValue("datatxbrj"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("diqemcghorrj") - .withParameters(mapOf("cfnzpybrflqv", "dataczbbvrmvhtmzwgi"))) - .withPolicy(new ActivityPolicy().withTimeout("dataqwpmmm") - .withRetry("datap") - .withRetryIntervalInSeconds(910562634) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withCommand("datazqg") - .withResourceLinkedService(new LinkedServiceReference().withReferenceName("arbvblatvbjkq") - .withParameters(mapOf("fej", "datadgi", "ifujynfjwktiyhiy", "dataipe", "pdafuft", "dataatvaodif"))) - .withFolderPath("datapsjrqhgnr") - .withReferenceObjects(new CustomActivityReferenceObject() - .withLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("wtrxpwuxy") - .withParameters(mapOf("oakutdth", "datamvshgbjukaswg", "tjsebcuynqdl", "dataoafhhiyk", "vqu", - "dataptefdvjgbemrjb")), - new LinkedServiceReference().withReferenceName("pdprjethyhbnoye") - .withParameters(mapOf("giqoib", "datavdrzxobtek")), - new LinkedServiceReference().withReferenceName("aumoguzx") - .withParameters(mapOf("tpgkybdktyvr", "datarj", "psc", "datamrqbeqzhnpx", "dn", - "datanygajqmpfrgouwef", "akdyqxjpzykkw", "datagathvlwhr")))) - .withDatasets(Arrays.asList( - new DatasetReference().withReferenceName("kpby").withParameters(mapOf("bsdg", "datawi")), - new DatasetReference().withReferenceName("he") - .withParameters(mapOf("urthmbgavw", "datarbojzfsznephb", "mi", "dataqjetoaijayvu")), - new DatasetReference().withReferenceName("fnqjcx") - .withParameters(mapOf("noxjbhltxtpgqqin", "dataeqwxivjhmld", "cwawblkkc", "dataktayafg", - "ncqqhbjmvbe", "dataixsgklxgsqhczok", "ejnwwqyyfctfs", "datanlukeqzcbqv"))))) - .withExtendedProperties(mapOf("rybbhktnuzor", "datarugh", "izjqpdfsaut", "dataa")) - .withRetentionTimeInDays("datatisl") - .withAutoUserSpecification("dataxs"); - model = BinaryData.fromObject(model).toObject(CustomActivity.class); - Assertions.assertEquals("nigjoxhzcmgmcsj", model.name()); - Assertions.assertEquals("bu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("fvbayqwj", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hworhzes", model.userProperties().get(0).name()); - Assertions.assertEquals("diqemcghorrj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(910562634, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("arbvblatvbjkq", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("wtrxpwuxy", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("kpby", 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 3fa0b7425aff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomActivityTypePropertiesTests.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.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\":\"datagmmgtqgzdfjfnree\",\"resourceLinkedService\":{\"referenceName\":\"bumyu\",\"parameters\":{\"rikdfacf\":\"datazfotfoif\",\"fxbqdrjuni\":\"datakbgohxbjizf\"}},\"folderPath\":\"datanhnnghgazdbve\",\"referenceObjects\":{\"linkedServices\":[{\"referenceName\":\"ti\",\"parameters\":{\"pydjdpapndmv\":\"datawrncwhlxvngj\",\"vvtapwkwkthm\":\"databd\",\"npjzx\":\"dataxidecdehskmfiu\"}},{\"referenceName\":\"htsgyyrgdguvkg\",\"parameters\":{\"kznffqv\":\"datag\",\"rwgdpf\":\"dataxnytihhqancw\",\"tkrsn\":\"datady\"}}],\"datasets\":[{\"referenceName\":\"amyolvgkslaiuon\",\"parameters\":{\"wzduhixomxvb\":\"datawvwzuetqcxoamxu\",\"xipgfkcodou\":\"datauzxsn\",\"l\":\"dataeozgnwmcizclnqe\"}},{\"referenceName\":\"pwp\",\"parameters\":{\"spslcvpqwrsf\":\"datajsjkondrkncfoq\",\"xsggaegrppwo\":\"datapi\"}},{\"referenceName\":\"ig\",\"parameters\":{\"yjzokvy\":\"datatophcwzdw\",\"prnqjxsexzxbiwn\":\"datainmywjcfkmfoztwm\",\"ylfdryes\":\"dataewqtbztogih\"}},{\"referenceName\":\"alsparbjs\",\"parameters\":{\"lvnosblc\":\"databvgemkze\",\"nhkp\":\"datactwac\"}}]},\"extendedProperties\":{\"untm\":\"datajhykptci\",\"ccqhtlqrfsrfxr\":\"datafh\",\"dybhydlq\":\"dataxxymtcwacavz\",\"st\":\"dataxid\"},\"retentionTimeInDays\":\"datahnsaespzwgpjri\",\"autoUserSpecification\":\"dataao\"}") - .toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("bumyu", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("ti", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("amyolvgkslaiuon", model.referenceObjects().datasets().get(0).referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomActivityTypeProperties model = new CustomActivityTypeProperties().withCommand("datagmmgtqgzdfjfnree") - .withResourceLinkedService(new LinkedServiceReference().withReferenceName("bumyu") - .withParameters(mapOf("rikdfacf", "datazfotfoif", "fxbqdrjuni", "datakbgohxbjizf"))) - .withFolderPath("datanhnnghgazdbve") - .withReferenceObjects(new CustomActivityReferenceObject() - .withLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("ti") - .withParameters(mapOf("pydjdpapndmv", "datawrncwhlxvngj", "vvtapwkwkthm", "databd", "npjzx", - "dataxidecdehskmfiu")), - new LinkedServiceReference().withReferenceName("htsgyyrgdguvkg") - .withParameters(mapOf("kznffqv", "datag", "rwgdpf", "dataxnytihhqancw", "tkrsn", "datady")))) - .withDatasets(Arrays.asList( - new DatasetReference().withReferenceName("amyolvgkslaiuon") - .withParameters(mapOf("wzduhixomxvb", "datawvwzuetqcxoamxu", "xipgfkcodou", "datauzxsn", "l", - "dataeozgnwmcizclnqe")), - new DatasetReference().withReferenceName("pwp") - .withParameters(mapOf("spslcvpqwrsf", "datajsjkondrkncfoq", "xsggaegrppwo", "datapi")), - new DatasetReference().withReferenceName("ig") - .withParameters(mapOf("yjzokvy", "datatophcwzdw", "prnqjxsexzxbiwn", "datainmywjcfkmfoztwm", - "ylfdryes", "dataewqtbztogih")), - new DatasetReference().withReferenceName("alsparbjs") - .withParameters(mapOf("lvnosblc", "databvgemkze", "nhkp", "datactwac"))))) - .withExtendedProperties(mapOf("untm", "datajhykptci", "ccqhtlqrfsrfxr", "datafh", "dybhydlq", - "dataxxymtcwacavz", "st", "dataxid")) - .withRetentionTimeInDays("datahnsaespzwgpjri") - .withAutoUserSpecification("dataao"); - model = BinaryData.fromObject(model).toObject(CustomActivityTypeProperties.class); - Assertions.assertEquals("bumyu", model.resourceLinkedService().referenceName()); - Assertions.assertEquals("ti", model.referenceObjects().linkedServices().get(0).referenceName()); - Assertions.assertEquals("amyolvgkslaiuon", 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 80f93aa67538..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDataSourceLinkedServiceTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomDataSourceLinkedService; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomDataSourceLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDataSourceLinkedService model = BinaryData.fromString( - "{\"type\":\"CustomDataSource\",\"typeProperties\":\"datahrjwyxduwimwnuvj\",\"version\":\"wpfxi\",\"connectVia\":{\"referenceName\":\"fkmnj\",\"parameters\":{\"cbpkig\":\"datawmyjdbcknsojtmpd\",\"dwgussctnppxxeys\":\"datavvaitkce\",\"zmvnbckls\":\"dataenfwugonysemun\"}},\"description\":\"uuksvfsukpkiea\",\"parameters\":{\"cezt\":{\"type\":\"Float\",\"defaultValue\":\"datannen\"},\"ohjx\":{\"type\":\"Int\",\"defaultValue\":\"datazwk\"},\"uudr\":{\"type\":\"Object\",\"defaultValue\":\"datamvuamorhkne\"}},\"annotations\":[\"dataznk\",\"dataarjii\",\"datapbychcwhlhdzdcrl\",\"datacmeyxypxlzcr\"],\"\":{\"c\":\"datavj\",\"fh\":\"dataetpdezebvtkgzjna\",\"kogcvazozo\":\"dataeilnhkcxuounzz\"}}") - .toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("wpfxi", model.version()); - Assertions.assertEquals("fkmnj", model.connectVia().referenceName()); - Assertions.assertEquals("uuksvfsukpkiea", model.description()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("cezt").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataSourceLinkedService model = new CustomDataSourceLinkedService().withVersion("wpfxi") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("fkmnj") - .withParameters(mapOf("cbpkig", "datawmyjdbcknsojtmpd", "dwgussctnppxxeys", "datavvaitkce", "zmvnbckls", - "dataenfwugonysemun"))) - .withDescription("uuksvfsukpkiea") - .withParameters(mapOf("cezt", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datannen"), "ohjx", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datazwk"), "uudr", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datamvuamorhkne"))) - .withAnnotations(Arrays.asList("dataznk", "dataarjii", "datapbychcwhlhdzdcrl", "datacmeyxypxlzcr")) - .withTypeProperties("datahrjwyxduwimwnuvj"); - model = BinaryData.fromObject(model).toObject(CustomDataSourceLinkedService.class); - Assertions.assertEquals("wpfxi", model.version()); - Assertions.assertEquals("fkmnj", model.connectVia().referenceName()); - Assertions.assertEquals("uuksvfsukpkiea", model.description()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("cezt").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java deleted file mode 100644 index 6c753dce56d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomDataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDataset model = BinaryData.fromString( - "{\"type\":\"CustomDataset\",\"typeProperties\":\"dataxvmdr\",\"description\":\"n\",\"structure\":\"dataovazoymdvhhpl\",\"schema\":\"datawwd\",\"linkedServiceName\":{\"referenceName\":\"atveqm\",\"parameters\":{\"armhpwbuklv\":\"dataswzeyxry\",\"aemcezevftmh\":\"datamfasgtlvhqpoilos\",\"okjyghzt\":\"datal\"}},\"parameters\":{\"vwiftd\":{\"type\":\"Array\",\"defaultValue\":\"datatpcflcezsw\"},\"jnqswxd\":{\"type\":\"Int\",\"defaultValue\":\"databfpfhruptsyq\"},\"clqddnhfknebw\":{\"type\":\"Object\",\"defaultValue\":\"datamxqukrcdio\"}},\"annotations\":[\"datapnyzcwyjs\",\"datakaqldqabnwvpa\",\"databqxfbb\",\"datagcfddofxnfb\"],\"folder\":{\"name\":\"yrqaedwovoc\"},\"\":{\"fmi\":\"datagoeayokr\"}}") - .toObject(CustomDataset.class); - Assertions.assertEquals("n", model.description()); - Assertions.assertEquals("atveqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vwiftd").type()); - Assertions.assertEquals("yrqaedwovoc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDataset model - = new CustomDataset().withDescription("n") - .withStructure("dataovazoymdvhhpl") - .withSchema("datawwd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("atveqm") - .withParameters(mapOf("armhpwbuklv", "dataswzeyxry", "aemcezevftmh", "datamfasgtlvhqpoilos", - "okjyghzt", "datal"))) - .withParameters(mapOf("vwiftd", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datatpcflcezsw"), - "jnqswxd", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("databfpfhruptsyq"), - "clqddnhfknebw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datamxqukrcdio"))) - .withAnnotations(Arrays.asList("datapnyzcwyjs", "datakaqldqabnwvpa", "databqxfbb", "datagcfddofxnfb")) - .withFolder(new DatasetFolder().withName("yrqaedwovoc")) - .withTypeProperties("dataxvmdr"); - model = BinaryData.fromObject(model).toObject(CustomDataset.class); - Assertions.assertEquals("n", model.description()); - Assertions.assertEquals("atveqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vwiftd").type()); - Assertions.assertEquals("yrqaedwovoc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java deleted file mode 100644 index 1251e859a58f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomEventsTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CustomEventsTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomEventsTrigger model = BinaryData.fromString( - "{\"type\":\"CustomEventsTrigger\",\"typeProperties\":{\"subjectBeginsWith\":\"moxnelhxhz\",\"subjectEndsWith\":\"zbnkofcs\",\"events\":[\"datapwahehuc\",\"dataprgpm\"],\"scope\":\"tjvuhcw\"},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"sklvtcea\",\"name\":\"uurqlcdhe\"},\"parameters\":{\"suqps\":\"datahpaywwesa\",\"hxqsbyy\":\"datavxbdlraridiat\",\"oaomogkpcwffo\":\"dataeyopgyygrnyfj\",\"zgqkxsoavbteaegy\":\"dataomxmvgj\"}},{\"pipelineReference\":{\"referenceName\":\"ytoepcdhqjczh\",\"name\":\"tlvujbh\"},\"parameters\":{\"kjjjbitmuri\":\"datazrhfwci\",\"masodsmjn\":\"datazyrgzxprtf\"}},{\"pipelineReference\":{\"referenceName\":\"doomhrlgidqxbrdh\",\"name\":\"cq\"},\"parameters\":{\"hienkliyfgkzwkyq\":\"datapjd\"}}],\"description\":\"diybdoyykhi\",\"runtimeState\":\"Stopped\",\"annotations\":[\"dataktwijoxkkynppqt\"],\"\":{\"wjatyhkqqj\":\"dataf\"}}") - .toObject(CustomEventsTrigger.class); - Assertions.assertEquals("diybdoyykhi", model.description()); - Assertions.assertEquals("sklvtcea", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("uurqlcdhe", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("moxnelhxhz", model.subjectBeginsWith()); - Assertions.assertEquals("zbnkofcs", model.subjectEndsWith()); - Assertions.assertEquals("tjvuhcw", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTrigger model = new CustomEventsTrigger().withDescription("diybdoyykhi") - .withAnnotations(Arrays.asList("dataktwijoxkkynppqt")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("sklvtcea").withName("uurqlcdhe")) - .withParameters(mapOf("suqps", "datahpaywwesa", "hxqsbyy", "datavxbdlraridiat", "oaomogkpcwffo", - "dataeyopgyygrnyfj", "zgqkxsoavbteaegy", "dataomxmvgj")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("ytoepcdhqjczh").withName("tlvujbh")) - .withParameters(mapOf("kjjjbitmuri", "datazrhfwci", "masodsmjn", "datazyrgzxprtf")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("doomhrlgidqxbrdh").withName("cq")) - .withParameters(mapOf("hienkliyfgkzwkyq", "datapjd")))) - .withSubjectBeginsWith("moxnelhxhz") - .withSubjectEndsWith("zbnkofcs") - .withEvents(Arrays.asList("datapwahehuc", "dataprgpm")) - .withScope("tjvuhcw"); - model = BinaryData.fromObject(model).toObject(CustomEventsTrigger.class); - Assertions.assertEquals("diybdoyykhi", model.description()); - Assertions.assertEquals("sklvtcea", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("uurqlcdhe", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals("moxnelhxhz", model.subjectBeginsWith()); - Assertions.assertEquals("zbnkofcs", model.subjectEndsWith()); - Assertions.assertEquals("tjvuhcw", 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 ae250060f009..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomEventsTriggerTypePropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.CustomEventsTriggerTypeProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CustomEventsTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomEventsTriggerTypeProperties model = BinaryData.fromString( - "{\"subjectBeginsWith\":\"moinqzv\",\"subjectEndsWith\":\"fpu\",\"events\":[\"datayhs\",\"datahamwofqnttbkjcgu\",\"dataxnuvshguub\",\"datamv\"],\"scope\":\"pguiyogvafbdz\"}") - .toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("moinqzv", model.subjectBeginsWith()); - Assertions.assertEquals("fpu", model.subjectEndsWith()); - Assertions.assertEquals("pguiyogvafbdz", model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomEventsTriggerTypeProperties model - = new CustomEventsTriggerTypeProperties().withSubjectBeginsWith("moinqzv") - .withSubjectEndsWith("fpu") - .withEvents(Arrays.asList("datayhs", "datahamwofqnttbkjcgu", "dataxnuvshguub", "datamv")) - .withScope("pguiyogvafbdz"); - model = BinaryData.fromObject(model).toObject(CustomEventsTriggerTypeProperties.class); - Assertions.assertEquals("moinqzv", model.subjectBeginsWith()); - Assertions.assertEquals("fpu", model.subjectEndsWith()); - Assertions.assertEquals("pguiyogvafbdz", model.scope()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java deleted file mode 100644 index a748844197db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/CustomSetupBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CustomSetupBase; - -public final class CustomSetupBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomSetupBase model = BinaryData.fromString("{\"type\":\"CustomSetupBase\"}").toObject(CustomSetupBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomSetupBase model = new CustomSetupBase(); - model = BinaryData.fromObject(model).toObject(CustomSetupBase.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DWCopyCommandDefaultValueTests.java deleted file mode 100644 index 7f88e69c024d..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\":\"dataflizmul\",\"defaultValue\":\"dataaulwlzekygnepj\"}") - .toObject(DWCopyCommandDefaultValue.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandDefaultValue model - = new DWCopyCommandDefaultValue().withColumnName("dataflizmul").withDefaultValue("dataaulwlzekygnepj"); - 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 95ff5531e859..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\":\"dataijyxcmqcggksrorx\",\"defaultValue\":\"datafhar\"},{\"columnName\":\"dataltlftraylxz\",\"defaultValue\":\"datajpu\"},{\"columnName\":\"dataaogfwbkxdhavegys\",\"defaultValue\":\"datamlbzixpdat\"}],\"additionalOptions\":{\"mhcpujy\":\"vwwejvqpwyrioq\",\"qxprsocfxlrzj\":\"ntxregbssqthcywy\"}}") - .toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("vwwejvqpwyrioq", model.additionalOptions().get("mhcpujy")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DWCopyCommandSettings model = new DWCopyCommandSettings() - .withDefaultValues(Arrays.asList( - new DWCopyCommandDefaultValue().withColumnName("dataijyxcmqcggksrorx").withDefaultValue("datafhar"), - new DWCopyCommandDefaultValue().withColumnName("dataltlftraylxz").withDefaultValue("datajpu"), - new DWCopyCommandDefaultValue().withColumnName("dataaogfwbkxdhavegys") - .withDefaultValue("datamlbzixpdat"))) - .withAdditionalOptions(mapOf("mhcpujy", "vwwejvqpwyrioq", "qxprsocfxlrzj", "ntxregbssqthcywy")); - model = BinaryData.fromObject(model).toObject(DWCopyCommandSettings.class); - Assertions.assertEquals("vwwejvqpwyrioq", model.additionalOptions().get("mhcpujy")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java deleted file mode 100644 index 27f856dbe2d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandPayloadTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandPayloadTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandPayload model = BinaryData.fromString( - "{\"streamName\":\"opionszon\",\"rowLimits\":1957887263,\"columns\":[\"jinnix\",\"awrtmjfjmyccxlz\",\"coxovn\",\"khenlus\"],\"expression\":\"rd\"}") - .toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("opionszon", model.streamName()); - Assertions.assertEquals(1957887263, model.rowLimits()); - Assertions.assertEquals("jinnix", model.columns().get(0)); - Assertions.assertEquals("rd", model.expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandPayload model = new DataFlowDebugCommandPayload().withStreamName("opionszon") - .withRowLimits(1957887263) - .withColumns(Arrays.asList("jinnix", "awrtmjfjmyccxlz", "coxovn", "khenlus")) - .withExpression("rd"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandPayload.class); - Assertions.assertEquals("opionszon", model.streamName()); - Assertions.assertEquals(1957887263, model.rowLimits()); - Assertions.assertEquals("jinnix", model.columns().get(0)); - Assertions.assertEquals("rd", model.expression()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java deleted file mode 100644 index 3d66a70729f2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandRequestTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandRequest model = BinaryData.fromString( - "{\"sessionId\":\"afgfugsnn\",\"command\":\"executeExpressionQuery\",\"commandPayload\":{\"streamName\":\"tefypococtfjgti\",\"rowLimits\":1163986546,\"columns\":[\"uyturml\"],\"expression\":\"owolbaui\"}}") - .toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("afgfugsnn", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("tefypococtfjgti", model.commandPayload().streamName()); - Assertions.assertEquals(1163986546, model.commandPayload().rowLimits()); - Assertions.assertEquals("uyturml", model.commandPayload().columns().get(0)); - Assertions.assertEquals("owolbaui", model.commandPayload().expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandRequest model = new DataFlowDebugCommandRequest().withSessionId("afgfugsnn") - .withCommand(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("tefypococtfjgti") - .withRowLimits(1163986546) - .withColumns(Arrays.asList("uyturml")) - .withExpression("owolbaui")); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandRequest.class); - Assertions.assertEquals("afgfugsnn", model.sessionId()); - Assertions.assertEquals(DataFlowDebugCommandType.EXECUTE_EXPRESSION_QUERY, model.command()); - Assertions.assertEquals("tefypococtfjgti", model.commandPayload().streamName()); - Assertions.assertEquals(1163986546, model.commandPayload().rowLimits()); - Assertions.assertEquals("uyturml", model.commandPayload().columns().get(0)); - Assertions.assertEquals("owolbaui", model.commandPayload().expression()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java deleted file mode 100644 index ba8b1c293a6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugCommandResponseInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugCommandResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugCommandResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugCommandResponseInner model - = BinaryData.fromString("{\"status\":\"xtxrdcqtjvidt\",\"data\":\"epu\"}") - .toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("xtxrdcqtjvidt", model.status()); - Assertions.assertEquals("epu", model.data()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugCommandResponseInner model - = new DataFlowDebugCommandResponseInner().withStatus("xtxrdcqtjvidt").withData("epu"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugCommandResponseInner.class); - Assertions.assertEquals("xtxrdcqtjvidt", model.status()); - Assertions.assertEquals("epu", model.data()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java deleted file mode 100644 index 49f63d022bde..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageDebugSettingsTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugPackageDebugSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugPackageDebugSettings model = BinaryData.fromString( - "{\"sourceSettings\":[{\"sourceName\":\"z\",\"rowLimit\":470619426,\"\":{\"pkt\":\"dataedmurrxxge\",\"cgwgcloxoebqinji\":\"dataqylkmqpzoyhlf\",\"qlafcbahhpzpofoi\":\"datanwjfu\",\"kholvd\":\"datajwpfilkm\"}},{\"sourceName\":\"viauogphua\",\"rowLimit\":1965289703,\"\":{\"xjqirwrweoox\":\"dataukyefchnmnahmnxh\",\"ozqvbubqmam\":\"datafifhxwrsnew\",\"taboidvmf\":\"datasycxhxzgaz\"}}],\"parameters\":{\"mtdherngb\":\"datapubowsepdfg\"},\"datasetParameters\":\"datajuahokqto\"}") - .toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("z", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(470619426, model.sourceSettings().get(0).rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugPackageDebugSettings model = new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("z") - .withRowLimit(470619426) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("viauogphua") - .withRowLimit(1965289703) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("mtdherngb", "datapubowsepdfg")) - .withDatasetParameters("datajuahokqto"); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackageDebugSettings.class); - Assertions.assertEquals("z", model.sourceSettings().get(0).sourceName()); - Assertions.assertEquals(470619426, model.sourceSettings().get(0).rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java deleted file mode 100644 index 5c8151bbc8eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugPackageTests.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugPackage model = BinaryData.fromString( - "{\"sessionId\":\"zfjltfvnzcyjto\",\"dataFlow\":{\"properties\":{\"type\":\"DataFlow\",\"description\":\"opv\",\"annotations\":[\"databzqgqqi\",\"dataedsvqwthmk\",\"dataibcysihsgqc\"],\"folder\":{\"name\":\"ohsdtmcd\"}},\"name\":\"ufcohdxbz\"},\"dataFlows\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"uapcvhdbevwqqxe\",\"annotations\":[\"dataonqzinkfkbgbzbow\"],\"folder\":{\"name\":\"o\"}},\"name\":\"jmygvk\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"kjjeokbz\",\"annotations\":[\"datazrxcczurt\",\"datae\",\"datapqxbkwvzgnzvdf\",\"datazdix\"],\"folder\":{\"name\":\"pnodawopqhe\"}},\"name\":\"ptmcgsbostzelnd\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"tutmzl\",\"annotations\":[\"datajlvfhrbbpneqv\",\"datawwyyurmoch\",\"dataprprsnmokay\",\"dataejnhlbkpb\"],\"folder\":{\"name\":\"piljhahzvech\"}},\"name\":\"bnwieholew\"}],\"datasets\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"ubwefqs\",\"structure\":\"datapaq\",\"schema\":\"datae\",\"linkedServiceName\":{\"referenceName\":\"rqwexjkmfxapjwog\",\"parameters\":{\"pud\":\"datao\",\"yawbzasqbu\":\"datadabtqwp\",\"oguyaip\":\"dataljgkyex\",\"waz\":\"datadsdaultxijjumf\"}},\"parameters\":{\"usfzsvtuikzha\":{\"type\":\"Array\",\"defaultValue\":\"datacjngzqdqxtbjwgny\"},\"qnzrd\":{\"type\":\"Object\",\"defaultValue\":\"datalcfhmlrqryxy\"},\"tgoe\":{\"type\":\"String\",\"defaultValue\":\"datavwxzn\"}},\"annotations\":[\"datab\",\"databp\"],\"folder\":{\"name\":\"f\"},\"\":{\"kyrioovzid\":\"datavntjlrigjk\",\"xrizkzobgop\":\"dataxwaabzmifrygznmm\",\"lxecwcrojphslh\":\"datalhslnelxieixyn\",\"fmvigorqjbttzh\":\"dataawjutifd\"}},\"name\":\"glka\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"onqjujeickpzvcpo\",\"structure\":\"dataxelnwc\",\"schema\":\"datayjede\",\"linkedServiceName\":{\"referenceName\":\"xm\",\"parameters\":{\"uamwabzxrvxc\":\"datakqscazuawxtzx\",\"sphaivmxyasflvg\":\"datas\"}},\"parameters\":{\"mjblmljhlny\":{\"type\":\"Object\",\"defaultValue\":\"datawakoihkn\"},\"mv\":{\"type\":\"Object\",\"defaultValue\":\"datatqyryuzcbmqqv\"}},\"annotations\":[\"datatayx\",\"datansup\",\"dataujlzqnhcvsqltn\",\"dataoibgsxg\"],\"folder\":{\"name\":\"yqo\"},\"\":{\"fdbxiqxeiiqbim\":\"dataqoxwd\"}},\"name\":\"mwwinhehfqpofv\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"cblembnkbwv\",\"structure\":\"dataxk\",\"schema\":\"datavqihebwtswbzuwf\",\"linkedServiceName\":{\"referenceName\":\"duragegizvc\",\"parameters\":{\"gkxkbsazgakg\":\"datalisdjubggbq\",\"apvu\":\"datacyrcmjdmspo\"}},\"parameters\":{\"nlvxbcuii\":{\"type\":\"SecureString\",\"defaultValue\":\"dataiofrzgbzjedmstk\"},\"v\":{\"type\":\"String\",\"defaultValue\":\"datatwfans\"}},\"annotations\":[\"databmikost\",\"dataz\",\"datakiwbuqnyoph\"],\"folder\":{\"name\":\"l\"},\"\":{\"e\":\"datarpfbcunezz\",\"wl\":\"dataelfwy\",\"psihcla\":\"dataxjwet\"}},\"name\":\"va\"}],\"linkedServices\":[{\"properties\":{\"type\":\"LinkedService\",\"version\":\"rsqqwztcm\",\"connectVia\":{\"referenceName\":\"kchcxwa\",\"parameters\":{\"jkjexf\":\"dataw\",\"hkbffmbm\":\"dataeqvhpsylkk\",\"gjxsnptfu\":\"datazjrgyww\"}},\"description\":\"icgaao\",\"parameters\":{\"vru\":{\"type\":\"SecureString\",\"defaultValue\":\"dataqutdewemxs\"},\"tixo\":{\"type\":\"String\",\"defaultValue\":\"datazjgehkfkim\"},\"qepqwhixmon\":{\"type\":\"Array\",\"defaultValue\":\"dataqyinl\"}},\"annotations\":[\"datahiyxgvelfclduc\"],\"\":{\"uwc\":\"datards\",\"egstmninwjizci\":\"datab\",\"tbxqmuluxlxq\":\"datanghgshej\"}},\"name\":\"nersb\"}],\"staging\":{\"linkedService\":{\"referenceName\":\"crwnamikz\",\"parameters\":{\"ziqgfuh\":\"dataqbsms\",\"hczznvf\":\"datakzruswh\",\"wwixzvumw\":\"dataycjsx\"}},\"folderPath\":\"dataqhndvnoam\"},\"debugSettings\":{\"sourceSettings\":[{\"sourceName\":\"aohdjh\",\"rowLimit\":1043529198,\"\":{\"agltsxoa\":\"datakxcoxpelnje\",\"npbs\":\"dataftgz\"}},{\"sourceName\":\"e\",\"rowLimit\":1075307971,\"\":{\"awtxxpk\":\"datasrmozihmip\"}},{\"sourceName\":\"cxcjxgry\",\"rowLimit\":1729978627,\"\":{\"ztrksxwpndf\":\"dataycilrmcaykggnox\"}}],\"parameters\":{\"jaosrxuzv\":\"datanznthjtw\",\"xqdlyrtltlapr\":\"dataamktcqiosmgbzah\"},\"datasetParameters\":\"datazkatb\"},\"\":{\"gunbtgfebwlnbm\":\"dataznnbsoqeqalarvl\",\"av\":\"datayreeudz\",\"lmjjyuo\":\"datapdqmjxlyyzglgouw\",\"nlb\":\"dataqtobaxkjeyt\"}}") - .toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("zfjltfvnzcyjto", model.sessionId()); - Assertions.assertEquals("ufcohdxbz", model.dataFlow().name()); - Assertions.assertEquals("opv", model.dataFlow().properties().description()); - Assertions.assertEquals("ohsdtmcd", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("jmygvk", model.dataFlows().get(0).name()); - Assertions.assertEquals("uapcvhdbevwqqxe", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("o", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("glka", model.datasets().get(0).name()); - Assertions.assertEquals("ubwefqs", model.datasets().get(0).properties().description()); - Assertions.assertEquals("rqwexjkmfxapjwog", - model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, - model.datasets().get(0).properties().parameters().get("usfzsvtuikzha").type()); - Assertions.assertEquals("f", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("nersb", model.linkedServices().get(0).name()); - Assertions.assertEquals("rsqqwztcm", model.linkedServices().get(0).properties().version()); - Assertions.assertEquals("kchcxwa", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("icgaao", model.linkedServices().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.linkedServices().get(0).properties().parameters().get("vru").type()); - Assertions.assertEquals("crwnamikz", model.staging().linkedService().referenceName()); - Assertions.assertEquals("aohdjh", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(1043529198, model.debugSettings().sourceSettings().get(0).rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugPackage model = new DataFlowDebugPackage().withSessionId("zfjltfvnzcyjto") - .withDataFlow(new DataFlowDebugResource().withName("ufcohdxbz") - .withProperties(new DataFlow().withDescription("opv") - .withAnnotations(Arrays.asList("databzqgqqi", "dataedsvqwthmk", "dataibcysihsgqc")) - .withFolder(new DataFlowFolder().withName("ohsdtmcd")))) - .withDataFlows(Arrays.asList( - new DataFlowDebugResource().withName("jmygvk") - .withProperties(new DataFlow().withDescription("uapcvhdbevwqqxe") - .withAnnotations(Arrays.asList("dataonqzinkfkbgbzbow")) - .withFolder(new DataFlowFolder().withName("o"))), - new DataFlowDebugResource().withName("ptmcgsbostzelnd") - .withProperties(new DataFlow().withDescription("kjjeokbz") - .withAnnotations(Arrays.asList("datazrxcczurt", "datae", "datapqxbkwvzgnzvdf", "datazdix")) - .withFolder(new DataFlowFolder().withName("pnodawopqhe"))), - new DataFlowDebugResource().withName("bnwieholew") - .withProperties(new DataFlow().withDescription("tutmzl") - .withAnnotations( - Arrays.asList("datajlvfhrbbpneqv", "datawwyyurmoch", "dataprprsnmokay", "dataejnhlbkpb")) - .withFolder(new DataFlowFolder().withName("piljhahzvech"))))) - .withDatasets(Arrays.asList( - new DatasetDebugResource().withName("glka") - .withProperties(new Dataset().withDescription("ubwefqs") - .withStructure("datapaq") - .withSchema("datae") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rqwexjkmfxapjwog") - .withParameters(mapOf("pud", "datao", "yawbzasqbu", "datadabtqwp", "oguyaip", "dataljgkyex", - "waz", "datadsdaultxijjumf"))) - .withParameters(mapOf("usfzsvtuikzha", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("datacjngzqdqxtbjwgny"), - "qnzrd", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datalcfhmlrqryxy"), - "tgoe", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datavwxzn"))) - .withAnnotations(Arrays.asList("datab", "databp")) - .withFolder(new DatasetFolder().withName("f")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource().withName("mwwinhehfqpofv") - .withProperties(new Dataset().withDescription("onqjujeickpzvcpo") - .withStructure("dataxelnwc") - .withSchema("datayjede") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xm") - .withParameters(mapOf("uamwabzxrvxc", "datakqscazuawxtzx", "sphaivmxyasflvg", "datas"))) - .withParameters(mapOf("mjblmljhlny", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datawakoihkn"), - "mv", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datatqyryuzcbmqqv"))) - .withAnnotations(Arrays.asList("datatayx", "datansup", "dataujlzqnhcvsqltn", "dataoibgsxg")) - .withFolder(new DatasetFolder().withName("yqo")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource().withName("va") - .withProperties(new Dataset().withDescription("cblembnkbwv") - .withStructure("dataxk") - .withSchema("datavqihebwtswbzuwf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("duragegizvc") - .withParameters(mapOf("gkxkbsazgakg", "datalisdjubggbq", "apvu", "datacyrcmjdmspo"))) - .withParameters(mapOf("nlvxbcuii", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataiofrzgbzjedmstk"), - "v", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatwfans"))) - .withAnnotations(Arrays.asList("databmikost", "dataz", "datakiwbuqnyoph")) - .withFolder(new DatasetFolder().withName("l")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withLinkedServices( - Arrays - .asList( - new LinkedServiceDebugResource().withName("nersb") - .withProperties(new LinkedService().withVersion("rsqqwztcm") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("kchcxwa") - .withParameters(mapOf("jkjexf", "dataw", "hkbffmbm", "dataeqvhpsylkk", "gjxsnptfu", - "datazjrgyww"))) - .withDescription("icgaao") - .withParameters(mapOf("vru", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataqutdewemxs"), - "tixo", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datazjgehkfkim"), - "qepqwhixmon", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("dataqyinl"))) - .withAnnotations(Arrays.asList("datahiyxgvelfclduc")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withStaging(new DataFlowStagingInfo() - .withLinkedService(new LinkedServiceReference().withReferenceName("crwnamikz") - .withParameters(mapOf("ziqgfuh", "dataqbsms", "hczznvf", "datakzruswh", "wwixzvumw", "dataycjsx"))) - .withFolderPath("dataqhndvnoam")) - .withDebugSettings(new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("aohdjh") - .withRowLimit(1043529198) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("e") - .withRowLimit(1075307971) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("cxcjxgry") - .withRowLimit(1729978627) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("jaosrxuzv", "datanznthjtw", "xqdlyrtltlapr", "dataamktcqiosmgbzah")) - .withDatasetParameters("datazkatb")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugPackage.class); - Assertions.assertEquals("zfjltfvnzcyjto", model.sessionId()); - Assertions.assertEquals("ufcohdxbz", model.dataFlow().name()); - Assertions.assertEquals("opv", model.dataFlow().properties().description()); - Assertions.assertEquals("ohsdtmcd", model.dataFlow().properties().folder().name()); - Assertions.assertEquals("jmygvk", model.dataFlows().get(0).name()); - Assertions.assertEquals("uapcvhdbevwqqxe", model.dataFlows().get(0).properties().description()); - Assertions.assertEquals("o", model.dataFlows().get(0).properties().folder().name()); - Assertions.assertEquals("glka", model.datasets().get(0).name()); - Assertions.assertEquals("ubwefqs", model.datasets().get(0).properties().description()); - Assertions.assertEquals("rqwexjkmfxapjwog", - model.datasets().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, - model.datasets().get(0).properties().parameters().get("usfzsvtuikzha").type()); - Assertions.assertEquals("f", model.datasets().get(0).properties().folder().name()); - Assertions.assertEquals("nersb", model.linkedServices().get(0).name()); - Assertions.assertEquals("rsqqwztcm", model.linkedServices().get(0).properties().version()); - Assertions.assertEquals("kchcxwa", model.linkedServices().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("icgaao", model.linkedServices().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.linkedServices().get(0).properties().parameters().get("vru").type()); - Assertions.assertEquals("crwnamikz", model.staging().linkedService().referenceName()); - Assertions.assertEquals("aohdjh", model.debugSettings().sourceSettings().get(0).sourceName()); - Assertions.assertEquals(1043529198, model.debugSettings().sourceSettings().get(0).rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java deleted file mode 100644 index c0b46d7951e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugResourceTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"kwr\",\"annotations\":[\"datakqbh\",\"datay\",\"dataqunjqh\"],\"folder\":{\"name\":\"xaulkpakdkifmjnn\"}},\"name\":\"tqabpxuckpgg\"}") - .toObject(DataFlowDebugResource.class); - Assertions.assertEquals("tqabpxuckpgg", model.name()); - Assertions.assertEquals("kwr", model.properties().description()); - Assertions.assertEquals("xaulkpakdkifmjnn", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugResource model = new DataFlowDebugResource().withName("tqabpxuckpgg") - .withProperties(new DataFlow().withDescription("kwr") - .withAnnotations(Arrays.asList("datakqbh", "datay", "dataqunjqh")) - .withFolder(new DataFlowFolder().withName("xaulkpakdkifmjnn"))); - model = BinaryData.fromObject(model).toObject(DataFlowDebugResource.class); - Assertions.assertEquals("tqabpxuckpgg", model.name()); - Assertions.assertEquals("kwr", model.properties().description()); - Assertions.assertEquals("xaulkpakdkifmjnn", model.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java deleted file mode 100644 index 80f1f3242e2d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionInfoInnerTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowDebugSessionInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowDebugSessionInfoInner model = BinaryData.fromString( - "{\"dataFlowName\":\"itdfuxtyasiib\",\"computeType\":\"ybnnustg\",\"coreCount\":453653118,\"nodeCount\":1541221410,\"integrationRuntimeName\":\"g\",\"sessionId\":\"hcmavmqfo\",\"startTime\":\"or\",\"timeToLiveInMinutes\":199814192,\"lastActivityTime\":\"yprotwyp\",\"\":{\"gorbmftpm\":\"datambxhugcmjkav\"}}") - .toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("itdfuxtyasiib", model.dataFlowName()); - Assertions.assertEquals("ybnnustg", model.computeType()); - Assertions.assertEquals(453653118, model.coreCount()); - Assertions.assertEquals(1541221410, model.nodeCount()); - Assertions.assertEquals("g", model.integrationRuntimeName()); - Assertions.assertEquals("hcmavmqfo", model.sessionId()); - Assertions.assertEquals("or", model.startTime()); - Assertions.assertEquals(199814192, model.timeToLiveInMinutes()); - Assertions.assertEquals("yprotwyp", model.lastActivityTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowDebugSessionInfoInner model = new DataFlowDebugSessionInfoInner().withDataFlowName("itdfuxtyasiib") - .withComputeType("ybnnustg") - .withCoreCount(453653118) - .withNodeCount(1541221410) - .withIntegrationRuntimeName("g") - .withSessionId("hcmavmqfo") - .withStartTime("or") - .withTimeToLiveInMinutes(199814192) - .withLastActivityTime("yprotwyp") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowDebugSessionInfoInner.class); - Assertions.assertEquals("itdfuxtyasiib", model.dataFlowName()); - Assertions.assertEquals("ybnnustg", model.computeType()); - Assertions.assertEquals(453653118, model.coreCount()); - Assertions.assertEquals(1541221410, model.nodeCount()); - Assertions.assertEquals("g", model.integrationRuntimeName()); - Assertions.assertEquals("hcmavmqfo", model.sessionId()); - Assertions.assertEquals("or", model.startTime()); - Assertions.assertEquals(199814192, model.timeToLiveInMinutes()); - Assertions.assertEquals("yprotwyp", model.lastActivityTime()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java deleted file mode 100644 index edde0ac46456..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsAddDataFlowWithResponseMockTests.java +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights 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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"mgllnyohnhfup\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - AddDataFlowToDebugSessionResponse response - = manager.dataFlowDebugSessions() - .addDataFlowWithResponse("ccwievjndvaf", "cvn", new DataFlowDebugPackage().withSessionId("xlcgycv") - .withDataFlow(new DataFlowDebugResource().withName("utsabuvuuweq") - .withProperties(new DataFlow().withDescription("cfxz") - .withAnnotations(Arrays.asList("dataioqtafmbxtn")) - .withFolder(new DataFlowFolder().withName("y")))) - .withDataFlows(Arrays.asList( - new DataFlowDebugResource().withName("sqhkjuqrklxnbbkb") - .withProperties(new DataFlow().withDescription("netuvsqv") - .withAnnotations(Arrays - .asList("dataumdznbl", "dataofdmlrtlhpfucfi", "dataaklflwqdj", "databogtbykskq")) - .withFolder(new DataFlowFolder().withName("prrixkobmrrnkd"))), - new DataFlowDebugResource().withName("dctsqxwqsszdwwk") - .withProperties(new DataFlow().withDescription("n") - .withAnnotations(Arrays.asList("dataua", "databfxvlacllteuksgu", "datacotgqgevie", - "datayhowvnzwhypj")) - .withFolder(new DataFlowFolder().withName("alptjpsbdch"))), - new DataFlowDebugResource().withName("ddus") - .withProperties(new DataFlow().withDescription("zmcprtanagehbrh") - .withAnnotations(Arrays.asList("dataatjsseb", "datadusj", "datailp", "dataccxeg")) - .withFolder(new DataFlowFolder().withName("tqgcjvklnrzoafx"))))) - .withDatasets(Arrays.asList( - new DatasetDebugResource().withName("bqodyvvpcoia") - .withProperties(new Dataset() - .withDescription("hh") - .withStructure("datalmxzdwpdwbnouk") - .withSchema("datanyegh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("fmuxd") - .withParameters(mapOf("zle", "datagdcszzzedf"))) - .withParameters(mapOf("deqmfzyhikhnw", - new ParameterSpecification().withType(ParameterType.OBJECT), "ftlj", - new ParameterSpecification().withType(ParameterType.ARRAY))) - .withAnnotations(Arrays.asList("datapfk", "dataybe", "dataax", "datathppjxtobeq")) - .withFolder(new DatasetFolder().withName("adoqijfll")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource().withName("jakezorhjh") - .withProperties(new Dataset().withDescription("gvaecww") - .withStructure("datag") - .withSchema("dataabhfrg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("p") - .withParameters(mapOf("krfe", "datah"))) - .withParameters(mapOf("zxvgfxzckqwqujpu", - new ParameterSpecification().withType(ParameterType.STRING), "sjalhw", - new ParameterSpecification().withType(ParameterType.INT), "pvpdsvycjuxab", - new ParameterSpecification() - .withType(ParameterType.BOOL), - "phgogmgg", new ParameterSpecification().withType(ParameterType.BOOL))) - .withAnnotations(Arrays.asList("datacizrst", "datannmjpgzw")) - .withFolder(new DatasetFolder().withName("pzshgsidkz")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource().withName("pzingxbk") - .withProperties(new Dataset().withDescription("qh") - .withStructure("datauldztvum") - .withSchema("datakrxgaiddgdgkhiqw") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("wxrcydmkyoojcfsb") - .withParameters(mapOf("krcmxt", "databnxey", "aqlszlymyq", "datawolzuk"))) - .withParameters( - mapOf("uwqmi", new ParameterSpecification().withType(ParameterType.FLOAT))) - .withAnnotations( - Arrays.asList("datawmzmhcvrfqqmbu", "datati", "datarmcymwr", "datakkaztu")) - .withFolder(new DatasetFolder().withName("tkedvxhqhp")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetDebugResource().withName("eforxakpmz") - .withProperties(new Dataset().withDescription("riottzyru") - .withStructure("dataihwiezc") - .withSchema("datazjdplkuyouqnf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("d") - .withParameters(mapOf("ffymrzoupipdkgpt", "datajpkvlgahpztvl", "crtpz", "datamym"))) - .withParameters(mapOf("wbzrbqpzgsrphbf", - new ParameterSpecification().withType(ParameterType.SECURE_STRING), "fytwrnvwaxmey", - new ParameterSpecification().withType(ParameterType.OBJECT), "mfqmhcqvuqwzaj", - new ParameterSpecification().withType(ParameterType.BOOL), "maimwufuvtyp", - new ParameterSpecification().withType(ParameterType.ARRAY))) - .withAnnotations( - Arrays.asList("datallri", "datakn", "databcgnphengkwh", "dataekxohqvq")) - .withFolder(new DatasetFolder().withName("oqtvmkjle")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withLinkedServices(Arrays.asList(new LinkedServiceDebugResource().withName("upsob") - .withProperties(new LinkedService().withVersion("rgykrcjvoivn") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("ovwkjeguviphxii") - .withParameters(mapOf("oylpmeccbblg", "datahfrb", "xcrxuyorhrtihzw", "datalej"))) - .withDescription("flwlmh") - .withParameters( - mapOf("fosfpgquxqvkuu", new ParameterSpecification().withType(ParameterType.BOOL), - "hmnvfhyiaxezp", new ParameterSpecification().withType(ParameterType.BOOL), "czqjo", - new ParameterSpecification().withType(ParameterType.STRING))) - .withAnnotations(Arrays.asList("datapsgug", "datawokb", "datazpxlxbvhh", "dataa")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withStaging(new DataFlowStagingInfo() - .withLinkedService(new LinkedServiceReference().withReferenceName("dypwpmyf") - .withParameters(mapOf("yhenahhpnbvzdfy", "datajx", "dvbnpyedrkgrtda", "datajbzwvnxwduu"))) - .withFolderPath("dataitoimtar")) - .withDebugSettings(new DataFlowDebugPackageDebugSettings() - .withSourceSettings(Arrays.asList( - new DataFlowSourceSetting().withSourceName("bmodbpcduyh") - .withRowLimit(1956848894) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("ibvrfkxi") - .withRowLimit(792560570) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting().withSourceName("rcwzmdenc") - .withRowLimit(1303417436) - .withAdditionalProperties(mapOf()))) - .withParameters( - mapOf("qej", "datawxzrkcvbfeuc", "cjkhexxn", "datazhteti", "onmcxriqfr", "dataxlce")) - .withDatasetParameters("datab")) - .withAdditionalProperties(mapOf()), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mgllnyohnhfup", 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 31191f5cc7ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsCreateMockTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionResponse; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowDebugSessionsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr = "{\"status\":\"dqoqpqyjebg\",\"sessionId\":\"uazwkzedifwdrrgz\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CreateDataFlowDebugSessionResponse response = manager.dataFlowDebugSessions() - .create("zhdrvkzzvh", "ogjoocnseo", - new CreateDataFlowDebugSessionRequest().withComputeType("ktqrvzaabeiqo") - .withCoreCount(1236480850) - .withTimeToLive(195534639) - .withIntegrationRuntime(new IntegrationRuntimeDebugResource().withName("fgswpqunvxtvmb") - .withProperties(new IntegrationRuntime().withDescription("xvqdlwuzkzkhb") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dqoqpqyjebg", response.status()); - Assertions.assertEquals("uazwkzedifwdrrgz", response.sessionId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.java deleted file mode 100644 index a110da5b9f3c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionsDeleteWithResponseMockTests.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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.dataFlowDebugSessions() - .deleteWithResponse("xfos", "wzhmlklocyjpmbt", - new DeleteDataFlowDebugSessionRequest().withSessionId("xomhkfkvdmjjiqjv"), - 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 d1959c0b776d..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"nvnxsa\",\"data\":\"couilbjccj\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - DataFlowDebugCommandResponse response = manager.dataFlowDebugSessions() - .executeCommand("fiomfkiopk", "hbfnhspogxuv", - new DataFlowDebugCommandRequest().withSessionId("my") - .withCommand(DataFlowDebugCommandType.EXECUTE_PREVIEW_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("ayfkvw") - .withRowLimits(1637727011) - .withColumns(Arrays.asList("yh", "yn")) - .withExpression("p")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nvnxsa", response.status()); - Assertions.assertEquals("couilbjccj", 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 294edba2c98d..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"lxqjshyyrc\",\"computeType\":\"wzqsfaurmqpkgwfb\",\"coreCount\":570698010,\"nodeCount\":1408597782,\"integrationRuntimeName\":\"rhhxlibdn\",\"sessionId\":\"amslvpxsy\",\"startTime\":\"ifv\",\"timeToLiveInMinutes\":1795872243,\"lastActivityTime\":\"aauls\",\"\":{\"gx\":\"datahvcvveb\",\"bhkyas\":\"datarpho\"}}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.dataFlowDebugSessions() - .queryByFactory("uupw", "oohzifbbsncorini", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lxqjshyyrc", response.iterator().next().dataFlowName()); - Assertions.assertEquals("wzqsfaurmqpkgwfb", response.iterator().next().computeType()); - Assertions.assertEquals(570698010, response.iterator().next().coreCount()); - Assertions.assertEquals(1408597782, response.iterator().next().nodeCount()); - Assertions.assertEquals("rhhxlibdn", response.iterator().next().integrationRuntimeName()); - Assertions.assertEquals("amslvpxsy", response.iterator().next().sessionId()); - Assertions.assertEquals("ifv", response.iterator().next().startTime()); - Assertions.assertEquals(1795872243, response.iterator().next().timeToLiveInMinutes()); - Assertions.assertEquals("aauls", response.iterator().next().lastActivityTime()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java deleted file mode 100644 index 02b4edeb3906..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowFolder model = BinaryData.fromString("{\"name\":\"txjcsheafidlt\"}").toObject(DataFlowFolder.class); - Assertions.assertEquals("txjcsheafidlt", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowFolder model = new DataFlowFolder().withName("txjcsheafidlt"); - model = BinaryData.fromObject(model).toObject(DataFlowFolder.class); - Assertions.assertEquals("txjcsheafidlt", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java deleted file mode 100644 index b8ab23f5cecb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowListResponseTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowListResponse; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"resmkssjhoiftxfk\",\"annotations\":[\"datagpr\",\"dataptil\",\"dataucb\"],\"folder\":{\"name\":\"gdqoh\"}},\"name\":\"wsldrizetpwbr\",\"type\":\"llibphbqzmizak\",\"etag\":\"ankjpdnjzh\",\"id\":\"oylhjlmuoyxprimr\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"pteecjme\",\"annotations\":[\"datastvasylwxdzaumw\"],\"folder\":{\"name\":\"hguuf\"}},\"name\":\"boyjathwt\",\"type\":\"lbaemwmdxmeb\",\"etag\":\"scjpahlxv\",\"id\":\"bfqxnmwmqtibxyi\"},{\"properties\":{\"type\":\"DataFlow\",\"description\":\"dt\",\"annotations\":[\"datattadijae\",\"datakmr\"],\"folder\":{\"name\":\"ekpndzaapmudq\"}},\"name\":\"qwigpibudqwyxe\",\"type\":\"ybpmzznrtffyaq\",\"etag\":\"mhh\",\"id\":\"oqaqhvseufuq\"}],\"nextLink\":\"xpdlcgqlsis\"}") - .toObject(DataFlowListResponse.class); - Assertions.assertEquals("oylhjlmuoyxprimr", model.value().get(0).id()); - Assertions.assertEquals("resmkssjhoiftxfk", model.value().get(0).properties().description()); - Assertions.assertEquals("gdqoh", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("xpdlcgqlsis", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowListResponse model = new DataFlowListResponse().withValue(Arrays.asList( - new DataFlowResourceInner().withId("oylhjlmuoyxprimr") - .withProperties(new DataFlow().withDescription("resmkssjhoiftxfk") - .withAnnotations(Arrays.asList("datagpr", "dataptil", "dataucb")) - .withFolder(new DataFlowFolder().withName("gdqoh"))), - new DataFlowResourceInner().withId("bfqxnmwmqtibxyi") - .withProperties(new DataFlow().withDescription("pteecjme") - .withAnnotations(Arrays.asList("datastvasylwxdzaumw")) - .withFolder(new DataFlowFolder().withName("hguuf"))), - new DataFlowResourceInner().withId("oqaqhvseufuq") - .withProperties(new DataFlow().withDescription("dt") - .withAnnotations(Arrays.asList("datattadijae", "datakmr")) - .withFolder(new DataFlowFolder().withName("ekpndzaapmudq"))))) - .withNextLink("xpdlcgqlsis"); - model = BinaryData.fromObject(model).toObject(DataFlowListResponse.class); - Assertions.assertEquals("oylhjlmuoyxprimr", model.value().get(0).id()); - Assertions.assertEquals("resmkssjhoiftxfk", model.value().get(0).properties().description()); - Assertions.assertEquals("gdqoh", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("xpdlcgqlsis", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java deleted file mode 100644 index 402e00a8c89c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowReferenceTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowReference model = BinaryData.fromString( - "{\"type\":\"DataFlowReference\",\"referenceName\":\"eqir\",\"datasetParameters\":\"datajclykcg\",\"parameters\":{\"punettepdjxq\":\"datapjlvczuoda\"},\"\":{\"uiylpc\":\"dataoy\",\"vesk\":\"dataaewse\",\"fn\":\"dataxegqphr\",\"bcbcpz\":\"datahctmjtsgh\"}}") - .toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("eqir", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowReference model = new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("eqir") - .withDatasetParameters("datajclykcg") - .withParameters(mapOf("punettepdjxq", "datapjlvczuoda")) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowReference.class); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.type()); - Assertions.assertEquals("eqir", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java deleted file mode 100644 index 24469a1cefa2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowResourceInnerTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowResourceInner; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"aeranokqgukkjqnv\",\"annotations\":[\"dataylaxxulcdi\",\"datadosfjbjsvgjrw\"],\"folder\":{\"name\":\"vyc\"}},\"name\":\"dclxgc\",\"type\":\"nfnw\",\"etag\":\"tmvpdvjdhtt\",\"id\":\"efedxihchrphkm\"}") - .toObject(DataFlowResourceInner.class); - Assertions.assertEquals("efedxihchrphkm", model.id()); - Assertions.assertEquals("aeranokqgukkjqnv", model.properties().description()); - Assertions.assertEquals("vyc", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowResourceInner model = new DataFlowResourceInner().withId("efedxihchrphkm") - .withProperties(new DataFlow().withDescription("aeranokqgukkjqnv") - .withAnnotations(Arrays.asList("dataylaxxulcdi", "datadosfjbjsvgjrw")) - .withFolder(new DataFlowFolder().withName("vyc"))); - model = BinaryData.fromObject(model).toObject(DataFlowResourceInner.class); - Assertions.assertEquals("efedxihchrphkm", model.id()); - Assertions.assertEquals("aeranokqgukkjqnv", model.properties().description()); - Assertions.assertEquals("vyc", model.properties().folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java deleted file mode 100644 index 1189967c51b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSinkTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSink model = BinaryData.fromString( - "{\"schemaLinkedService\":{\"referenceName\":\"fki\",\"parameters\":{\"axikhfjqebglcxk\":\"datavsaaxwsp\",\"g\":\"datagzzromv\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"emtm\",\"parameters\":{\"pat\":\"datafsvpink\"}},\"name\":\"tdiswxspvckojaz\",\"description\":\"gspftesu\",\"dataset\":{\"referenceName\":\"pvpvd\",\"parameters\":{\"xzfxn\":\"datatcovqseusrfjb\",\"ihdcyyyzlw\":\"datamlbmuoswkjm\"}},\"linkedService\":{\"referenceName\":\"wzjnufz\",\"parameters\":{\"qgnnbz\":\"datam\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tedzu\",\"datasetParameters\":\"datajtvgjsx\",\"parameters\":{\"btdphti\":\"datajjvavdpww\"},\"\":{\"hks\":\"datafofwan\",\"riwgybjp\":\"dataauwazcgwd\"}}}") - .toObject(DataFlowSink.class); - Assertions.assertEquals("tdiswxspvckojaz", model.name()); - Assertions.assertEquals("gspftesu", model.description()); - Assertions.assertEquals("pvpvd", model.dataset().referenceName()); - Assertions.assertEquals("wzjnufz", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tedzu", model.flowlet().referenceName()); - Assertions.assertEquals("fki", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("emtm", model.rejectedDataLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSink model = new DataFlowSink().withName("tdiswxspvckojaz") - .withDescription("gspftesu") - .withDataset(new DatasetReference().withReferenceName("pvpvd") - .withParameters(mapOf("xzfxn", "datatcovqseusrfjb", "ihdcyyyzlw", "datamlbmuoswkjm"))) - .withLinkedService( - new LinkedServiceReference().withReferenceName("wzjnufz").withParameters(mapOf("qgnnbz", "datam"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tedzu") - .withDatasetParameters("datajtvgjsx") - .withParameters(mapOf("btdphti", "datajjvavdpww")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("fki") - .withParameters(mapOf("axikhfjqebglcxk", "datavsaaxwsp", "g", "datagzzromv"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("emtm").withParameters(mapOf("pat", "datafsvpink"))); - model = BinaryData.fromObject(model).toObject(DataFlowSink.class); - Assertions.assertEquals("tdiswxspvckojaz", model.name()); - Assertions.assertEquals("gspftesu", model.description()); - Assertions.assertEquals("pvpvd", model.dataset().referenceName()); - Assertions.assertEquals("wzjnufz", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("tedzu", model.flowlet().referenceName()); - Assertions.assertEquals("fki", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("emtm", model.rejectedDataLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java deleted file mode 100644 index de5b9d95e889..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceSettingTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSourceSettingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSourceSetting model = BinaryData - .fromString("{\"sourceName\":\"auxofshfph\",\"rowLimit\":1830915171,\"\":{\"koj\":\"dataaiywzejywhsl\"}}") - .toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("auxofshfph", model.sourceName()); - Assertions.assertEquals(1830915171, model.rowLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSourceSetting model = new DataFlowSourceSetting().withSourceName("auxofshfph") - .withRowLimit(1830915171) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DataFlowSourceSetting.class); - Assertions.assertEquals("auxofshfph", model.sourceName()); - Assertions.assertEquals(1830915171, model.rowLimit()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java deleted file mode 100644 index c2a93b90a049..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowSourceTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowSource model = BinaryData.fromString( - "{\"schemaLinkedService\":{\"referenceName\":\"vewuyqaeoh\",\"parameters\":{\"aurghooxa\":\"datagejkbvhh\",\"hxjxjoezlqxrkdkn\":\"dataxb\",\"tzamicbig\":\"dataobektmbozo\",\"euairaabmdlqjb\":\"datacdgzseznux\"}},\"name\":\"dp\",\"description\":\"xlhupmomihzbdnp\",\"dataset\":{\"referenceName\":\"kcdpreyxelyi\",\"parameters\":{\"fss\":\"dataflr\",\"rkbhammgmqfm\":\"datayghsf\",\"gquxweysland\":\"datafgvqcpdw\",\"hcgawn\":\"datadcdjhunh\"}},\"linkedService\":{\"referenceName\":\"nquoxsotireimse\",\"parameters\":{\"cjzlquzexokjxebj\":\"datasxstcyilbvzmm\",\"inzabwmvoglj\":\"datab\",\"pgidnw\":\"datav\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"aqidoyzltgiomqo\",\"datasetParameters\":\"dataepiaeapfsergd\",\"parameters\":{\"b\":\"dataqnacyheq\"},\"\":{\"jozfym\":\"datancjubk\",\"ipsejbsvsia\":\"datawmbupyvqyvliq\",\"zydisnuep\":\"dataeswhd\",\"nldpxottd\":\"datawyj\"}}}") - .toObject(DataFlowSource.class); - Assertions.assertEquals("dp", model.name()); - Assertions.assertEquals("xlhupmomihzbdnp", model.description()); - Assertions.assertEquals("kcdpreyxelyi", model.dataset().referenceName()); - Assertions.assertEquals("nquoxsotireimse", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("aqidoyzltgiomqo", model.flowlet().referenceName()); - Assertions.assertEquals("vewuyqaeoh", model.schemaLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowSource model = new DataFlowSource().withName("dp") - .withDescription("xlhupmomihzbdnp") - .withDataset(new DatasetReference().withReferenceName("kcdpreyxelyi") - .withParameters(mapOf("fss", "dataflr", "rkbhammgmqfm", "datayghsf", "gquxweysland", "datafgvqcpdw", - "hcgawn", "datadcdjhunh"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("nquoxsotireimse") - .withParameters( - mapOf("cjzlquzexokjxebj", "datasxstcyilbvzmm", "inzabwmvoglj", "datab", "pgidnw", "datav"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("aqidoyzltgiomqo") - .withDatasetParameters("dataepiaeapfsergd") - .withParameters(mapOf("b", "dataqnacyheq")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("vewuyqaeoh") - .withParameters(mapOf("aurghooxa", "datagejkbvhh", "hxjxjoezlqxrkdkn", "dataxb", "tzamicbig", - "dataobektmbozo", "euairaabmdlqjb", "datacdgzseznux"))); - model = BinaryData.fromObject(model).toObject(DataFlowSource.class); - Assertions.assertEquals("dp", model.name()); - Assertions.assertEquals("xlhupmomihzbdnp", model.description()); - Assertions.assertEquals("kcdpreyxelyi", model.dataset().referenceName()); - Assertions.assertEquals("nquoxsotireimse", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("aqidoyzltgiomqo", model.flowlet().referenceName()); - Assertions.assertEquals("vewuyqaeoh", model.schemaLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java deleted file mode 100644 index 6a81a8b53fee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowStagingInfoTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowStagingInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlowStagingInfo model = BinaryData.fromString( - "{\"linkedService\":{\"referenceName\":\"ovmribiattg\",\"parameters\":{\"swvxwlmzqwmv\":\"datacfotangcfhnykzcu\",\"uqudtcvclxyn\":\"dataxnjmxm\",\"dugneiknp\":\"datadkvgfabuiyjibuzp\"}},\"folderPath\":\"dataxgjiuqh\"}") - .toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("ovmribiattg", model.linkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlowStagingInfo model - = new DataFlowStagingInfo() - .withLinkedService( - new LinkedServiceReference().withReferenceName("ovmribiattg") - .withParameters(mapOf("swvxwlmzqwmv", "datacfotangcfhnykzcu", "uqudtcvclxyn", "dataxnjmxm", - "dugneiknp", "datadkvgfabuiyjibuzp"))) - .withFolderPath("dataxgjiuqh"); - model = BinaryData.fromObject(model).toObject(DataFlowStagingInfo.class); - Assertions.assertEquals("ovmribiattg", model.linkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java deleted file mode 100644 index ba3401558e47..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataFlow model = BinaryData.fromString( - "{\"type\":\"DataFlow\",\"description\":\"jdqnsdfzpbgt\",\"annotations\":[\"datalkdghr\",\"dataeuutlwxezwzh\",\"datakvbwnhhtqlgeh\"],\"folder\":{\"name\":\"ipifhpfeoajvg\"}}") - .toObject(DataFlow.class); - Assertions.assertEquals("jdqnsdfzpbgt", model.description()); - Assertions.assertEquals("ipifhpfeoajvg", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataFlow model = new DataFlow().withDescription("jdqnsdfzpbgt") - .withAnnotations(Arrays.asList("datalkdghr", "dataeuutlwxezwzh", "datakvbwnhhtqlgeh")) - .withFolder(new DataFlowFolder().withName("ipifhpfeoajvg")); - model = BinaryData.fromObject(model).toObject(DataFlow.class); - Assertions.assertEquals("jdqnsdfzpbgt", model.description()); - Assertions.assertEquals("ipifhpfeoajvg", model.folder().name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index cbabeac07b56..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlow; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"ojtryrdzogtrycbm\",\"annotations\":[\"datawmavgdztdjs\"],\"folder\":{\"name\":\"kbcwymbpredcl\"}},\"name\":\"lvuzqsv\",\"type\":\"rkpswasveymdrbm\",\"etag\":\"cryyykwwhscubgwz\",\"id\":\"nplzbzc\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - DataFlowResource response = manager.dataFlows() - .define("mouxspkxapqgyh") - .withExistingFactory("jsyors", "jvztqragq") - .withProperties(new DataFlow().withDescription("qkkwzbgbwwop") - .withAnnotations(Arrays.asList("datawse", "datarzcnlqs")) - .withFolder(new DataFlowFolder().withName("kbt"))) - .withIfMatch("lbflbax") - .create(); - - Assertions.assertEquals("nplzbzc", response.id()); - Assertions.assertEquals("ojtryrdzogtrycbm", response.properties().description()); - Assertions.assertEquals("kbcwymbpredcl", 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 02ee513ac22d..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.dataFlows().deleteWithResponse("ek", "lioagvijr", "yotejljdrerzjwex", 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 400ba08e3492..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"DataFlow\",\"description\":\"hgrgiu\",\"annotations\":[\"dataykvo\",\"datakjixbrdam\",\"dataneb\",\"dataonflknmzaih\"],\"folder\":{\"name\":\"scseuhh\"}},\"name\":\"hspvbwjmtlavuecm\",\"type\":\"corydjsaki\",\"etag\":\"lmiglnqrmqefdq\",\"id\":\"sfebhvkkpd\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - DataFlowResource response = manager.dataFlows() - .getWithResponse("hxjwiggca", "mkoxpay", "zqgsaegaah", "ger", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("sfebhvkkpd", response.id()); - Assertions.assertEquals("hgrgiu", response.properties().description()); - Assertions.assertEquals("scseuhh", 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 eed1125f0a6b..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataFlowsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"DataFlow\",\"description\":\"megcjsn\",\"annotations\":[\"datapqotfdbiljsid\"],\"folder\":{\"name\":\"tr\"}},\"name\":\"lauupwt\",\"type\":\"pbinabsegco\",\"etag\":\"ctekaajuwkxb\",\"id\":\"edfc\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.dataFlows().listByFactory("rrxbeufz", "ddcxfuizo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("edfc", response.iterator().next().id()); - Assertions.assertEquals("megcjsn", response.iterator().next().properties().description()); - Assertions.assertEquals("tr", 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 2c17baf86a39..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DataLakeAnalyticsUsqlActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeAnalyticsUsqlActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsUsqlActivity model = BinaryData.fromString( - "{\"type\":\"DataLakeAnalyticsU-SQL\",\"typeProperties\":{\"scriptPath\":\"datagstmlhrziggc\",\"scriptLinkedService\":{\"referenceName\":\"zynimkk\",\"parameters\":{\"douicho\":\"dataowcutohmxmj\"}},\"degreeOfParallelism\":\"datamenn\",\"priority\":\"dataqjakqdqnne\",\"parameters\":{\"eqllrpcqyxqf\":\"datauuguzesfgg\",\"qeqtlsipedgtup\":\"datarvmvdqhageho\"},\"runtimeVersion\":\"datavxeubngwidgxy\",\"compilationMode\":\"dataovlph\"},\"linkedServiceName\":{\"referenceName\":\"mfvyhmivy\",\"parameters\":{\"k\":\"datao\"}},\"policy\":{\"timeout\":\"dataoprgcs\",\"retry\":\"datacorxibwsf\",\"retryIntervalInSeconds\":817850977,\"secureInput\":false,\"secureOutput\":true,\"\":{\"assclgolbpwegz\":\"dataxenmuev\",\"k\":\"dataionlgnes\"}},\"name\":\"nhfd\",\"description\":\"skv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"hlbxrqbi\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"c\":\"dataxxiizkehfkp\"}}],\"userProperties\":[{\"name\":\"wbkrwihb\",\"value\":\"dataufmui\"},{\"name\":\"hqpqfowxdihux\",\"value\":\"datadgotoon\"}],\"\":{\"jqxknaeuhxnpad\":\"datai\",\"dvnaxtbnjmj\":\"datajaeqaolfyqjgob\",\"bdfmhzgtieybimit\":\"datagrwvl\",\"wab\":\"dataxeetkwloozeg\"}}") - .toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("nhfd", model.name()); - Assertions.assertEquals("skv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("hlbxrqbi", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wbkrwihb", model.userProperties().get(0).name()); - Assertions.assertEquals("mfvyhmivy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(817850977, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("zynimkk", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivity model = new DataLakeAnalyticsUsqlActivity().withName("nhfd") - .withDescription("skv") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("hlbxrqbi") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("wbkrwihb").withValue("dataufmui"), - new UserProperty().withName("hqpqfowxdihux").withValue("datadgotoon"))) - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("mfvyhmivy").withParameters(mapOf("k", "datao"))) - .withPolicy(new ActivityPolicy().withTimeout("dataoprgcs") - .withRetry("datacorxibwsf") - .withRetryIntervalInSeconds(817850977) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withScriptPath("datagstmlhrziggc") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("zynimkk") - .withParameters(mapOf("douicho", "dataowcutohmxmj"))) - .withDegreeOfParallelism("datamenn") - .withPriority("dataqjakqdqnne") - .withParameters(mapOf("eqllrpcqyxqf", "datauuguzesfgg", "qeqtlsipedgtup", "datarvmvdqhageho")) - .withRuntimeVersion("datavxeubngwidgxy") - .withCompilationMode("dataovlph"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivity.class); - Assertions.assertEquals("nhfd", model.name()); - Assertions.assertEquals("skv", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("hlbxrqbi", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wbkrwihb", model.userProperties().get(0).name()); - Assertions.assertEquals("mfvyhmivy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(817850977, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("zynimkk", 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 ed4a6ecd4447..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataLakeAnalyticsUsqlActivityTypePropertiesTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.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\":\"datarrreftwhiivxy\",\"scriptLinkedService\":{\"referenceName\":\"vjezikuzlfnbzek\",\"parameters\":{\"yhncqyo\":\"datajbkwrvc\",\"nxggwx\":\"datavvpxsd\",\"ykovgxamhmq\":\"dataqyhtlnnpft\"}},\"degreeOfParallelism\":\"datayoylcwzkcreufdp\",\"priority\":\"dataelcrwh\",\"parameters\":{\"uvbo\":\"datasxybalsmia\",\"byyvxjelsjhgrvy\":\"dataqzypvc\",\"ikujjdoelaw\":\"dataluhkhiycddon\",\"kotvoszgcy\":\"databkez\"},\"runtimeVersion\":\"datajxnahqwvvferl\",\"compilationMode\":\"datafz\"}") - .toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("vjezikuzlfnbzek", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsUsqlActivityTypeProperties model - = new DataLakeAnalyticsUsqlActivityTypeProperties().withScriptPath("datarrreftwhiivxy") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("vjezikuzlfnbzek") - .withParameters( - mapOf("yhncqyo", "datajbkwrvc", "nxggwx", "datavvpxsd", "ykovgxamhmq", "dataqyhtlnnpft"))) - .withDegreeOfParallelism("datayoylcwzkcreufdp") - .withPriority("dataelcrwh") - .withParameters(mapOf("uvbo", "datasxybalsmia", "byyvxjelsjhgrvy", "dataqzypvc", "ikujjdoelaw", - "dataluhkhiycddon", "kotvoszgcy", "databkez")) - .withRuntimeVersion("datajxnahqwvvferl") - .withCompilationMode("datafz"); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsUsqlActivityTypeProperties.class); - Assertions.assertEquals("vjezikuzlfnbzek", model.scriptLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java deleted file mode 100644 index d20be50438d6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DataMapperMappingTests.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataMapperMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMapperMapping model = BinaryData.fromString( - "{\"targetEntityName\":\"iucijjcea\",\"sourceEntityName\":\"ijjj\",\"sourceConnectionReference\":{\"connectionName\":\"am\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"kvccxetyvkunmig\",\"type\":\"Direct\",\"functionName\":\"k\",\"expression\":\"qo\",\"attributeReference\":{\"name\":\"pinde\",\"entity\":\"abbxbhmedeil\",\"entityConnectionReference\":{\"connectionName\":\"wfcfxzirzz\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"usuv\",\"entity\":\"lczwci\",\"entityConnectionReference\":{}},{\"name\":\"sllfryvdmvxad\",\"entity\":\"cfrgnawbabgfbkt\",\"entityConnectionReference\":{}},{\"name\":\"fczlfsyqkfrbzgow\",\"entity\":\"qmje\",\"entityConnectionReference\":{}},{\"name\":\"xnyqgxhlusr\",\"entity\":\"i\",\"entityConnectionReference\":{}}]},{\"name\":\"jceagb\",\"type\":\"Direct\",\"functionName\":\"sumywzashxgonoyj\",\"expression\":\"ipubyznclkfk\",\"attributeReference\":{\"name\":\"gv\",\"entity\":\"e\",\"entityConnectionReference\":{\"connectionName\":\"oqujlyegqavn\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"btnyjpy\",\"entity\":\"dbfvabmv\",\"entityConnectionReference\":{}},{\"name\":\"baevwjcnkottl\",\"entity\":\"hvajmailfemjjzak\",\"entityConnectionReference\":{}}]},{\"name\":\"iqullqxbdmvr\",\"type\":\"Aggregate\",\"functionName\":\"erndbrnyeofltfnn\",\"expression\":\"kadjf\",\"attributeReference\":{\"name\":\"fmu\",\"entity\":\"iripfohyk\",\"entityConnectionReference\":{\"connectionName\":\"bbcbrwji\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"zbeewoiymrvzbju\",\"entity\":\"srziuct\",\"entityConnectionReference\":{}},{\"name\":\"bdsuifr\",\"entity\":\"kaapezkiswqjmdg\",\"entityConnectionReference\":{}}]},{\"name\":\"parybjufpt\",\"type\":\"Direct\",\"functionName\":\"jnciui\",\"expression\":\"vldaswv\",\"attributeReference\":{\"name\":\"sqqzlgcndhz\",\"entity\":\"rfc\",\"entityConnectionReference\":{\"connectionName\":\"hkhg\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"kpphefsbzx\",\"entity\":\"zxomeikjclwz\",\"entityConnectionReference\":{}},{\"name\":\"mwpfs\",\"entity\":\"t\",\"entityConnectionReference\":{}},{\"name\":\"yqbxyxoyf\",\"entity\":\"qqi\",\"entityConnectionReference\":{}}]}]},\"sourceDenormalizeInfo\":\"dataxlhdj\"}") - .toObject(DataMapperMapping.class); - Assertions.assertEquals("iucijjcea", model.targetEntityName()); - Assertions.assertEquals("ijjj", model.sourceEntityName()); - Assertions.assertEquals("am", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("kvccxetyvkunmig", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("k", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("qo", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions.assertEquals("pinde", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("abbxbhmedeil", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("wfcfxzirzz", - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions.assertEquals("usuv", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("lczwci", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).entity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMapperMapping model = new DataMapperMapping().withTargetEntityName("iucijjcea") - .withSourceEntityName("ijjj") - .withSourceConnectionReference( - new MapperConnectionReference().withConnectionName("am").withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo(new MapperAttributeMappings().withAttributeMappings(Arrays.asList( - new MapperAttributeMapping().withName("kvccxetyvkunmig") - .withType(MappingType.DIRECT) - .withFunctionName("k") - .withExpression("qo") - .withAttributeReference(new MapperAttributeReference().withName("pinde") - .withEntity("abbxbhmedeil") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("wfcfxzirzz") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("usuv") - .withEntity("lczwci") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("sllfryvdmvxad") - .withEntity("cfrgnawbabgfbkt") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("fczlfsyqkfrbzgow") - .withEntity("qmje") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("xnyqgxhlusr") - .withEntity("i") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("jceagb") - .withType(MappingType.DIRECT) - .withFunctionName("sumywzashxgonoyj") - .withExpression("ipubyznclkfk") - .withAttributeReference(new MapperAttributeReference().withName("gv") - .withEntity("e") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("oqujlyegqavn") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("btnyjpy") - .withEntity("dbfvabmv") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("baevwjcnkottl") - .withEntity("hvajmailfemjjzak") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("iqullqxbdmvr") - .withType(MappingType.AGGREGATE) - .withFunctionName("erndbrnyeofltfnn") - .withExpression("kadjf") - .withAttributeReference(new MapperAttributeReference().withName("fmu") - .withEntity("iripfohyk") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("bbcbrwji") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("zbeewoiymrvzbju") - .withEntity("srziuct") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("bdsuifr") - .withEntity("kaapezkiswqjmdg") - .withEntityConnectionReference(new MapperConnectionReference()))), - new MapperAttributeMapping().withName("parybjufpt") - .withType(MappingType.DIRECT) - .withFunctionName("jnciui") - .withExpression("vldaswv") - .withAttributeReference(new MapperAttributeReference().withName("sqqzlgcndhz") - .withEntity("rfc") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("hkhg") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList( - new MapperAttributeReference().withName("kpphefsbzx") - .withEntity("zxomeikjclwz") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("mwpfs") - .withEntity("t") - .withEntityConnectionReference(new MapperConnectionReference()), - new MapperAttributeReference().withName("yqbxyxoyf") - .withEntity("qqi") - .withEntityConnectionReference(new MapperConnectionReference())))))) - .withSourceDenormalizeInfo("dataxlhdj"); - model = BinaryData.fromObject(model).toObject(DataMapperMapping.class); - Assertions.assertEquals("iucijjcea", model.targetEntityName()); - Assertions.assertEquals("ijjj", model.sourceEntityName()); - Assertions.assertEquals("am", model.sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.sourceConnectionReference().type()); - Assertions.assertEquals("kvccxetyvkunmig", model.attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("k", model.attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("qo", model.attributeMappingInfo().attributeMappings().get(0).expression()); - Assertions.assertEquals("pinde", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("abbxbhmedeil", - model.attributeMappingInfo().attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("wfcfxzirzz", - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappingInfo() - .attributeMappings() - .get(0) - .attributeReference() - .entityConnectionReference() - .type()); - Assertions.assertEquals("usuv", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("lczwci", - model.attributeMappingInfo().attributeMappings().get(0).attributeReferences().get(0).entity()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.java deleted file mode 100644 index 2d92bfd1cfba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTests.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.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksNotebookActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksNotebookActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksNotebookActivity model = BinaryData.fromString( - "{\"type\":\"DatabricksNotebook\",\"typeProperties\":{\"notebookPath\":\"dataga\",\"baseParameters\":{\"sxu\":\"datair\",\"zchkww\":\"databnbofyeggaauubk\",\"lujwcyvpxbqujno\":\"databxjpytkakhvao\",\"gwzvdqpxicpozzhf\":\"datafxirjcc\"},\"libraries\":[{\"ps\":\"dataqpc\",\"fkzu\":\"datardkdomyqbeasbvz\",\"bmfqtnqaqlt\":\"datazqudqgfr\"},{\"yfitdprbmmfqte\":\"datahfphawjovqtvbusy\",\"egykzdspbjk\":\"dataxgikdcjmbwrhpwtu\",\"gerangxnafo\":\"datandsrwhjhi\"},{\"qcxrvwduspxij\":\"dataq\",\"yvzpv\":\"dataremvzqc\",\"ucfsup\":\"datasduzfyb\",\"yjwxwpoywymtw\":\"dataqpg\"},{\"x\":\"datadgbg\",\"gia\":\"datazrzhkhmw\",\"nlzalsuj\":\"datarftpgqxnyoakd\"}]},\"linkedServiceName\":{\"referenceName\":\"gz\",\"parameters\":{\"bmfejtdboa\":\"databce\",\"jypgbhfzypy\":\"datanya\"}},\"policy\":{\"timeout\":\"datarlrjgrzxaa\",\"retry\":\"databhkaqzahjqslshc\",\"retryIntervalInSeconds\":1784468344,\"secureInput\":true,\"secureOutput\":false,\"\":{\"co\":\"datagsnf\",\"upaqzithojrtcdav\":\"datat\",\"wezwkparj\":\"datarifmtk\"}},\"name\":\"xirsvjozexxzkci\",\"description\":\"keawrumhz\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"gsshdubq\",\"dependencyConditions\":[\"Failed\"],\"\":{\"khi\":\"databomw\",\"wbormfnntpocf\":\"dataqiqx\",\"dohytkhq\":\"datavmzs\"}},{\"activity\":\"h\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Failed\"],\"\":{\"eaivbzrmsoeddwji\":\"datamttsw\",\"oatfiomd\":\"datarzavciffqameccuq\"}},{\"activity\":\"ecrbcvhkkdsy\",\"dependencyConditions\":[\"Completed\",\"Succeeded\"],\"\":{\"xluqpzwlbccxjbal\":\"databzohvpq\"}}],\"userProperties\":[{\"name\":\"jnknfv\",\"value\":\"dataavr\"}],\"\":{\"qcvan\":\"dataib\",\"s\":\"datauiiprfijmil\"}}") - .toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("xirsvjozexxzkci", model.name()); - Assertions.assertEquals("keawrumhz", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gsshdubq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jnknfv", model.userProperties().get(0).name()); - Assertions.assertEquals("gz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1784468344, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksNotebookActivity model = new DatabricksNotebookActivity().withName("xirsvjozexxzkci") - .withDescription("keawrumhz") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gsshdubq") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("h") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ecrbcvhkkdsy") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("jnknfv").withValue("dataavr"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("gz") - .withParameters(mapOf("bmfejtdboa", "databce", "jypgbhfzypy", "datanya"))) - .withPolicy(new ActivityPolicy().withTimeout("datarlrjgrzxaa") - .withRetry("databhkaqzahjqslshc") - .withRetryIntervalInSeconds(1784468344) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withNotebookPath("dataga") - .withBaseParameters(mapOf("sxu", "datair", "zchkww", "databnbofyeggaauubk", "lujwcyvpxbqujno", - "databxjpytkakhvao", "gwzvdqpxicpozzhf", "datafxirjcc")) - .withLibraries( - Arrays.asList(mapOf("ps", "dataqpc", "fkzu", "datardkdomyqbeasbvz", "bmfqtnqaqlt", "datazqudqgfr"), - mapOf("yfitdprbmmfqte", "datahfphawjovqtvbusy", "egykzdspbjk", "dataxgikdcjmbwrhpwtu", - "gerangxnafo", "datandsrwhjhi"), - mapOf("qcxrvwduspxij", "dataq", "yvzpv", "dataremvzqc", "ucfsup", "datasduzfyb", "yjwxwpoywymtw", - "dataqpg"), - mapOf("x", "datadgbg", "gia", "datazrzhkhmw", "nlzalsuj", "datarftpgqxnyoakd"))); - model = BinaryData.fromObject(model).toObject(DatabricksNotebookActivity.class); - Assertions.assertEquals("xirsvjozexxzkci", model.name()); - Assertions.assertEquals("keawrumhz", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gsshdubq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jnknfv", model.userProperties().get(0).name()); - Assertions.assertEquals("gz", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1784468344, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.java deleted file mode 100644 index d86e1e151e45..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksNotebookActivityTypePropertiesTests.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.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\":\"datadxsphfjzxeswzg\",\"baseParameters\":{\"sjeolxbg\":\"datagggj\",\"twehvuttngatgl\":\"dataojoe\"},\"libraries\":[{\"eahypjqag\":\"datazguarkrfabf\"},{\"u\":\"datau\",\"mwae\":\"datalffpvdjfwsibplb\"},{\"hnhcxhf\":\"datab\",\"d\":\"datahabn\"}]}") - .toObject(DatabricksNotebookActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksNotebookActivityTypeProperties model - = new DatabricksNotebookActivityTypeProperties().withNotebookPath("datadxsphfjzxeswzg") - .withBaseParameters(mapOf("sjeolxbg", "datagggj", "twehvuttngatgl", "dataojoe")) - .withLibraries(Arrays.asList(mapOf("eahypjqag", "datazguarkrfabf"), - mapOf("u", "datau", "mwae", "datalffpvdjfwsibplb"), mapOf("hnhcxhf", "datab", "d", "datahabn"))); - 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 5cbbc1ff5bc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTests.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.DatabricksSparkJarActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksSparkJarActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkJarActivity model = BinaryData.fromString( - "{\"type\":\"DatabricksSparkJar\",\"typeProperties\":{\"mainClassName\":\"databtymhh\",\"parameters\":[\"datacmwix\",\"datarvrpujb\"],\"libraries\":[{\"gteihmvxupqfaww\":\"datay\",\"snynvgf\":\"dataxqjhmfyvgmdwv\"}]},\"linkedServiceName\":{\"referenceName\":\"tokipndek\",\"parameters\":{\"rotnvxyeqdin\":\"datadrkddzkki\",\"xlpgrvtzj\":\"dataqsejtqoxeth\"}},\"policy\":{\"timeout\":\"datasrejqwylh\",\"retry\":\"datamho\",\"retryIntervalInSeconds\":1180067892,\"secureInput\":true,\"secureOutput\":false,\"\":{\"xtxhxfsknmrce\":\"dataomxyxnben\",\"woflfniislohftm\":\"datadfbdxwywdyqpkw\",\"rxryaicyvtsg\":\"datam\",\"qopoe\":\"datapmatubtejipqynrl\"}},\"name\":\"qf\",\"description\":\"xthcdzeuck\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"nikoybr\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Skipped\"],\"\":{\"ymis\":\"datatzhiku\",\"l\":\"dataoxmzvlofzdnvsr\"}},{\"activity\":\"wzuj\",\"dependencyConditions\":[\"Completed\"],\"\":{\"cxtxgrhaqbst\":\"datavxrqegk\",\"sffeql\":\"datadeuvsbsdcoq\",\"rjrx\":\"datakpvsij\",\"occeyeqsehkq\":\"datacnfyknx\"}},{\"activity\":\"lldeksgejmpkqtj\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"uoqbclhn\":\"datahpkaamoovrbv\",\"kzhqpkckwaafu\":\"dataqxuxrggx\",\"hpijurqoihxibji\":\"datascjaw\"}},{\"activity\":\"m\",\"dependencyConditions\":[\"Completed\"],\"\":{\"nbluxomzg\":\"datafurdjjzsijmsaa\",\"wuiopgyunf\":\"datajmnvukovxfkxnevc\"}}],\"userProperties\":[{\"name\":\"oycg\",\"value\":\"datakik\"},{\"name\":\"q\",\"value\":\"datadiihmpmfa\"},{\"name\":\"inodekp\",\"value\":\"datacpwcxfnuysrvxaym\"},{\"name\":\"ldorqprjevueyzg\",\"value\":\"datassog\"}],\"\":{\"eoma\":\"datavfvirgbguewtcq\",\"ojmxbyviykwrffxo\":\"datanwsgauwe\",\"cxpzje\":\"datawx\",\"npuquyatvsnkrxh\":\"dataoyqlcvtdyuozmtsj\"}}") - .toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("qf", model.name()); - Assertions.assertEquals("xthcdzeuck", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("nikoybr", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("oycg", model.userProperties().get(0).name()); - Assertions.assertEquals("tokipndek", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1180067892, 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("qf") - .withDescription("xthcdzeuck") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("nikoybr") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wzuj") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lldeksgejmpkqtj") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("m") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("oycg").withValue("datakik"), - new UserProperty().withName("q").withValue("datadiihmpmfa"), - new UserProperty().withName("inodekp").withValue("datacpwcxfnuysrvxaym"), - new UserProperty().withName("ldorqprjevueyzg").withValue("datassog"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tokipndek") - .withParameters(mapOf("rotnvxyeqdin", "datadrkddzkki", "xlpgrvtzj", "dataqsejtqoxeth"))) - .withPolicy(new ActivityPolicy().withTimeout("datasrejqwylh") - .withRetry("datamho") - .withRetryIntervalInSeconds(1180067892) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withMainClassName("databtymhh") - .withParameters(Arrays.asList("datacmwix", "datarvrpujb")) - .withLibraries(Arrays.asList(mapOf("gteihmvxupqfaww", "datay", "snynvgf", "dataxqjhmfyvgmdwv"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkJarActivity.class); - Assertions.assertEquals("qf", model.name()); - Assertions.assertEquals("xthcdzeuck", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("nikoybr", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("oycg", model.userProperties().get(0).name()); - Assertions.assertEquals("tokipndek", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1180067892, 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 9020a3c9828f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkJarActivityTypePropertiesTests.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.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\":\"dataegwvblrgrzlrnuy\",\"parameters\":[\"datatjzid\"],\"libraries\":[{\"ukjywgsyidqlghr\":\"dataauwhfhynholojcay\",\"nk\":\"datactvl\",\"ejhtbqzxqidguaw\":\"datadrfekxv\",\"uyricaik\":\"datawjbante\"},{\"tfpo\":\"dataj\",\"q\":\"dataalrrqjioltdlppyk\"},{\"ordnwtucvbviymv\":\"datarvghvfodrqmcgeqy\",\"fnvdorsgcvgknbmp\":\"datanq\"}]}") - .toObject(DatabricksSparkJarActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkJarActivityTypeProperties model - = new DatabricksSparkJarActivityTypeProperties().withMainClassName("dataegwvblrgrzlrnuy") - .withParameters(Arrays.asList("datatjzid")) - .withLibraries(Arrays.asList( - mapOf("ukjywgsyidqlghr", "dataauwhfhynholojcay", "nk", "datactvl", "ejhtbqzxqidguaw", "datadrfekxv", - "uyricaik", "datawjbante"), - mapOf("tfpo", "dataj", "q", "dataalrrqjioltdlppyk"), - mapOf("ordnwtucvbviymv", "datarvghvfodrqmcgeqy", "fnvdorsgcvgknbmp", "datanq"))); - 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 7e9eefee8093..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTests.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatabricksSparkPythonActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatabricksSparkPythonActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkPythonActivity model = BinaryData.fromString( - "{\"type\":\"DatabricksSparkPython\",\"typeProperties\":{\"pythonFile\":\"datanezdp\",\"parameters\":[\"dataqhbbzfcjmhpobu\",\"datapdyztqpszbtbx\",\"datambyltd\",\"dataraxehxotizvwiha\"],\"libraries\":[{\"veb\":\"datafovjiyl\"},{\"a\":\"datavbzsmgeyok\",\"ebgaaxffttfqlcxy\":\"dataehxs\",\"sq\":\"datacmogfbweuazxts\"}]},\"linkedServiceName\":{\"referenceName\":\"dsb\",\"parameters\":{\"bumpplbcarcyrftc\":\"datamwnicdgim\",\"hdlrfyonnb\":\"dataxzmxww\",\"zodolehchimzrc\":\"datavxrcmrdmyjcou\",\"obuanybfm\":\"datazirkyxhqwoxm\"}},\"policy\":{\"timeout\":\"datahpqnzpf\",\"retry\":\"datappkqufdmgmfyia\",\"retryIntervalInSeconds\":410855130,\"secureInput\":true,\"secureOutput\":true,\"\":{\"knygzdrdicwm\":\"datalhyfxmrqpi\",\"hjvvrrxclf\":\"dataeavawywofgccj\"}},\"name\":\"mx\",\"description\":\"qwyiuhhuftnuigx\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"hwxossokafy\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Skipped\",\"Failed\"],\"\":{\"rcsyjxdwvdklgwo\":\"dataijgjbevt\",\"syaohizfysanrbup\":\"datawalefmenbajzeelb\",\"y\":\"datatkddohxvcsoq\",\"danufiwtkhcmoc\":\"datacqpmywt\"}},{\"activity\":\"gtmfug\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"dcrdveccmqenfgba\":\"datastkkztexdsnmh\",\"denv\":\"datauuyt\"}},{\"activity\":\"olfiigox\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Succeeded\"],\"\":{\"cfayllx\":\"dataisyydoymccw\",\"tsmyfgted\":\"datahqvmilpgxeaqwogp\",\"dkypckhqooqni\":\"datamcoruti\"}}],\"userProperties\":[{\"name\":\"qsudtmkmgc\",\"value\":\"datapv\"},{\"name\":\"kngvpsukkk\",\"value\":\"datakghugfdugqhmo\"},{\"name\":\"ekoxylcbp\",\"value\":\"datatjtiidozfrgvqurr\"}],\"\":{\"oiikr\":\"datajdrsvohjg\",\"ja\":\"datalzsgpoiccbzqko\",\"zkq\":\"datadm\",\"tazqsucttp\":\"datalz\"}}") - .toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("mx", model.name()); - Assertions.assertEquals("qwyiuhhuftnuigx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("hwxossokafy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qsudtmkmgc", model.userProperties().get(0).name()); - Assertions.assertEquals("dsb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(410855130, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkPythonActivity model = new DatabricksSparkPythonActivity().withName("mx") - .withDescription("qwyiuhhuftnuigx") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hwxossokafy") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gtmfug") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("olfiigox") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("qsudtmkmgc").withValue("datapv"), - new UserProperty().withName("kngvpsukkk").withValue("datakghugfdugqhmo"), - new UserProperty().withName("ekoxylcbp").withValue("datatjtiidozfrgvqurr"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dsb") - .withParameters(mapOf("bumpplbcarcyrftc", "datamwnicdgim", "hdlrfyonnb", "dataxzmxww", "zodolehchimzrc", - "datavxrcmrdmyjcou", "obuanybfm", "datazirkyxhqwoxm"))) - .withPolicy(new ActivityPolicy().withTimeout("datahpqnzpf") - .withRetry("datappkqufdmgmfyia") - .withRetryIntervalInSeconds(410855130) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withPythonFile("datanezdp") - .withParameters( - Arrays.asList("dataqhbbzfcjmhpobu", "datapdyztqpszbtbx", "datambyltd", "dataraxehxotizvwiha")) - .withLibraries(Arrays.asList(mapOf("veb", "datafovjiyl"), - mapOf("a", "datavbzsmgeyok", "ebgaaxffttfqlcxy", "dataehxs", "sq", "datacmogfbweuazxts"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkPythonActivity.class); - Assertions.assertEquals("mx", model.name()); - Assertions.assertEquals("qwyiuhhuftnuigx", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("hwxossokafy", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("qsudtmkmgc", model.userProperties().get(0).name()); - Assertions.assertEquals("dsb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(410855130, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java deleted file mode 100644 index 61d370e6354e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatabricksSparkPythonActivityTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkPythonActivityTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DatabricksSparkPythonActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabricksSparkPythonActivityTypeProperties model = BinaryData.fromString( - "{\"pythonFile\":\"datatwgbfiosdizpg\",\"parameters\":[\"dataglzfgepblhe\"],\"libraries\":[{\"amrytrny\":\"datavenmuenoq\",\"mbj\":\"dataoixiduzrdvhgyj\",\"g\":\"datafwlxkxlru\"}]}") - .toObject(DatabricksSparkPythonActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabricksSparkPythonActivityTypeProperties model = new DatabricksSparkPythonActivityTypeProperties() - .withPythonFile("datatwgbfiosdizpg") - .withParameters(Arrays.asList("dataglzfgepblhe")) - .withLibraries( - Arrays.asList(mapOf("amrytrny", "datavenmuenoq", "mbj", "dataoixiduzrdvhgyj", "g", "datafwlxkxlru"))); - model = BinaryData.fromObject(model).toObject(DatabricksSparkPythonActivityTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java deleted file mode 100644 index 9a3e3d9eff37..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetCompressionTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetCompressionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetCompression model = BinaryData.fromString( - "{\"type\":\"dataqrslaate\",\"level\":\"datawuj\",\"\":{\"qqy\":\"dataxqgqwlxrhgtvhv\",\"ejogmkor\":\"databkkteo\",\"ofnqhlbs\":\"datavmvm\",\"yalhtgm\":\"dataosnqliwkmzojfe\"}}") - .toObject(DatasetCompression.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetCompression model - = new DatasetCompression().withType("dataqrslaate").withLevel("datawuj").withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DatasetCompression.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java deleted file mode 100644 index 9647970853d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetDebugResourceTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"wey\",\"structure\":\"datadhlisngwflqqmpi\",\"schema\":\"datauwnpqxpxiwfcng\",\"linkedServiceName\":{\"referenceName\":\"saasiixtmkzj\",\"parameters\":{\"gratzvzbglbyvict\":\"dataiirhgfgrwsd\",\"rgxffmshkw\":\"datatbrxkjz\",\"qaclnapxbiy\":\"databkgozxwopdbydpi\"}},\"parameters\":{\"lq\":{\"type\":\"Int\",\"defaultValue\":\"dataknfsmfcttuxuuyil\"},\"hmrnjhvsuj\":{\"type\":\"SecureString\",\"defaultValue\":\"datauvr\"}},\"annotations\":[\"datazytqjtwhauunfpr\",\"datajletlxsmrpddo\",\"dataifamowazi\",\"datanknlqwzdvpi\"],\"folder\":{\"name\":\"qszdtmaajquhuxyl\"},\"\":{\"ygjbmzyospspsh\":\"datam\",\"sp\":\"datakfkyjp\"}},\"name\":\"ssdfpp\"}") - .toObject(DatasetDebugResource.class); - Assertions.assertEquals("ssdfpp", model.name()); - Assertions.assertEquals("wey", model.properties().description()); - Assertions.assertEquals("saasiixtmkzj", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("lq").type()); - Assertions.assertEquals("qszdtmaajquhuxyl", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetDebugResource model - = new DatasetDebugResource().withName("ssdfpp") - .withProperties(new Dataset().withDescription("wey") - .withStructure("datadhlisngwflqqmpi") - .withSchema("datauwnpqxpxiwfcng") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("saasiixtmkzj") - .withParameters(mapOf("gratzvzbglbyvict", "dataiirhgfgrwsd", "rgxffmshkw", "datatbrxkjz", - "qaclnapxbiy", "databkgozxwopdbydpi"))) - .withParameters(mapOf("lq", - new ParameterSpecification().withType(ParameterType.INT) - .withDefaultValue("dataknfsmfcttuxuuyil"), - "hmrnjhvsuj", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datauvr"))) - .withAnnotations( - Arrays.asList("datazytqjtwhauunfpr", "datajletlxsmrpddo", "dataifamowazi", "datanknlqwzdvpi")) - .withFolder(new DatasetFolder().withName("qszdtmaajquhuxyl")) - .withAdditionalProperties(mapOf("type", "Dataset"))); - model = BinaryData.fromObject(model).toObject(DatasetDebugResource.class); - Assertions.assertEquals("ssdfpp", model.name()); - Assertions.assertEquals("wey", model.properties().description()); - Assertions.assertEquals("saasiixtmkzj", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("lq").type()); - Assertions.assertEquals("qszdtmaajquhuxyl", model.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java deleted file mode 100644 index 37a313b683e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import org.junit.jupiter.api.Assertions; - -public final class DatasetFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetFolder model = BinaryData.fromString("{\"name\":\"wem\"}").toObject(DatasetFolder.class); - Assertions.assertEquals("wem", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetFolder model = new DatasetFolder().withName("wem"); - model = BinaryData.fromObject(model).toObject(DatasetFolder.class); - Assertions.assertEquals("wem", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java deleted file mode 100644 index 63328eb7c200..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetListResponseTests.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetListResponse; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"yzvqt\",\"structure\":\"dataubex\",\"schema\":\"datazksmondj\",\"linkedServiceName\":{\"referenceName\":\"quxvypomgkop\",\"parameters\":{\"qgxy\":\"dataojvpa\",\"xozap\":\"datamocmbqfqvmk\",\"dd\":\"datahelxprglya\",\"rjxgciqib\":\"datakcbcue\"}},\"parameters\":{\"ibahwflus\":{\"type\":\"String\",\"defaultValue\":\"datasdqrhzoymibmrq\"}},\"annotations\":[\"datamhrkwofyyvoqacp\",\"dataexpbtg\",\"datawbwo\",\"datanwashrtd\"],\"folder\":{\"name\":\"nqxwbp\"},\"\":{\"ipqiiobyuqerpq\":\"datalpiujwaa\",\"fbtkuwhhmhyk\":\"datapqwcciuqgbdbutau\"}},\"name\":\"oxafn\",\"type\":\"lpichk\",\"etag\":\"mkcdyhbpkkpwdre\",\"id\":\"ovvqfovljxywsu\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"yrs\",\"structure\":\"datasytgadgvraea\",\"schema\":\"datae\",\"linkedServiceName\":{\"referenceName\":\"nzar\",\"parameters\":{\"uijfqk\":\"dataq\",\"ibwwiftohqkv\":\"datacewiipfpub\",\"ljphuopxodl\":\"datauvksgplsaknynfsy\",\"sjswsrms\":\"dataiyntorzihle\"}},\"parameters\":{\"uiizynke\":{\"type\":\"Object\",\"defaultValue\":\"datazbchckqqzqioxiy\"},\"yhwitsmypyynpcdp\":{\"type\":\"Bool\",\"defaultValue\":\"datatrwyhqmib\"}},\"annotations\":[\"datazgmwznmabikns\",\"datargjhxb\",\"datadtlwwrlkd\"],\"folder\":{\"name\":\"cvokotllxdyhg\"},\"\":{\"hadoocrk\":\"datacogjltdtbn\",\"amqgxqquezikyw\":\"datacikhnv\"}},\"name\":\"xkalla\",\"type\":\"elwuipi\",\"etag\":\"jzkzi\",\"id\":\"vvcnayr\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"rnxxmueed\",\"structure\":\"datardvstkwqqtch\",\"schema\":\"datalmfmtdaay\",\"linkedServiceName\":{\"referenceName\":\"dvwvgpio\",\"parameters\":{\"gyqagvrvmnpkuk\":\"dataxrtfudxep\"}},\"parameters\":{\"jhfjxwm\":{\"type\":\"Int\",\"defaultValue\":\"datablxgwimf\"}},\"annotations\":[\"datakfoqreyfkzikfj\",\"datawneaiv\"],\"folder\":{\"name\":\"zel\"},\"\":{\"lsfeaenwabfatkld\":\"datar\",\"oulpjrv\":\"dataxbjhwuaanozjosph\"}},\"name\":\"glrvimjwosytxi\",\"type\":\"skfc\",\"etag\":\"qumiek\",\"id\":\"zzikhlyfjhdg\"},{\"properties\":{\"type\":\"Dataset\",\"description\":\"gebdunygaeq\",\"structure\":\"databqfatpxllrxcyjmo\",\"schema\":\"datasu\",\"linkedServiceName\":{\"referenceName\":\"arm\",\"parameters\":{\"hhyxxrw\":\"datamjsjqb\",\"duhpk\":\"datayc\"}},\"parameters\":{\"xqugjhkycubedd\":{\"type\":\"Bool\",\"defaultValue\":\"dataareqna\"},\"zqalkrmnjijpx\":{\"type\":\"String\",\"defaultValue\":\"dataofwq\"}},\"annotations\":[\"dataqudf\"],\"folder\":{\"name\":\"xbaaabjyv\"},\"\":{\"nevfdnw\":\"datafimrzrtuzqogse\",\"euzsoi\":\"datawmewzsyy\",\"thzvaytdwkqbrqu\":\"datajudpfrxt\",\"xiilivpdtiirqt\":\"datapaxh\"}},\"name\":\"oaxoruzfgsqu\",\"type\":\"xrxxlep\",\"etag\":\"amxjezwlw\",\"id\":\"xuqlcvydypat\"}],\"nextLink\":\"oa\"}") - .toObject(DatasetListResponse.class); - Assertions.assertEquals("ovvqfovljxywsu", model.value().get(0).id()); - Assertions.assertEquals("yzvqt", model.value().get(0).properties().description()); - Assertions.assertEquals("quxvypomgkop", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, - model.value().get(0).properties().parameters().get("ibahwflus").type()); - Assertions.assertEquals("nqxwbp", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("oa", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetListResponse model = new DatasetListResponse().withValue(Arrays.asList( - new DatasetResourceInner().withId("ovvqfovljxywsu") - .withProperties( - new Dataset().withDescription("yzvqt") - .withStructure("dataubex") - .withSchema("datazksmondj") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("quxvypomgkop") - .withParameters(mapOf("qgxy", "dataojvpa", "xozap", "datamocmbqfqvmk", "dd", - "datahelxprglya", "rjxgciqib", "datakcbcue"))) - .withParameters(mapOf("ibahwflus", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datasdqrhzoymibmrq"))) - .withAnnotations(Arrays.asList("datamhrkwofyyvoqacp", "dataexpbtg", "datawbwo", "datanwashrtd")) - .withFolder(new DatasetFolder().withName("nqxwbp")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetResourceInner().withId("vvcnayr") - .withProperties(new Dataset().withDescription("yrs") - .withStructure("datasytgadgvraea") - .withSchema("datae") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nzar") - .withParameters(mapOf("uijfqk", "dataq", "ibwwiftohqkv", "datacewiipfpub", "ljphuopxodl", - "datauvksgplsaknynfsy", "sjswsrms", "dataiyntorzihle"))) - .withParameters(mapOf("uiizynke", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datazbchckqqzqioxiy"), - "yhwitsmypyynpcdp", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datatrwyhqmib"))) - .withAnnotations(Arrays.asList("datazgmwznmabikns", "datargjhxb", "datadtlwwrlkd")) - .withFolder(new DatasetFolder().withName("cvokotllxdyhg")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetResourceInner().withId("zzikhlyfjhdg") - .withProperties(new Dataset().withDescription("rnxxmueed") - .withStructure("datardvstkwqqtch") - .withSchema("datalmfmtdaay") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dvwvgpio") - .withParameters(mapOf("gyqagvrvmnpkuk", "dataxrtfudxep"))) - .withParameters(mapOf("jhfjxwm", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datablxgwimf"))) - .withAnnotations(Arrays.asList("datakfoqreyfkzikfj", "datawneaiv")) - .withFolder(new DatasetFolder().withName("zel")) - .withAdditionalProperties(mapOf("type", "Dataset"))), - new DatasetResourceInner().withId("xuqlcvydypat") - .withProperties(new Dataset().withDescription("gebdunygaeq") - .withStructure("databqfatpxllrxcyjmo") - .withSchema("datasu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("arm") - .withParameters(mapOf("hhyxxrw", "datamjsjqb", "duhpk", "datayc"))) - .withParameters(mapOf("xqugjhkycubedd", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataareqna"), - "zqalkrmnjijpx", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataofwq"))) - .withAnnotations(Arrays.asList("dataqudf")) - .withFolder(new DatasetFolder().withName("xbaaabjyv")) - .withAdditionalProperties(mapOf("type", "Dataset"))))) - .withNextLink("oa"); - model = BinaryData.fromObject(model).toObject(DatasetListResponse.class); - Assertions.assertEquals("ovvqfovljxywsu", model.value().get(0).id()); - Assertions.assertEquals("yzvqt", model.value().get(0).properties().description()); - Assertions.assertEquals("quxvypomgkop", model.value().get(0).properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, - model.value().get(0).properties().parameters().get("ibahwflus").type()); - Assertions.assertEquals("nqxwbp", model.value().get(0).properties().folder().name()); - Assertions.assertEquals("oa", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java deleted file mode 100644 index d29f8ba1a6fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetLocationTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetLocation model = BinaryData.fromString( - "{\"type\":\"DatasetLocation\",\"folderPath\":\"datadhgjnaqyqi\",\"fileName\":\"datalzmvcdsvmwbi\",\"\":{\"bxqichgybfzdqe\":\"datadtfobvfi\",\"ulrqtbht\":\"dataivycpzcvdi\"}}") - .toObject(DatasetLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetLocation model = new DatasetLocation().withFolderPath("datadhgjnaqyqi") - .withFileName("datalzmvcdsvmwbi") - .withAdditionalProperties(mapOf("type", "DatasetLocation")); - model = BinaryData.fromObject(model).toObject(DatasetLocation.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java deleted file mode 100644 index fce4f5fd40e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetReferenceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetReference model = BinaryData.fromString( - "{\"referenceName\":\"kmyjmkxett\",\"parameters\":{\"dnqtoqxjhqx\":\"dataojfkq\",\"htkbtnq\":\"datas\",\"mbiipsnawwlqk\":\"datarngl\"}}") - .toObject(DatasetReference.class); - Assertions.assertEquals("kmyjmkxett", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetReference model = new DatasetReference().withReferenceName("kmyjmkxett") - .withParameters(mapOf("dnqtoqxjhqx", "dataojfkq", "htkbtnq", "datas", "mbiipsnawwlqk", "datarngl")); - model = BinaryData.fromObject(model).toObject(DatasetReference.class); - Assertions.assertEquals("kmyjmkxett", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java deleted file mode 100644 index b676b3dbac0a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetResourceInnerTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DatasetResourceInner; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Dataset\",\"description\":\"kniod\",\"structure\":\"dataoebwnujhemms\",\"schema\":\"datadkcrodt\",\"linkedServiceName\":{\"referenceName\":\"infwjlfltkacjve\",\"parameters\":{\"kfpagao\":\"datalfoakg\",\"jnsjervtiagxsd\":\"datapulpqblylsyxk\",\"beyvpnqicvinvkjj\":\"datazuempsbzkf\"}},\"parameters\":{\"aztz\":{\"type\":\"Int\",\"defaultValue\":\"datauukzclewyhmlw\"},\"fz\":{\"type\":\"Int\",\"defaultValue\":\"datancckw\"},\"xzfe\":{\"type\":\"Int\",\"defaultValue\":\"dataxxbuyq\"}},\"annotations\":[\"datappriol\"],\"folder\":{\"name\":\"jaltolmnc\"},\"\":{\"ucqdpfuvglsb\":\"databqwcsdbnwdcf\",\"cormr\":\"datajcanvxbvtvudut\",\"f\":\"dataxqtvcofu\",\"u\":\"datavkg\"}},\"name\":\"dknnqvsazn\",\"type\":\"tor\",\"etag\":\"sgsahmkycgr\",\"id\":\"wjue\"}") - .toObject(DatasetResourceInner.class); - Assertions.assertEquals("wjue", model.id()); - Assertions.assertEquals("kniod", model.properties().description()); - Assertions.assertEquals("infwjlfltkacjve", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("aztz").type()); - Assertions.assertEquals("jaltolmnc", model.properties().folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetResourceInner model = new DatasetResourceInner().withId("wjue") - .withProperties(new Dataset().withDescription("kniod") - .withStructure("dataoebwnujhemms") - .withSchema("datadkcrodt") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("infwjlfltkacjve") - .withParameters(mapOf("kfpagao", "datalfoakg", "jnsjervtiagxsd", "datapulpqblylsyxk", - "beyvpnqicvinvkjj", "datazuempsbzkf"))) - .withParameters(mapOf("aztz", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datauukzclewyhmlw"), - "fz", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datancckw"), - "xzfe", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataxxbuyq"))) - .withAnnotations(Arrays.asList("datappriol")) - .withFolder(new DatasetFolder().withName("jaltolmnc")) - .withAdditionalProperties(mapOf("type", "Dataset"))); - model = BinaryData.fromObject(model).toObject(DatasetResourceInner.class); - Assertions.assertEquals("wjue", model.id()); - Assertions.assertEquals("kniod", model.properties().description()); - Assertions.assertEquals("infwjlfltkacjve", model.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("aztz").type()); - Assertions.assertEquals("jaltolmnc", model.properties().folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java deleted file mode 100644 index dbaa16e0e52a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetSchemaDataElementTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetSchemaDataElement; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetSchemaDataElementTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetSchemaDataElement model = BinaryData.fromString( - "{\"name\":\"datadnaryyinzk\",\"type\":\"datalrndwdbvxvza\",\"\":{\"hmcxqqxmyzkl\":\"dataoyqxlunkf\",\"rqra\":\"dataoanpohrvm\"}}") - .toObject(DatasetSchemaDataElement.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetSchemaDataElement model = new DatasetSchemaDataElement().withName("datadnaryyinzk") - .withType("datalrndwdbvxvza") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(DatasetSchemaDataElement.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java deleted file mode 100644 index 232ad1ccffa3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetStorageFormatTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class DatasetStorageFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasetStorageFormat model = BinaryData.fromString( - "{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datadivznl\",\"deserializer\":\"dataslkskhjqjpvbai\",\"\":{\"ywbqgroigbsfsgs\":\"datatgzgta\",\"fmhl\":\"dataenwl\",\"tryldsxebuhsxr\":\"dataqlxspmrj\"}}") - .toObject(DatasetStorageFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasetStorageFormat model = new DatasetStorageFormat().withSerializer("datadivznl") - .withDeserializer("dataslkskhjqjpvbai") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat")); - model = BinaryData.fromObject(model).toObject(DatasetStorageFormat.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java deleted file mode 100644 index 78cf3296e8ed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Dataset model = BinaryData.fromString( - "{\"type\":\"Dataset\",\"description\":\"eburu\",\"structure\":\"datamovsmzlxwabmqoe\",\"schema\":\"dataifrvtpu\",\"linkedServiceName\":{\"referenceName\":\"ujmqlgkfbtndoa\",\"parameters\":{\"ed\":\"databjcntujitc\",\"qouicybxarzgsz\":\"datatwwaezkojvdcpzf\",\"p\":\"datafoxciq\",\"xkhnzbonlwnto\":\"datadoamciodhkha\"}},\"parameters\":{\"kszzcmrvexztv\":{\"type\":\"Bool\",\"defaultValue\":\"datawbw\"},\"lmnguxaw\":{\"type\":\"Object\",\"defaultValue\":\"datagsfraoyzkoow\"}},\"annotations\":[\"datadsyuuximerqfob\",\"datayznkby\",\"datautwpfhp\",\"datagmhrskdsnfdsdoak\"],\"folder\":{\"name\":\"lmkk\"},\"\":{\"sdsttwvog\":\"datadlhewp\",\"akufgmjz\":\"databbejdcngqqm\",\"grtwae\":\"datawr\",\"zkopb\":\"datau\"}}") - .toObject(Dataset.class); - Assertions.assertEquals("eburu", model.description()); - Assertions.assertEquals("ujmqlgkfbtndoa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kszzcmrvexztv").type()); - Assertions.assertEquals("lmkk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dataset model = new Dataset().withDescription("eburu") - .withStructure("datamovsmzlxwabmqoe") - .withSchema("dataifrvtpu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ujmqlgkfbtndoa") - .withParameters(mapOf("ed", "databjcntujitc", "qouicybxarzgsz", "datatwwaezkojvdcpzf", "p", - "datafoxciq", "xkhnzbonlwnto", "datadoamciodhkha"))) - .withParameters(mapOf("kszzcmrvexztv", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawbw"), "lmnguxaw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datagsfraoyzkoow"))) - .withAnnotations(Arrays.asList("datadsyuuximerqfob", "datayznkby", "datautwpfhp", "datagmhrskdsnfdsdoak")) - .withFolder(new DatasetFolder().withName("lmkk")) - .withAdditionalProperties(mapOf("type", "Dataset")); - model = BinaryData.fromObject(model).toObject(Dataset.class); - Assertions.assertEquals("eburu", model.description()); - Assertions.assertEquals("ujmqlgkfbtndoa", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("kszzcmrvexztv").type()); - Assertions.assertEquals("lmkk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index d2fe59a476fe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Dataset; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatasetsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Dataset\",\"description\":\"nevbkkdbhgu\",\"structure\":\"dataxqi\",\"schema\":\"datarj\",\"linkedServiceName\":{\"referenceName\":\"lieyyfqhndj\",\"parameters\":{\"fhsgpy\":\"datavuyxccraj\"}},\"parameters\":{\"nrlpsjbnnuqsz\":{\"type\":\"Int\",\"defaultValue\":\"datad\"},\"dbunxufataq\":{\"type\":\"Array\",\"defaultValue\":\"dataiufrqsmjg\"},\"unazl\":{\"type\":\"Array\",\"defaultValue\":\"datahgdwhacurmm\"},\"isuhareqyiadvv\":{\"type\":\"String\",\"defaultValue\":\"datanyzcnq\"}},\"annotations\":[\"datafyel\",\"datan\",\"datapnyyuxcjq\"],\"folder\":{\"name\":\"sdntuko\"},\"\":{\"ygecly\":\"dataflfv\",\"jbzd\":\"datatoshkzib\"}},\"name\":\"gpv\",\"type\":\"icw\",\"etag\":\"y\",\"id\":\"hglltjghdfus\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - DatasetResource response = manager.datasets() - .define("wc") - .withExistingFactory("cnwqeixyjlfobj", "betsvnloduvcq") - .withProperties(new Dataset().withDescription("feolhs") - .withStructure("datakivlzvxmqvl") - .withSchema("datappnsiynz") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("adkurwg") - .withParameters(mapOf("llcsdgmcjsktej", "datanjox", "ezzpfldd", "datamhttiqbnfyixkeav", "xrfr", - "datavcwhodfwv"))) - .withParameters( - mapOf("ofgpns", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datat"), - "w", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datase"))) - .withAnnotations(Arrays.asList("datafpoqbekkqsaby")) - .withFolder(new DatasetFolder().withName("rwprbzfbdsncy")) - .withAdditionalProperties(mapOf("type", "Dataset"))) - .withIfMatch("tbwe") - .create(); - - Assertions.assertEquals("hglltjghdfus", response.id()); - Assertions.assertEquals("nevbkkdbhgu", response.properties().description()); - Assertions.assertEquals("lieyyfqhndj", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, response.properties().parameters().get("nrlpsjbnnuqsz").type()); - Assertions.assertEquals("sdntuko", 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 537e25ca83a2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.datasets() - .deleteWithResponse("ypouvpdclajujsov", "freyrgrgf", "zehxddmaevcjtrw", 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 60d367d4a6a1..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatasetsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Dataset\",\"description\":\"dnxwkf\",\"structure\":\"dataursbyfoavozqn\",\"schema\":\"datamxitvmrq\",\"linkedServiceName\":{\"referenceName\":\"kzchcmuvskdvqyf\",\"parameters\":{\"f\":\"dataxca\",\"yohzhu\":\"datavjpfojhvqmdo\",\"k\":\"datad\",\"pgarhf\":\"datadxfvjdfusuwght\"}},\"parameters\":{\"vqpmwqsd\":{\"type\":\"String\",\"defaultValue\":\"dataivadpc\"}},\"annotations\":[\"datae\",\"datakfsgrheakvl\",\"dataukmnu\"],\"folder\":{\"name\":\"bjclihfzrii\"},\"\":{\"nctkqbvtdeou\":\"dataqyptmjqjoamzdsa\",\"juwdvfaulbfrc\":\"dataixgtpykbjevj\"}},\"name\":\"ucobpkphxh\",\"type\":\"fekxbcbumj\",\"etag\":\"ukezqohthsmdua\",\"id\":\"pryuw\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - DatasetResource response = manager.datasets() - .getWithResponse("uhjxvcjrxle", "yptvrbgcp", "sd", "swozpm", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("pryuw", response.id()); - Assertions.assertEquals("dnxwkf", response.properties().description()); - Assertions.assertEquals("kzchcmuvskdvqyf", response.properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, response.properties().parameters().get("vqpmwqsd").type()); - Assertions.assertEquals("bjclihfzrii", 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 26052518c16b..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatasetsListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"Dataset\",\"description\":\"zflydywbn\",\"structure\":\"dataygsifsahkc\",\"schema\":\"datavajnsu\",\"linkedServiceName\":{\"referenceName\":\"xbyrvguojkysol\",\"parameters\":{\"qfhnqxqtemvqxxuw\":\"datafhlynkiusbyysbjt\",\"ylkdbyo\":\"dataatuiqc\"}},\"parameters\":{\"imtouclsabjzh\":{\"type\":\"Bool\",\"defaultValue\":\"dataavppos\"},\"bhnuujk\":{\"type\":\"String\",\"defaultValue\":\"datavuvjs\"},\"thduactizzhln\":{\"type\":\"Bool\",\"defaultValue\":\"datayewtlomagxaqvra\"},\"djdptruiegrauy\":{\"type\":\"SecureString\",\"defaultValue\":\"datagqciiopoamgheamx\"}},\"annotations\":[\"datagwauipatodfyrf\",\"datapmcjrfj\",\"dataisypkif\",\"datatynhulefltub\"],\"folder\":{\"name\":\"bbl\"},\"\":{\"hfoephiphoygmc\":\"dataahrdxytk\",\"oukimvhqis\":\"dataq\",\"cf\":\"datavologfxbvl\"}},\"name\":\"ajncefqnhr\",\"type\":\"mu\",\"etag\":\"de\",\"id\":\"uohtnjtahdtdc\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.datasets().listByFactory("zxtrjruwljfdcy", "p", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("uohtnjtahdtdc", response.iterator().next().id()); - Assertions.assertEquals("zflydywbn", response.iterator().next().properties().description()); - Assertions.assertEquals("xbyrvguojkysol", - response.iterator().next().properties().linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, - response.iterator().next().properties().parameters().get("imtouclsabjzh").type()); - Assertions.assertEquals("bbl", 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 36b88e239354..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2SourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Db2Source; - -public final class Db2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2Source model = BinaryData.fromString( - "{\"type\":\"Db2Source\",\"query\":\"databjclfb\",\"queryTimeout\":\"datadsatrz\",\"additionalColumns\":\"datatuxwtdaz\",\"sourceRetryCount\":\"dataifktnxugi\",\"sourceRetryWait\":\"databwyeyrnbuby\",\"maxConcurrentConnections\":\"datatowbuuhlwbgvzuxf\",\"disableMetricsCollection\":\"datafpdzuoqp\",\"\":{\"pljzrqwjtswemot\":\"datavnoylmfjylh\"}}") - .toObject(Db2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2Source model = new Db2Source().withSourceRetryCount("dataifktnxugi") - .withSourceRetryWait("databwyeyrnbuby") - .withMaxConcurrentConnections("datatowbuuhlwbgvzuxf") - .withDisableMetricsCollection("datafpdzuoqp") - .withQueryTimeout("datadsatrz") - .withAdditionalColumns("datatuxwtdaz") - .withQuery("databjclfb"); - model = BinaryData.fromObject(model).toObject(Db2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java deleted file mode 100644 index 7f5d46d8e535..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.Db2TableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class Db2TableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2TableDataset model = BinaryData.fromString( - "{\"type\":\"Db2Table\",\"typeProperties\":{\"tableName\":\"datak\",\"schema\":\"dataztirjvqxvwkiocxo\",\"table\":\"datajwbu\"},\"description\":\"qflm\",\"structure\":\"datarlqxbctatez\",\"schema\":\"datazdbcqqnlsjxcsc\",\"linkedServiceName\":{\"referenceName\":\"it\",\"parameters\":{\"t\":\"datarahjjidodnv\"}},\"parameters\":{\"hiclhyzhr\":{\"type\":\"Int\",\"defaultValue\":\"datapuwkupbb\"},\"nhlsforsimtfcqm\":{\"type\":\"SecureString\",\"defaultValue\":\"datafwbif\"}},\"annotations\":[\"databrpelpf\",\"datajt\",\"datazgxmpeszamadle\",\"dataz\"],\"folder\":{\"name\":\"ui\"},\"\":{\"lxswtdapsm\":\"datakt\"}}") - .toObject(Db2TableDataset.class); - Assertions.assertEquals("qflm", model.description()); - Assertions.assertEquals("it", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hiclhyzhr").type()); - Assertions.assertEquals("ui", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDataset model = new Db2TableDataset().withDescription("qflm") - .withStructure("datarlqxbctatez") - .withSchema("datazdbcqqnlsjxcsc") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("it").withParameters(mapOf("t", "datarahjjidodnv"))) - .withParameters(mapOf("hiclhyzhr", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datapuwkupbb"), - "nhlsforsimtfcqm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datafwbif"))) - .withAnnotations(Arrays.asList("databrpelpf", "datajt", "datazgxmpeszamadle", "dataz")) - .withFolder(new DatasetFolder().withName("ui")) - .withTableName("datak") - .withSchemaTypePropertiesSchema("dataztirjvqxvwkiocxo") - .withTable("datajwbu"); - model = BinaryData.fromObject(model).toObject(Db2TableDataset.class); - Assertions.assertEquals("qflm", model.description()); - Assertions.assertEquals("it", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("hiclhyzhr").type()); - Assertions.assertEquals("ui", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java deleted file mode 100644 index e45a07cfe262..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Db2TableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Db2TableDatasetTypeProperties; - -public final class Db2TableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Db2TableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datamnrijefmrtw\",\"schema\":\"dataevdspthgffmwtbl\",\"table\":\"datakok\"}") - .toObject(Db2TableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Db2TableDatasetTypeProperties model = new Db2TableDatasetTypeProperties().withTableName("datamnrijefmrtw") - .withSchema("dataevdspthgffmwtbl") - .withTable("datakok"); - model = BinaryData.fromObject(model).toObject(Db2TableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java deleted file mode 100644 index 3032b9cd98c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTests.java +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DeleteActivity; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DeleteActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteActivity model = BinaryData.fromString( - "{\"type\":\"Delete\",\"typeProperties\":{\"recursive\":\"dataezjyfaqdwfa\",\"maxConcurrentConnections\":540501730,\"enableLogging\":\"dataetslxerhwlvh\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"xxgeladqziljrsyc\",\"parameters\":{\"hxpix\":\"datasznjskwjjupu\",\"icufxtcyt\":\"datayyqsonfxsfjedjn\"}},\"path\":\"datasp\",\"logLevel\":\"datauhztvbgcflttes\",\"enableReliableLogging\":\"datajcuuyttuind\",\"\":{\"nsbjzrnjcagagm\":\"dataijncaqgtsbahtlop\",\"nashnoxr\":\"dataul\",\"qzwutakbvaqg\":\"dataabbetzcd\"}},\"dataset\":{\"referenceName\":\"aubmcwpllo\",\"parameters\":{\"tddigmmj\":\"datacdue\"}},\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datajrcrbkw\",\"disableMetricsCollection\":\"datavg\",\"\":{\"jcemkcwcb\":\"dataih\"}}},\"linkedServiceName\":{\"referenceName\":\"qjpi\",\"parameters\":{\"ogfo\":\"datawhrgmzntroafzrq\",\"ojjbky\":\"datarryzbqpksoaxszuh\"}},\"policy\":{\"timeout\":\"datadgvhecqk\",\"retry\":\"datatemamyshnksu\",\"retryIntervalInSeconds\":685032717,\"secureInput\":true,\"secureOutput\":false,\"\":{\"hgchtaeac\":\"datavumxyqhctrrv\"}},\"name\":\"qk\",\"description\":\"zuk\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"qfqawynsl\",\"dependencyConditions\":[\"Failed\"],\"\":{\"iriedfyht\":\"datavav\",\"qc\":\"dataugppiudhyl\"}},{\"activity\":\"umq\",\"dependencyConditions\":[\"Completed\"],\"\":{\"kbchnhexmg\":\"dataxzcrf\",\"wyzvnsnak\":\"dataqlufojuexpkqhg\",\"mltdgxiqrgr\":\"dataobcuy\",\"qyjeeoytgny\":\"dataxjfxu\"}},{\"activity\":\"nklqi\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Failed\",\"Failed\"],\"\":{\"hx\":\"dataglalaazncnhzq\",\"galodfsbhphwt\":\"datascyykrzrjjernj\",\"ajh\":\"datagy\"}}],\"userProperties\":[{\"name\":\"arldsijcm\",\"value\":\"dataugpxgxjmwzkafuvb\"},{\"name\":\"cyarsbhjlcxvsmr\",\"value\":\"dataypbi\"}],\"\":{\"b\":\"dataznaixjsfasxfamn\",\"wco\":\"dataxbglqybfnxej\",\"cnuozjg\":\"datajmpsxot\",\"gnrrqvrxouoqte\":\"datacxbenwi\"}}") - .toObject(DeleteActivity.class); - Assertions.assertEquals("qk", model.name()); - Assertions.assertEquals("zuk", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("qfqawynsl", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("arldsijcm", model.userProperties().get(0).name()); - Assertions.assertEquals("qjpi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(685032717, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(540501730, model.maxConcurrentConnections()); - Assertions.assertEquals("xxgeladqziljrsyc", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("aubmcwpllo", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivity model = new DeleteActivity().withName("qk") - .withDescription("zuk") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("qfqawynsl") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("umq") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nklqi") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("arldsijcm").withValue("dataugpxgxjmwzkafuvb"), - new UserProperty().withName("cyarsbhjlcxvsmr").withValue("dataypbi"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qjpi") - .withParameters(mapOf("ogfo", "datawhrgmzntroafzrq", "ojjbky", "datarryzbqpksoaxszuh"))) - .withPolicy(new ActivityPolicy().withTimeout("datadgvhecqk") - .withRetry("datatemamyshnksu") - .withRetryIntervalInSeconds(685032717) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withRecursive("dataezjyfaqdwfa") - .withMaxConcurrentConnections(540501730) - .withEnableLogging("dataetslxerhwlvh") - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xxgeladqziljrsyc") - .withParameters(mapOf("hxpix", "datasznjskwjjupu", "icufxtcyt", "datayyqsonfxsfjedjn"))) - .withPath("datasp") - .withLogLevel("datauhztvbgcflttes") - .withEnableReliableLogging("datajcuuyttuind") - .withAdditionalProperties(mapOf())) - .withDataset( - new DatasetReference().withReferenceName("aubmcwpllo").withParameters(mapOf("tddigmmj", "datacdue"))) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datajrcrbkw") - .withDisableMetricsCollection("datavg") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))); - model = BinaryData.fromObject(model).toObject(DeleteActivity.class); - Assertions.assertEquals("qk", model.name()); - Assertions.assertEquals("zuk", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("qfqawynsl", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("arldsijcm", model.userProperties().get(0).name()); - Assertions.assertEquals("qjpi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(685032717, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(540501730, model.maxConcurrentConnections()); - Assertions.assertEquals("xxgeladqziljrsyc", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("aubmcwpllo", 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 9cb52b045c6c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteActivityTypePropertiesTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.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\":\"dataraqesk\",\"maxConcurrentConnections\":1799759591,\"enableLogging\":\"datayyzaalpwwcwie\",\"logStorageSettings\":{\"linkedServiceName\":{\"referenceName\":\"s\",\"parameters\":{\"mundlegdlcue\":\"dataqsndqjbdtczxw\"}},\"path\":\"datamqkwkutbtrhrygd\",\"logLevel\":\"dataufmvozq\",\"enableReliableLogging\":\"datacfppjegctsatnr\",\"\":{\"jprr\":\"datauewrwcqrvtwv\",\"cswadvbwewwd\":\"datahxqpmzznmn\"}},\"dataset\":{\"referenceName\":\"eiehwma\",\"parameters\":{\"dowsj\":\"datapagkmhbeneqapll\",\"halmhcatpwq\":\"datavpvtyullivcymnpb\",\"lpglhlwu\":\"dataqnajmwpeaoeggi\",\"oprnbozvi\":\"dataugru\"}},\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datahitqrpbwykeeocp\",\"disableMetricsCollection\":\"dataqzpkodbquvf\",\"\":{\"gwfqtqbn\":\"dataaozpcc\",\"wfdgeqzkpergzs\":\"datakmgydfmkz\"}}}") - .toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(1799759591, model.maxConcurrentConnections()); - Assertions.assertEquals("s", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("eiehwma", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteActivityTypeProperties model = new DeleteActivityTypeProperties().withRecursive("dataraqesk") - .withMaxConcurrentConnections(1799759591) - .withEnableLogging("datayyzaalpwwcwie") - .withLogStorageSettings(new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("s") - .withParameters(mapOf("mundlegdlcue", "dataqsndqjbdtczxw"))) - .withPath("datamqkwkutbtrhrygd") - .withLogLevel("dataufmvozq") - .withEnableReliableLogging("datacfppjegctsatnr") - .withAdditionalProperties(mapOf())) - .withDataset(new DatasetReference().withReferenceName("eiehwma") - .withParameters(mapOf("dowsj", "datapagkmhbeneqapll", "halmhcatpwq", "datavpvtyullivcymnpb", "lpglhlwu", - "dataqnajmwpeaoeggi", "oprnbozvi", "dataugru"))) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datahitqrpbwykeeocp") - .withDisableMetricsCollection("dataqzpkodbquvf") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))); - model = BinaryData.fromObject(model).toObject(DeleteActivityTypeProperties.class); - Assertions.assertEquals(1799759591, model.maxConcurrentConnections()); - Assertions.assertEquals("s", model.logStorageSettings().linkedServiceName().referenceName()); - Assertions.assertEquals("eiehwma", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java deleted file mode 100644 index 6a7d7dd2e5cf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DeleteDataFlowDebugSessionRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; -import org.junit.jupiter.api.Assertions; - -public final class DeleteDataFlowDebugSessionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteDataFlowDebugSessionRequest model - = BinaryData.fromString("{\"sessionId\":\"npdwr\"}").toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("npdwr", model.sessionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteDataFlowDebugSessionRequest model = new DeleteDataFlowDebugSessionRequest().withSessionId("npdwr"); - model = BinaryData.fromObject(model).toObject(DeleteDataFlowDebugSessionRequest.class); - Assertions.assertEquals("npdwr", model.sessionId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java deleted file mode 100644 index e73c7c5144d4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextReadSettingsTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextReadSettings model = BinaryData.fromString( - "{\"type\":\"DelimitedTextReadSettings\",\"skipLineCount\":\"datauebt\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"djexargukoirn\":\"datauimtx\",\"dhipgfx\":\"datavftlbskinmxanjgu\"}},\"\":{\"cshmqxgjzslhopyq\":\"dataaazeqjnouuujlit\"}}") - .toObject(DelimitedTextReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextReadSettings model = new DelimitedTextReadSettings().withSkipLineCount("datauebt") - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(DelimitedTextReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java deleted file mode 100644 index 173d446fea59..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSinkTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DelimitedTextSink; -import com.azure.resourcemanager.datafactory.models.DelimitedTextWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextSink model = BinaryData.fromString( - "{\"type\":\"DelimitedTextSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datauvwlfzjrjgla\",\"disableMetricsCollection\":\"datazgzscgs\",\"copyBehavior\":\"dataujkeytpmlrjnnbmo\",\"metadata\":[{\"name\":\"dataqtvatujph\",\"value\":\"datafxvvogw\"},{\"name\":\"dataxox\",\"value\":\"dataiqkkmpf\"},{\"name\":\"datad\",\"value\":\"datazwmtsm\"},{\"name\":\"dataciyp\",\"value\":\"datanrgmgnvcusv\"}],\"\":{\"sn\":\"datazbdbv\",\"fom\":\"datahym\"}},\"formatSettings\":{\"type\":\"DelimitedTextWriteSettings\",\"quoteAllText\":\"datahiktecsmocqw\",\"fileExtension\":\"dataydaakett\",\"maxRowsPerFile\":\"datacxviwfsqj\",\"fileNamePrefix\":\"databsafqiwlduot\",\"\":{\"kfzpr\":\"datazdas\",\"lbddlnzmff\":\"dataqomuzohnpkof\",\"junmgd\":\"datavowlammvazvwzien\"}},\"writeBatchSize\":\"dataeivrhjxdnkgztfgc\",\"writeBatchTimeout\":\"datavbreh\",\"sinkRetryCount\":\"dataqggzahng\",\"sinkRetryWait\":\"dataseiidfpwbybmxf\",\"maxConcurrentConnections\":\"datazgolfensibqi\",\"disableMetricsCollection\":\"datapyjzv\",\"\":{\"vz\":\"datalfs\"}}") - .toObject(DelimitedTextSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSink model = new DelimitedTextSink().withWriteBatchSize("dataeivrhjxdnkgztfgc") - .withWriteBatchTimeout("datavbreh") - .withSinkRetryCount("dataqggzahng") - .withSinkRetryWait("dataseiidfpwbybmxf") - .withMaxConcurrentConnections("datazgolfensibqi") - .withDisableMetricsCollection("datapyjzv") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datauvwlfzjrjgla") - .withDisableMetricsCollection("datazgzscgs") - .withCopyBehavior("dataujkeytpmlrjnnbmo") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataqtvatujph").withValue("datafxvvogw"), - new MetadataItem().withName("dataxox").withValue("dataiqkkmpf"), - new MetadataItem().withName("datad").withValue("datazwmtsm"), - new MetadataItem().withName("dataciyp").withValue("datanrgmgnvcusv"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new DelimitedTextWriteSettings().withQuoteAllText("datahiktecsmocqw") - .withFileExtension("dataydaakett") - .withMaxRowsPerFile("datacxviwfsqj") - .withFileNamePrefix("databsafqiwlduot")); - 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 ce6324d9b8d2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextSourceTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextReadSettings; -import com.azure.resourcemanager.datafactory.models.DelimitedTextSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class DelimitedTextSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextSource model = BinaryData.fromString( - "{\"type\":\"DelimitedTextSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataqcivmirybwgac\",\"disableMetricsCollection\":\"datawkynemazg\",\"\":{\"we\":\"datanxshc\"}},\"formatSettings\":{\"type\":\"DelimitedTextReadSettings\",\"skipLineCount\":\"dataqojzvuz\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"phbobuovsvwnpcxd\":\"dataj\"}},\"\":{\"yhmlp\":\"datavparyub\",\"z\":\"datadevotucnzbpocum\"}},\"additionalColumns\":\"dataz\",\"sourceRetryCount\":\"datamzdnvno\",\"sourceRetryWait\":\"datalgrenuqsgertx\",\"maxConcurrentConnections\":\"dataemgsncbb\",\"disableMetricsCollection\":\"datakphaed\",\"\":{\"a\":\"databnunpxswmccykbvi\"}}") - .toObject(DelimitedTextSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextSource model - = new DelimitedTextSource().withSourceRetryCount("datamzdnvno") - .withSourceRetryWait("datalgrenuqsgertx") - .withMaxConcurrentConnections("dataemgsncbb") - .withDisableMetricsCollection("datakphaed") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataqcivmirybwgac") - .withDisableMetricsCollection("datawkynemazg") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new DelimitedTextReadSettings().withSkipLineCount("dataqojzvuz") - .withCompressionProperties(new CompressionReadSettings() - .withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("dataz"); - 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 7d2e89a082ab..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DelimitedTextWriteSettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DelimitedTextWriteSettings; - -public final class DelimitedTextWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DelimitedTextWriteSettings model = BinaryData.fromString( - "{\"type\":\"DelimitedTextWriteSettings\",\"quoteAllText\":\"datasrje\",\"fileExtension\":\"datavmbh\",\"maxRowsPerFile\":\"datar\",\"fileNamePrefix\":\"datazetsspww\",\"\":{\"rlieeocyarvsfz\":\"dataotbrepe\",\"xzpz\":\"datacscootfsgilwis\",\"trfvogknocshmp\":\"datatust\"}}") - .toObject(DelimitedTextWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DelimitedTextWriteSettings model = new DelimitedTextWriteSettings().withQuoteAllText("datasrje") - .withFileExtension("datavmbh") - .withMaxRowsPerFile("datar") - .withFileNamePrefix("datazetsspww"); - model = BinaryData.fromObject(model).toObject(DelimitedTextWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java deleted file mode 100644 index 9872370dba56..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DependencyReferenceTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DependencyReference; - -public final class DependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DependencyReference model - = BinaryData.fromString("{\"type\":\"DependencyReference\"}").toObject(DependencyReference.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DependencyReference model = new DependencyReference(); - model = BinaryData.fromObject(model).toObject(DependencyReference.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DistcpSettingsTests.java deleted file mode 100644 index 108b30652c8f..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\":\"datakwxcaagzlq\",\"tempScriptPath\":\"datasgzgsgzlbunm\",\"distcpOptions\":\"dataac\"}") - .toObject(DistcpSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DistcpSettings model = new DistcpSettings().withResourceManagerEndpoint("datakwxcaagzlq") - .withTempScriptPath("datasgzgsgzlbunm") - .withDistcpOptions("dataac"); - model = BinaryData.fromObject(model).toObject(DistcpSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java deleted file mode 100644 index cfb6784eaf32..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DocumentDbCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionDataset model = BinaryData.fromString( - "{\"type\":\"DocumentDbCollection\",\"typeProperties\":{\"collectionName\":\"dataghmmtbtdvucfvvra\"},\"description\":\"eurdeewlsuxp\",\"structure\":\"datawkdwjyjiznioroof\",\"schema\":\"datataspmcrei\",\"linkedServiceName\":{\"referenceName\":\"uftrni\",\"parameters\":{\"wfmsxj\":\"datainuwqxungrob\"}},\"parameters\":{\"ugeerclbltbhpwac\":{\"type\":\"Array\",\"defaultValue\":\"dataxmvzjow\"}},\"annotations\":[\"dataurjwmvwryvdifkii\",\"datagpruccwme\",\"databtxsytrtexeg\"],\"folder\":{\"name\":\"qjywi\"},\"\":{\"ndiloqkajwjuria\":\"dataycfjnc\",\"llanhzc\":\"datasb\",\"ygzkztxfexwacyy\":\"datanjxizbax\"}}") - .toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("eurdeewlsuxp", model.description()); - Assertions.assertEquals("uftrni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ugeerclbltbhpwac").type()); - Assertions.assertEquals("qjywi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDataset model = new DocumentDbCollectionDataset().withDescription("eurdeewlsuxp") - .withStructure("datawkdwjyjiznioroof") - .withSchema("datataspmcrei") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uftrni") - .withParameters(mapOf("wfmsxj", "datainuwqxungrob"))) - .withParameters(mapOf("ugeerclbltbhpwac", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataxmvzjow"))) - .withAnnotations(Arrays.asList("dataurjwmvwryvdifkii", "datagpruccwme", "databtxsytrtexeg")) - .withFolder(new DatasetFolder().withName("qjywi")) - .withCollectionName("dataghmmtbtdvucfvvra"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionDataset.class); - Assertions.assertEquals("eurdeewlsuxp", model.description()); - Assertions.assertEquals("uftrni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("ugeerclbltbhpwac").type()); - Assertions.assertEquals("qjywi", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 5bed7c95f09d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DocumentDbCollectionDatasetTypeProperties; - -public final class DocumentDbCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionDatasetTypeProperties model - = BinaryData.fromString("{\"collectionName\":\"datamlxppdndzkfevuii\"}") - .toObject(DocumentDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionDatasetTypeProperties model - = new DocumentDbCollectionDatasetTypeProperties().withCollectionName("datamlxppdndzkfevuii"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java deleted file mode 100644 index 79b7ec4eeb24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSinkTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSink; - -public final class DocumentDbCollectionSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionSink model = BinaryData.fromString( - "{\"type\":\"DocumentDbCollectionSink\",\"nestingSeparator\":\"dataqtiuve\",\"writeBehavior\":\"datauciwbiwygwpwqu\",\"writeBatchSize\":\"dataqgslspihuxgvvio\",\"writeBatchTimeout\":\"dataoolkmfi\",\"sinkRetryCount\":\"datafbbrndaquxvufr\",\"sinkRetryWait\":\"dataaehssosowav\",\"maxConcurrentConnections\":\"datasieyeblkgupgnst\",\"disableMetricsCollection\":\"datajxfmh\",\"\":{\"qgtjffc\":\"datartvkhufk\",\"tzgk\":\"datare\"}}") - .toObject(DocumentDbCollectionSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSink model = new DocumentDbCollectionSink().withWriteBatchSize("dataqgslspihuxgvvio") - .withWriteBatchTimeout("dataoolkmfi") - .withSinkRetryCount("datafbbrndaquxvufr") - .withSinkRetryWait("dataaehssosowav") - .withMaxConcurrentConnections("datasieyeblkgupgnst") - .withDisableMetricsCollection("datajxfmh") - .withNestingSeparator("dataqtiuve") - .withWriteBehavior("datauciwbiwygwpwqu"); - 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 9069a34f2888..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DocumentDbCollectionSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DocumentDbCollectionSource; - -public final class DocumentDbCollectionSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DocumentDbCollectionSource model = BinaryData.fromString( - "{\"type\":\"DocumentDbCollectionSource\",\"query\":\"datal\",\"nestingSeparator\":\"dataeqotvocjktihnwyv\",\"queryTimeout\":\"datasgfdmtfnbvtxq\",\"additionalColumns\":\"datab\",\"sourceRetryCount\":\"dataqbdiahjxcdhp\",\"sourceRetryWait\":\"dataxwsfddy\",\"maxConcurrentConnections\":\"datafyntow\",\"disableMetricsCollection\":\"datasur\",\"\":{\"izqvga\":\"datajzsjhhru\",\"epnglzjhaqx\":\"datao\"}}") - .toObject(DocumentDbCollectionSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DocumentDbCollectionSource model = new DocumentDbCollectionSource().withSourceRetryCount("dataqbdiahjxcdhp") - .withSourceRetryWait("dataxwsfddy") - .withMaxConcurrentConnections("datafyntow") - .withDisableMetricsCollection("datasur") - .withQuery("datal") - .withNestingSeparator("dataeqotvocjktihnwyv") - .withQueryTimeout("datasgfdmtfnbvtxq") - .withAdditionalColumns("datab"); - model = BinaryData.fromObject(model).toObject(DocumentDbCollectionSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java deleted file mode 100644 index da98cb9dfc12..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DrillDatasetTypeProperties; - -public final class DrillDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datanyfowyj\",\"table\":\"dataakkiub\",\"schema\":\"datakittlrgl\"}") - .toObject(DrillDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillDatasetTypeProperties model = new DrillDatasetTypeProperties().withTableName("datanyfowyj") - .withTable("dataakkiub") - .withSchema("datakittlrgl"); - model = BinaryData.fromObject(model).toObject(DrillDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java deleted file mode 100644 index 04ddbfa69738..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DrillSource; - -public final class DrillSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillSource model = BinaryData.fromString( - "{\"type\":\"DrillSource\",\"query\":\"datayo\",\"queryTimeout\":\"datawigvqgc\",\"additionalColumns\":\"datacqjg\",\"sourceRetryCount\":\"dataxpbpj\",\"sourceRetryWait\":\"datannvd\",\"maxConcurrentConnections\":\"dataaodiytxqsohehh\",\"disableMetricsCollection\":\"datatwvijdr\",\"\":{\"zkfyvhrenozlgx\":\"dataqv\",\"hlosh\":\"dataf\"}}") - .toObject(DrillSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillSource model = new DrillSource().withSourceRetryCount("dataxpbpj") - .withSourceRetryWait("datannvd") - .withMaxConcurrentConnections("dataaodiytxqsohehh") - .withDisableMetricsCollection("datatwvijdr") - .withQueryTimeout("datawigvqgc") - .withAdditionalColumns("datacqjg") - .withQuery("datayo"); - model = BinaryData.fromObject(model).toObject(DrillSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java deleted file mode 100644 index 8ca81f05e310..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DrillTableDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DrillTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DrillTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DrillTableDataset model = BinaryData.fromString( - "{\"type\":\"DrillTable\",\"typeProperties\":{\"tableName\":\"datafvkywzrqeiad\",\"table\":\"datakhuvnl\",\"schema\":\"datacnuti\"},\"description\":\"mizunzbqvioync\",\"structure\":\"dataqhhvvwz\",\"schema\":\"datajaaaiaibtvavly\",\"linkedServiceName\":{\"referenceName\":\"qtlocnwmef\",\"parameters\":{\"bzgy\":\"datauzqcrlkor\",\"nozf\":\"dataenfsfyqncowm\",\"agwaakktbjort\":\"dataywjiaaosla\"}},\"parameters\":{\"zbkd\":{\"type\":\"Bool\",\"defaultValue\":\"dataqhsnsejplislxyl\"},\"rpea\":{\"type\":\"Object\",\"defaultValue\":\"datajwxgvtkjct\"},\"aitrms\":{\"type\":\"Float\",\"defaultValue\":\"datakvfccozvqxspht\"},\"poegyckm\":{\"type\":\"SecureString\",\"defaultValue\":\"datatuytgcptct\"}},\"annotations\":[\"datavrcclclfkfv\",\"dataj\"],\"folder\":{\"name\":\"wrvp\"},\"\":{\"b\":\"datajylxt\",\"aysqwh\":\"datasewfzvv\",\"tcvpvdfmo\":\"datadcyandblkb\",\"sqpffapjpjmsbzz\":\"dataqctfvxu\"}}") - .toObject(DrillTableDataset.class); - Assertions.assertEquals("mizunzbqvioync", model.description()); - Assertions.assertEquals("qtlocnwmef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zbkd").type()); - Assertions.assertEquals("wrvp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DrillTableDataset model = new DrillTableDataset().withDescription("mizunzbqvioync") - .withStructure("dataqhhvvwz") - .withSchema("datajaaaiaibtvavly") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qtlocnwmef") - .withParameters( - mapOf("bzgy", "datauzqcrlkor", "nozf", "dataenfsfyqncowm", "agwaakktbjort", "dataywjiaaosla"))) - .withParameters(mapOf("zbkd", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqhsnsejplislxyl"), - "rpea", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datajwxgvtkjct"), - "aitrms", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakvfccozvqxspht"), - "poegyckm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatuytgcptct"))) - .withAnnotations(Arrays.asList("datavrcclclfkfv", "dataj")) - .withFolder(new DatasetFolder().withName("wrvp")) - .withTableName("datafvkywzrqeiad") - .withTable("datakhuvnl") - .withSchemaTypePropertiesSchema("datacnuti"); - model = BinaryData.fromObject(model).toObject(DrillTableDataset.class); - Assertions.assertEquals("mizunzbqvioync", model.description()); - Assertions.assertEquals("qtlocnwmef", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("zbkd").type()); - Assertions.assertEquals("wrvp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java deleted file mode 100644 index 66bf7a0fc7a9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsAXResourceDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsAXResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXResourceDataset model = BinaryData.fromString( - "{\"type\":\"DynamicsAXResource\",\"typeProperties\":{\"path\":\"datamv\"},\"description\":\"flhdhoxu\",\"structure\":\"datacnnkvthwtam\",\"schema\":\"databgy\",\"linkedServiceName\":{\"referenceName\":\"xh\",\"parameters\":{\"beqzjdwxtutpdwne\":\"datahkezuucqicocdx\"}},\"parameters\":{\"rwvn\":{\"type\":\"Bool\",\"defaultValue\":\"datalxug\"}},\"annotations\":[\"dataofkvfruxz\",\"datafbvhgykzov\",\"datatvymdqaymqmyrn\",\"datagubqkfnoxhvoyj\"],\"folder\":{\"name\":\"krqs\"},\"\":{\"eexweju\":\"datapakxr\",\"zoytkbeadyfenro\":\"datauvnxbohpzur\",\"cbtaxdrpanhsxwhx\":\"dataoijoxcbpkiwse\"}}") - .toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("flhdhoxu", model.description()); - Assertions.assertEquals("xh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rwvn").type()); - Assertions.assertEquals("krqs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDataset model = new DynamicsAXResourceDataset().withDescription("flhdhoxu") - .withStructure("datacnnkvthwtam") - .withSchema("databgy") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xh") - .withParameters(mapOf("beqzjdwxtutpdwne", "datahkezuucqicocdx"))) - .withParameters( - mapOf("rwvn", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datalxug"))) - .withAnnotations( - Arrays.asList("dataofkvfruxz", "datafbvhgykzov", "datatvymdqaymqmyrn", "datagubqkfnoxhvoyj")) - .withFolder(new DatasetFolder().withName("krqs")) - .withPath("datamv"); - model = BinaryData.fromObject(model).toObject(DynamicsAXResourceDataset.class); - Assertions.assertEquals("flhdhoxu", model.description()); - Assertions.assertEquals("xh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("rwvn").type()); - Assertions.assertEquals("krqs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java deleted file mode 100644 index d1649de74873..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXResourceDatasetTypeProperties; - -public final class DynamicsAXResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXResourceDatasetTypeProperties model = BinaryData.fromString("{\"path\":\"dataztdacrqcwkk\"}") - .toObject(DynamicsAXResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXResourceDatasetTypeProperties model - = new DynamicsAXResourceDatasetTypeProperties().withPath("dataztdacrqcwkk"); - model = BinaryData.fromObject(model).toObject(DynamicsAXResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java deleted file mode 100644 index e2abcadb2677..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsAXSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsAXSource; - -public final class DynamicsAXSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsAXSource model = BinaryData.fromString( - "{\"type\":\"DynamicsAXSource\",\"query\":\"datat\",\"httpRequestTimeout\":\"datauvwzjycgc\",\"queryTimeout\":\"dataagxikzvnghtknrw\",\"additionalColumns\":\"dataysnmy\",\"sourceRetryCount\":\"datafmlcnrapxw\",\"sourceRetryWait\":\"datapxoelfobehr\",\"maxConcurrentConnections\":\"dataglojjcziytf\",\"disableMetricsCollection\":\"datavirmbr\",\"\":{\"hkdzvuhw\":\"datanqahnkmsfy\"}}") - .toObject(DynamicsAXSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsAXSource model = new DynamicsAXSource().withSourceRetryCount("datafmlcnrapxw") - .withSourceRetryWait("datapxoelfobehr") - .withMaxConcurrentConnections("dataglojjcziytf") - .withDisableMetricsCollection("datavirmbr") - .withQueryTimeout("dataagxikzvnghtknrw") - .withAdditionalColumns("dataysnmy") - .withQuery("datat") - .withHttpRequestTimeout("datauvwzjycgc"); - model = BinaryData.fromObject(model).toObject(DynamicsAXSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java deleted file mode 100644 index cd45b03ba7ce..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsCrmEntityDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsCrmEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmEntityDataset model = BinaryData.fromString( - "{\"type\":\"DynamicsCrmEntity\",\"typeProperties\":{\"entityName\":\"dataeepfh\"},\"description\":\"nn\",\"structure\":\"dataxqhpjhuboh\",\"schema\":\"datazgaybvr\",\"linkedServiceName\":{\"referenceName\":\"hogalg\",\"parameters\":{\"pamqxfcssanybz\":\"datafmzvztaue\",\"svcdhlywkh\":\"dataghvdfeumy\",\"nzxezriwgo\":\"dataokj\"}},\"parameters\":{\"ap\":{\"type\":\"Bool\",\"defaultValue\":\"dataqksa\"},\"benwsdfp\":{\"type\":\"SecureString\",\"defaultValue\":\"datacit\"},\"pmvzpireszya\":{\"type\":\"Int\",\"defaultValue\":\"dataahlfrcqk\"},\"cjjlwkyeahhhut\":{\"type\":\"Float\",\"defaultValue\":\"datamlbmfggeokfe\"}},\"annotations\":[\"datanrfcqu\",\"datam\",\"dataihpinow\"],\"folder\":{\"name\":\"jpxp\"},\"\":{\"lgbbfjmdgjvxlh\":\"datadwyqqidqi\",\"eftyaphqeofytl\":\"datapm\",\"qvjfdgfqpmquxpjh\":\"datanlowmcmcqixuanc\",\"dcio\":\"datafaar\"}}") - .toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("nn", model.description()); - Assertions.assertEquals("hogalg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ap").type()); - Assertions.assertEquals("jpxp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDataset model - = new DynamicsCrmEntityDataset().withDescription("nn") - .withStructure("dataxqhpjhuboh") - .withSchema("datazgaybvr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hogalg") - .withParameters(mapOf("pamqxfcssanybz", "datafmzvztaue", "svcdhlywkh", "dataghvdfeumy", - "nzxezriwgo", "dataokj"))) - .withParameters(mapOf("ap", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqksa"), "benwsdfp", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datacit"), - "pmvzpireszya", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataahlfrcqk"), - "cjjlwkyeahhhut", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datamlbmfggeokfe"))) - .withAnnotations(Arrays.asList("datanrfcqu", "datam", "dataihpinow")) - .withFolder(new DatasetFolder().withName("jpxp")) - .withEntityName("dataeepfh"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmEntityDataset.class); - Assertions.assertEquals("nn", model.description()); - Assertions.assertEquals("hogalg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("ap").type()); - Assertions.assertEquals("jpxp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java deleted file mode 100644 index eb9c451be676..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmEntityDatasetTypeProperties; - -public final class DynamicsCrmEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model = BinaryData.fromString("{\"entityName\":\"dataufzg\"}") - .toObject(DynamicsCrmEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmEntityDatasetTypeProperties model - = new DynamicsCrmEntityDatasetTypeProperties().withEntityName("dataufzg"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java deleted file mode 100644 index f42f51317e09..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsCrmSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsCrmSource; - -public final class DynamicsCrmSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsCrmSource model = BinaryData.fromString( - "{\"type\":\"DynamicsCrmSource\",\"query\":\"datazuzvbqbroyrw\",\"additionalColumns\":\"databbfweozkbok\",\"sourceRetryCount\":\"datasu\",\"sourceRetryWait\":\"datacslzca\",\"maxConcurrentConnections\":\"datad\",\"disableMetricsCollection\":\"datafwkpupbsgfnqtxl\",\"\":{\"cist\":\"dataviklxsgstunsa\",\"ajkodpz\":\"databehkb\",\"faas\":\"datatgsazwx\",\"cdl\":\"datahasjbuhz\"}}") - .toObject(DynamicsCrmSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsCrmSource model = new DynamicsCrmSource().withSourceRetryCount("datasu") - .withSourceRetryWait("datacslzca") - .withMaxConcurrentConnections("datad") - .withDisableMetricsCollection("datafwkpupbsgfnqtxl") - .withQuery("datazuzvbqbroyrw") - .withAdditionalColumns("databbfweozkbok"); - model = BinaryData.fromObject(model).toObject(DynamicsCrmSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java deleted file mode 100644 index 04be415dad73..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DynamicsEntityDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DynamicsEntityDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsEntityDataset model = BinaryData.fromString( - "{\"type\":\"DynamicsEntity\",\"typeProperties\":{\"entityName\":\"datab\"},\"description\":\"cjy\",\"structure\":\"datadcizeqqfop\",\"schema\":\"dataopmotdsf\",\"linkedServiceName\":{\"referenceName\":\"o\",\"parameters\":{\"ldzmxojzsvmaigb\":\"datayoazyfbkm\"}},\"parameters\":{\"ihba\":{\"type\":\"String\",\"defaultValue\":\"dataejthgeecbpergwlc\"},\"jixiujzkc\":{\"type\":\"String\",\"defaultValue\":\"datasokknpugzjwdizc\"},\"w\":{\"type\":\"String\",\"defaultValue\":\"datagkr\"},\"okn\":{\"type\":\"Int\",\"defaultValue\":\"datakkbxktxbbwlmnw\"}},\"annotations\":[\"dataddlggb\",\"dataa\"],\"folder\":{\"name\":\"zubak\"},\"\":{\"ffetp\":\"datavggcmfn\",\"wewzlscgsme\":\"datami\",\"thhx\":\"datanqvxgvohd\"}}") - .toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("cjy", model.description()); - Assertions.assertEquals("o", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ihba").type()); - Assertions.assertEquals("zubak", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDataset model - = new DynamicsEntityDataset().withDescription("cjy") - .withStructure("datadcizeqqfop") - .withSchema("dataopmotdsf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("o") - .withParameters(mapOf("ldzmxojzsvmaigb", "datayoazyfbkm"))) - .withParameters(mapOf("ihba", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("dataejthgeecbpergwlc"), - "jixiujzkc", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datasokknpugzjwdizc"), - "w", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datagkr"), "okn", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datakkbxktxbbwlmnw"))) - .withAnnotations(Arrays.asList("dataddlggb", "dataa")) - .withFolder(new DatasetFolder().withName("zubak")) - .withEntityName("datab"); - model = BinaryData.fromObject(model).toObject(DynamicsEntityDataset.class); - Assertions.assertEquals("cjy", model.description()); - Assertions.assertEquals("o", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ihba").type()); - Assertions.assertEquals("zubak", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java deleted file mode 100644 index 713752bdd943..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsEntityDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsEntityDatasetTypeProperties; - -public final class DynamicsEntityDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsEntityDatasetTypeProperties model - = BinaryData.fromString("{\"entityName\":\"dataev\"}").toObject(DynamicsEntityDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsEntityDatasetTypeProperties model = new DynamicsEntityDatasetTypeProperties().withEntityName("dataev"); - model = BinaryData.fromObject(model).toObject(DynamicsEntityDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java deleted file mode 100644 index 7e206f376327..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/DynamicsSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DynamicsSource; - -public final class DynamicsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicsSource model = BinaryData.fromString( - "{\"type\":\"DynamicsSource\",\"query\":\"datarjuiuzl\",\"additionalColumns\":\"datahzihlzljqcmmgsm\",\"sourceRetryCount\":\"datajunqwkjfmtuybdzr\",\"sourceRetryWait\":\"datackxennzowguirh\",\"maxConcurrentConnections\":\"datajpw\",\"disableMetricsCollection\":\"datamktpykoicpk\",\"\":{\"jaof\":\"dataqfdtbao\",\"rwsj\":\"datacvhhrgvkuuikrsie\",\"vygrfyyknxuacfm\":\"datadxenxjvapdqg\",\"kt\":\"dataynlcimjmurocryfu\"}}") - .toObject(DynamicsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicsSource model = new DynamicsSource().withSourceRetryCount("datajunqwkjfmtuybdzr") - .withSourceRetryWait("datackxennzowguirh") - .withMaxConcurrentConnections("datajpw") - .withDisableMetricsCollection("datamktpykoicpk") - .withQuery("datarjuiuzl") - .withAdditionalColumns("datahzihlzljqcmmgsm"); - model = BinaryData.fromObject(model).toObject(DynamicsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java deleted file mode 100644 index 2beadd771f50..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.EloquaObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class EloquaObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EloquaObjectDataset model = BinaryData.fromString( - "{\"type\":\"EloquaObject\",\"typeProperties\":{\"tableName\":\"datao\"},\"description\":\"guhbnhogsezreneg\",\"structure\":\"datadtyzpx\",\"schema\":\"datatwkejmgem\",\"linkedServiceName\":{\"referenceName\":\"dupe\",\"parameters\":{\"mmpkapvnpeukg\":\"datavsdfvhrypez\"}},\"parameters\":{\"omlcsvkt\":{\"type\":\"String\",\"defaultValue\":\"dataeqnit\"},\"fxjtxla\":{\"type\":\"SecureString\",\"defaultValue\":\"datarowsh\"},\"fqdmll\":{\"type\":\"Float\",\"defaultValue\":\"datadyqabjrop\"}},\"annotations\":[\"datajyuwq\",\"datazwgdpvhwiril\",\"datamqtr\"],\"folder\":{\"name\":\"oxdegacdedpkwd\"},\"\":{\"aqermnddlir\":\"datapgdcidp\",\"lsaqifepdureeviv\":\"dataq\",\"xeswctl\":\"dataiglioklsuff\"}}") - .toObject(EloquaObjectDataset.class); - Assertions.assertEquals("guhbnhogsezreneg", model.description()); - Assertions.assertEquals("dupe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("omlcsvkt").type()); - Assertions.assertEquals("oxdegacdedpkwd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaObjectDataset model = new EloquaObjectDataset().withDescription("guhbnhogsezreneg") - .withStructure("datadtyzpx") - .withSchema("datatwkejmgem") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dupe") - .withParameters(mapOf("mmpkapvnpeukg", "datavsdfvhrypez"))) - .withParameters(mapOf("omlcsvkt", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataeqnit"), "fxjtxla", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datarowsh"), - "fqdmll", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datadyqabjrop"))) - .withAnnotations(Arrays.asList("datajyuwq", "datazwgdpvhwiril", "datamqtr")) - .withFolder(new DatasetFolder().withName("oxdegacdedpkwd")) - .withTableName("datao"); - model = BinaryData.fromObject(model).toObject(EloquaObjectDataset.class); - Assertions.assertEquals("guhbnhogsezreneg", model.description()); - Assertions.assertEquals("dupe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("omlcsvkt").type()); - Assertions.assertEquals("oxdegacdedpkwd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java deleted file mode 100644 index 688ce360e171..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EloquaSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EloquaSource; - -public final class EloquaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EloquaSource model = BinaryData.fromString( - "{\"type\":\"EloquaSource\",\"query\":\"datamkpcmtsbande\",\"queryTimeout\":\"datalvuewrljmlod\",\"additionalColumns\":\"datazvtfyqeogwbs\",\"sourceRetryCount\":\"dataiwxhc\",\"sourceRetryWait\":\"datafgqmdbazggrgao\",\"maxConcurrentConnections\":\"datatbwapoy\",\"disableMetricsCollection\":\"datairlydsdm\",\"\":{\"xubguly\":\"datadqacgyv\",\"ohuabduf\":\"datajkasxpp\"}}") - .toObject(EloquaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EloquaSource model = new EloquaSource().withSourceRetryCount("dataiwxhc") - .withSourceRetryWait("datafgqmdbazggrgao") - .withMaxConcurrentConnections("datatbwapoy") - .withDisableMetricsCollection("datairlydsdm") - .withQueryTimeout("datalvuewrljmlod") - .withAdditionalColumns("datazvtfyqeogwbs") - .withQuery("datamkpcmtsbande"); - 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 4b5bba7406f4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EntityReferenceTests.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.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\":\"LinkedServiceReference\",\"referenceName\":\"smy\"}") - .toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.type()); - Assertions.assertEquals("smy", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EntityReference model - = new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("smy"); - model = BinaryData.fromObject(model).toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.type()); - Assertions.assertEquals("smy", 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 d708f6d1c6da..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EnvironmentVariableSetup; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableSetupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariableSetup model = BinaryData.fromString( - "{\"type\":\"EnvironmentVariableSetup\",\"typeProperties\":{\"variableName\":\"incbesfvijnubx\",\"variableValue\":\"iiytqx\"}}") - .toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("incbesfvijnubx", model.variableName()); - Assertions.assertEquals("iiytqx", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetup model - = new EnvironmentVariableSetup().withVariableName("incbesfvijnubx").withVariableValue("iiytqx"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("incbesfvijnubx", model.variableName()); - Assertions.assertEquals("iiytqx", 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 4f13c5ef11e4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/EnvironmentVariableSetupTypePropertiesTests.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.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\":\"wjsyutezlghkvo\",\"variableValue\":\"dpor\"}") - .toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("wjsyutezlghkvo", model.variableName()); - Assertions.assertEquals("dpor", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetupTypeProperties model - = new EnvironmentVariableSetupTypeProperties().withVariableName("wjsyutezlghkvo").withVariableValue("dpor"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("wjsyutezlghkvo", model.variableName()); - Assertions.assertEquals("dpor", model.variableValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java deleted file mode 100644 index ead97245877a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.ExcelDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExcelDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelDataset model = BinaryData.fromString( - "{\"type\":\"Excel\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataybydhui\",\"fileName\":\"dataouwudhuaorh\",\"\":{\"amqprlo\":\"datahwvumosqir\",\"zcmtagelajdyolj\":\"datarugejcvjkjy\",\"qfmzsizzhravrc\":\"dataqy\"}},\"sheetName\":\"datajymgqbgcxhn\",\"sheetIndex\":\"datagzxlermkmerghski\",\"range\":\"datanpupkcbkfuk\",\"firstRowAsHeader\":\"datajqnvtsdyd\",\"compression\":{\"type\":\"datakpafyaloowwziz\",\"level\":\"datayuf\",\"\":{\"kqiyvnd\":\"datastifgufyjf\",\"symzqhrqpf\":\"dataokgw\",\"tznxlu\":\"datalpe\"}},\"nullValue\":\"dataujqbbgsimwejl\"},\"description\":\"kbpjzobdwbcpra\",\"structure\":\"datakuhydtnaczkfwfat\",\"schema\":\"datawphn\",\"linkedServiceName\":{\"referenceName\":\"kivdwgtqcume\",\"parameters\":{\"iuycsbskowk\":\"dataaqgoqb\",\"rb\":\"databhz\",\"asfgqgucyhfaimqv\":\"datahtmqowi\",\"oehgfmqmskkixvlz\":\"dataruozkgyfp\"}},\"parameters\":{\"vzjyielb\":{\"type\":\"String\",\"defaultValue\":\"datapevasyn\"},\"nmpecqxgiqasifub\":{\"type\":\"Int\",\"defaultValue\":\"datavbqv\"},\"nxjkhtupsvyouw\":{\"type\":\"Int\",\"defaultValue\":\"datastlpwqp\"}},\"annotations\":[\"datayxfwkztsmsfb\",\"datavy\",\"datalznfhkqytkztado\",\"datagfzdgjfcycrsvl\"],\"folder\":{\"name\":\"h\"},\"\":{\"wqajquzxpixhy\":\"datakzju\",\"soscien\":\"dataipnfdb\",\"rtek\":\"datazfvbennmfkbpj\"}}") - .toObject(ExcelDataset.class); - Assertions.assertEquals("kbpjzobdwbcpra", model.description()); - Assertions.assertEquals("kivdwgtqcume", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vzjyielb").type()); - Assertions.assertEquals("h", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDataset model = new ExcelDataset().withDescription("kbpjzobdwbcpra") - .withStructure("datakuhydtnaczkfwfat") - .withSchema("datawphn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kivdwgtqcume") - .withParameters(mapOf("iuycsbskowk", "dataaqgoqb", "rb", "databhz", "asfgqgucyhfaimqv", "datahtmqowi", - "oehgfmqmskkixvlz", "dataruozkgyfp"))) - .withParameters(mapOf("vzjyielb", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datapevasyn"), - "nmpecqxgiqasifub", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datavbqv"), "nxjkhtupsvyouw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datastlpwqp"))) - .withAnnotations(Arrays.asList("datayxfwkztsmsfb", "datavy", "datalznfhkqytkztado", "datagfzdgjfcycrsvl")) - .withFolder(new DatasetFolder().withName("h")) - .withLocation(new DatasetLocation().withFolderPath("dataybydhui") - .withFileName("dataouwudhuaorh") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withSheetName("datajymgqbgcxhn") - .withSheetIndex("datagzxlermkmerghski") - .withRange("datanpupkcbkfuk") - .withFirstRowAsHeader("datajqnvtsdyd") - .withCompression(new DatasetCompression().withType("datakpafyaloowwziz") - .withLevel("datayuf") - .withAdditionalProperties(mapOf())) - .withNullValue("dataujqbbgsimwejl"); - model = BinaryData.fromObject(model).toObject(ExcelDataset.class); - Assertions.assertEquals("kbpjzobdwbcpra", model.description()); - Assertions.assertEquals("kivdwgtqcume", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("vzjyielb").type()); - Assertions.assertEquals("h", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java deleted file mode 100644 index de7131ecc7ac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelDatasetTypePropertiesTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExcelDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class ExcelDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datanthropmdudsyiu\",\"fileName\":\"datatvktjhffecqko\",\"\":{\"hfdyldhgye\":\"datauergaghpuzxkpye\",\"iyuq\":\"datazfz\",\"pjlwyxe\":\"datatdereunokakzw\"}},\"sheetName\":\"datanmxrfomckewvmyi\",\"sheetIndex\":\"datapx\",\"range\":\"datajt\",\"firstRowAsHeader\":\"datayzoutxfptofh\",\"compression\":{\"type\":\"datauywezygvadg\",\"level\":\"dataqwvkgjpytpmpv\",\"\":{\"k\":\"datagehlufbortbnu\",\"bx\":\"dataaxzs\"}},\"nullValue\":\"datajisskob\"}") - .toObject(ExcelDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelDatasetTypeProperties model = new ExcelDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datanthropmdudsyiu") - .withFileName("datatvktjhffecqko") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withSheetName("datanmxrfomckewvmyi") - .withSheetIndex("datapx") - .withRange("datajt") - .withFirstRowAsHeader("datayzoutxfptofh") - .withCompression(new DatasetCompression().withType("datauywezygvadg") - .withLevel("dataqwvkgjpytpmpv") - .withAdditionalProperties(mapOf())) - .withNullValue("datajisskob"); - model = BinaryData.fromObject(model).toObject(ExcelDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java deleted file mode 100644 index 3658668de9be..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExcelSourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExcelSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ExcelSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExcelSource model = BinaryData.fromString( - "{\"type\":\"ExcelSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataftqombdsgqxa\",\"disableMetricsCollection\":\"dataduo\",\"\":{\"hpyylekubiwv\":\"datahdjbyfdfuaj\",\"sloqut\":\"datavzznyjqbwxpwjvf\"}},\"additionalColumns\":\"databzwgjupjbd\",\"sourceRetryCount\":\"datankiaj\",\"sourceRetryWait\":\"datashupxjttnurk\",\"maxConcurrentConnections\":\"datarqza\",\"disableMetricsCollection\":\"datawomevqvv\",\"\":{\"gtceormxoxtapa\":\"datadlduvi\",\"avcipydnujgb\":\"databjvbkjtgzkcp\",\"jxdrgxpuxpzslmf\":\"dataskizprvpuac\",\"zgszjhekbmd\":\"dataypzrycchqzkfges\"}}") - .toObject(ExcelSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExcelSource model = new ExcelSource().withSourceRetryCount("datankiaj") - .withSourceRetryWait("datashupxjttnurk") - .withMaxConcurrentConnections("datarqza") - .withDisableMetricsCollection("datawomevqvv") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataftqombdsgqxa") - .withDisableMetricsCollection("dataduo") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("databzwgjupjbd"); - model = BinaryData.fromObject(model).toObject(ExcelSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecuteDataFlowActivityTypePropertiesComputeTests.java deleted file mode 100644 index fa4512aa2d28..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\":\"datawjnvhuswmwvqb\",\"coreCount\":\"datazjmfqusp\"}") - .toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecuteDataFlowActivityTypePropertiesCompute model - = new ExecuteDataFlowActivityTypePropertiesCompute().withComputeType("datawjnvhuswmwvqb") - .withCoreCount("datazjmfqusp"); - model = BinaryData.fromObject(model).toObject(ExecuteDataFlowActivityTypePropertiesCompute.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityPolicyTests.java deleted file mode 100644 index 4b9d9b0342b1..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,\"\":{\"nlfzq\":\"dataomtzpukmxgslzb\",\"wzesejdcpcpeu\":\"datamxuo\",\"jrptltytbqhejhn\":\"databofzmvtwyjc\"}}") - .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 804bd0b7abd3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivity; -import com.azure.resourcemanager.datafactory.models.ExecutePipelineActivityPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivity model = BinaryData.fromString( - "{\"type\":\"ExecutePipeline\",\"policy\":{\"secureInput\":true,\"\":{\"atpdxpo\":\"datatqvbahi\",\"chnhj\":\"dataogvpsmx\",\"mlplqgp\":\"dataaqpwxuyik\",\"zb\":\"datakynkkezkvnlvwts\"}},\"typeProperties\":{\"pipeline\":{\"referenceName\":\"gvezhimx\",\"name\":\"qwlxkyoysyutn\"},\"parameters\":{\"xmyblway\":\"datazkovtjnmcaprxh\",\"wyfy\":\"datapaggkrumpu\"},\"waitOnCompletion\":false},\"name\":\"boipxh\",\"description\":\"icwvhjdrvj\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ooytilsmise\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Failed\"],\"\":{\"crzgluqacebcn\":\"dataqu\",\"aumjuruspflvgl\":\"datazh\",\"ekbrqg\":\"datawkgcpfz\"}},{\"activity\":\"vxwq\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"ob\":\"datamfobtml\",\"cwhebyczweg\":\"datauoyownygbra\",\"razqxxvksqifr\":\"datazd\",\"cmegoll\":\"datamidvturdgl\"}}],\"userProperties\":[{\"name\":\"pryhz\",\"value\":\"datawxuizakejom\"}],\"\":{\"bqii\":\"dataxjhrzgnfqqlgqez\",\"krarzkzatznvye\":\"dataeoace\"}}") - .toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("boipxh", model.name()); - Assertions.assertEquals("icwvhjdrvj", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ooytilsmise", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pryhz", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals("gvezhimx", model.pipeline().referenceName()); - Assertions.assertEquals("qwlxkyoysyutn", model.pipeline().name()); - Assertions.assertEquals(false, model.waitOnCompletion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutePipelineActivity model = new ExecutePipelineActivity().withName("boipxh") - .withDescription("icwvhjdrvj") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ooytilsmise") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vxwq") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("pryhz").withValue("datawxuizakejom"))) - .withPolicy(new ExecutePipelineActivityPolicy().withSecureInput(true).withAdditionalProperties(mapOf())) - .withPipeline(new PipelineReference().withReferenceName("gvezhimx").withName("qwlxkyoysyutn")) - .withParameters(mapOf("xmyblway", "datazkovtjnmcaprxh", "wyfy", "datapaggkrumpu")) - .withWaitOnCompletion(false); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivity.class); - Assertions.assertEquals("boipxh", model.name()); - Assertions.assertEquals("icwvhjdrvj", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ooytilsmise", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("pryhz", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals("gvezhimx", model.pipeline().referenceName()); - Assertions.assertEquals("qwlxkyoysyutn", 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 daffae80267f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutePipelineActivityTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePipelineActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutePipelineActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutePipelineActivityTypeProperties model = BinaryData.fromString( - "{\"pipeline\":{\"referenceName\":\"jlbygq\",\"name\":\"eeuuur\"},\"parameters\":{\"wvygquiwcfqzo\":\"datalx\",\"irqkskyyam\":\"datagwwdevqmtejhvggy\",\"lmibvczdj\":\"datamimsyiwcdwqjbrrx\",\"lvlfkwdtsbjmc\":\"datao\"},\"waitOnCompletion\":true}") - .toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("jlbygq", model.pipeline().referenceName()); - Assertions.assertEquals("eeuuur", 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("jlbygq").withName("eeuuur")) - .withParameters(mapOf("wvygquiwcfqzo", "datalx", "irqkskyyam", "datagwwdevqmtejhvggy", "lmibvczdj", - "datamimsyiwcdwqjbrrx", "lvlfkwdtsbjmc", "datao")) - .withWaitOnCompletion(true); - model = BinaryData.fromObject(model).toObject(ExecutePipelineActivityTypeProperties.class); - Assertions.assertEquals("jlbygq", model.pipeline().referenceName()); - Assertions.assertEquals("eeuuur", model.pipeline().name()); - Assertions.assertEquals(true, model.waitOnCompletion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java deleted file mode 100644 index cb5cce0c4afe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExecutionActivityTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ExecutionActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ExecutionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExecutionActivity model = BinaryData.fromString( - "{\"type\":\"Execution\",\"linkedServiceName\":{\"referenceName\":\"rwxf\",\"parameters\":{\"ofegrzfsfuloo\":\"dataghwfiy\"}},\"policy\":{\"timeout\":\"datazotjbvhuidlod\",\"retry\":\"datasylkkqvm\",\"retryIntervalInSeconds\":669615621,\"secureInput\":true,\"secureOutput\":false,\"\":{\"mnjitxughlbi\":\"dataegymcmn\",\"hkioec\":\"datawodayipg\"}},\"name\":\"byoxpvbv\",\"description\":\"hfuxu\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"kzdshhhd\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Completed\"],\"\":{\"zvfywspajakj\":\"dataibmstvzz\",\"mzzpautsrvs\":\"datavpktbnmhx\",\"jjgvu\":\"dataknvouyts\"}},{\"activity\":\"nwichjkwctlsoh\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"meyaoy\":\"databtegiw\",\"nfzmthiec\":\"datajfgvxauimnabgr\",\"umamdorgl\":\"dataflazfotrp\",\"sfgjbeybdukbgl\":\"dataekh\"}},{\"activity\":\"iwvxmysc\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"smvvxkcted\":\"dataxkonciacdloe\",\"niffajniwbyzyjuy\":\"dataaf\"}}],\"userProperties\":[{\"name\":\"bbugo\",\"value\":\"datadzc\"},{\"name\":\"uyosigkinykjxqs\",\"value\":\"datapeqgedpizjqp\"}],\"\":{\"diverkwmafyxo\":\"datau\",\"t\":\"dataakvuted\"}}") - .toObject(ExecutionActivity.class); - Assertions.assertEquals("byoxpvbv", model.name()); - Assertions.assertEquals("hfuxu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("kzdshhhd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bbugo", model.userProperties().get(0).name()); - Assertions.assertEquals("rwxf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(669615621, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExecutionActivity model = new ExecutionActivity().withName("byoxpvbv") - .withDescription("hfuxu") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("kzdshhhd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nwichjkwctlsoh") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("iwvxmysc") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("bbugo").withValue("datadzc"), - new UserProperty().withName("uyosigkinykjxqs").withValue("datapeqgedpizjqp"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rwxf") - .withParameters(mapOf("ofegrzfsfuloo", "dataghwfiy"))) - .withPolicy(new ActivityPolicy().withTimeout("datazotjbvhuidlod") - .withRetry("datasylkkqvm") - .withRetryIntervalInSeconds(669615621) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ExecutionActivity.class); - Assertions.assertEquals("byoxpvbv", model.name()); - Assertions.assertEquals("hfuxu", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("kzdshhhd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bbugo", model.userProperties().get(0).name()); - Assertions.assertEquals("rwxf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(669615621, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java deleted file mode 100644 index 0089f7f64c3e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExportSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExportSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ExportSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExportSettings model = BinaryData.fromString( - "{\"type\":\"ExportSettings\",\"\":{\"oiumuxna\":\"datayk\",\"hmxz\":\"dataivgmck\",\"biojncgjo\":\"datampoiutaatv\"}}") - .toObject(ExportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportSettings model = new ExportSettings().withAdditionalProperties(mapOf("type", "ExportSettings")); - model = BinaryData.fromObject(model).toObject(ExportSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java deleted file mode 100644 index d84f84957610..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchRequestTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ExposureControlBatchRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlBatchRequest model = BinaryData - .fromString("{\"exposureControlRequests\":[{\"featureName\":\"fbuhfmvfaxkffe\",\"featureType\":\"th\"}]}") - .toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("fbuhfmvfaxkffe", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("th", model.exposureControlRequests().get(0).featureType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlBatchRequest model = new ExposureControlBatchRequest().withExposureControlRequests( - Arrays.asList(new ExposureControlRequest().withFeatureName("fbuhfmvfaxkffe").withFeatureType("th"))); - model = BinaryData.fromObject(model).toObject(ExposureControlBatchRequest.class); - Assertions.assertEquals("fbuhfmvfaxkffe", model.exposureControlRequests().get(0).featureName()); - Assertions.assertEquals("th", model.exposureControlRequests().get(0).featureType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java deleted file mode 100644 index c5db19883a28..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlBatchResponseInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlBatchResponseInner; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; -import java.util.Arrays; - -public final class ExposureControlBatchResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlBatchResponseInner model = BinaryData.fromString( - "{\"exposureControlResponses\":[{\"featureName\":\"ez\",\"value\":\"shxmzsbbzoggigrx\"},{\"featureName\":\"ur\",\"value\":\"xxjnspydptk\"}]}") - .toObject(ExposureControlBatchResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlBatchResponseInner model = new ExposureControlBatchResponseInner().withExposureControlResponses( - Arrays.asList(new ExposureControlResponseInner(), new ExposureControlResponseInner())); - model = BinaryData.fromObject(model).toObject(ExposureControlBatchResponseInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java deleted file mode 100644 index a33d034da583..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import org.junit.jupiter.api.Assertions; - -public final class ExposureControlRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlRequest model - = BinaryData.fromString("{\"featureName\":\"mvxi\",\"featureType\":\"uugidyjrrfby\"}") - .toObject(ExposureControlRequest.class); - Assertions.assertEquals("mvxi", model.featureName()); - Assertions.assertEquals("uugidyjrrfby", model.featureType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlRequest model - = new ExposureControlRequest().withFeatureName("mvxi").withFeatureType("uugidyjrrfby"); - model = BinaryData.fromObject(model).toObject(ExposureControlRequest.class); - Assertions.assertEquals("mvxi", model.featureName()); - Assertions.assertEquals("uugidyjrrfby", model.featureType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java deleted file mode 100644 index dec1e0d826d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlResponseInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ExposureControlResponseInner; - -public final class ExposureControlResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExposureControlResponseInner model - = BinaryData.fromString("{\"featureName\":\"svexcsonpclhoco\",\"value\":\"lkevle\"}") - .toObject(ExposureControlResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExposureControlResponseInner model = new ExposureControlResponseInner(); - model = BinaryData.fromObject(model).toObject(ExposureControlResponseInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExposureControlsGetFeatureValueByFactoryWithResponseMockTests.java deleted file mode 100644 index 211ce51fb493..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"ild\",\"value\":\"ytviwvejwtz\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ExposureControlResponse response = manager.exposureControls() - .getFeatureValueByFactoryWithResponse("cgdkwwul", "veujgs", - new ExposureControlRequest().withFeatureName("sxbo").withFeatureType("vauhnhmnswlfu"), - 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 11fa804dbaa6..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"ilbsbhaq\",\"value\":\"cw\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ExposureControlResponse response = manager.exposureControls() - .getFeatureValueWithResponse("omhhsumzfvrak", - new ExposureControlRequest().withFeatureName("lltoiudve").withFeatureType("behrholj"), - 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 6cb0033ddc7d..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"mxkgxrfrmdpwpzu\",\"value\":\"ynxlkloqpwsaqcre\"},{\"featureName\":\"gjdnzowpvrwec\",\"value\":\"kiaognmanrzjprlq\"},{\"featureName\":\"wpejtszjbvjcvw\",\"value\":\"cvnowzcli\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ExposureControlBatchResponse response = manager.exposureControls() - .queryFeatureValuesByFactoryWithResponse("iidpssklmytae", "lls", - new ExposureControlBatchRequest().withExposureControlRequests( - Arrays.asList(new ExposureControlRequest().withFeatureName("antssbzmo").withFeatureType("j"))), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java deleted file mode 100644 index 7f25808298d8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Expression; -import org.junit.jupiter.api.Assertions; - -public final class ExpressionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Expression model = BinaryData.fromString("{\"value\":\"ywmhmptyrilkfbnr\"}").toObject(Expression.class); - Assertions.assertEquals("ywmhmptyrilkfbnr", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Expression model = new Expression().withValue("ywmhmptyrilkfbnr"); - model = BinaryData.fromObject(model).toObject(Expression.class); - Assertions.assertEquals("ywmhmptyrilkfbnr", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.java deleted file mode 100644 index 8449d38d266f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ExpressionV2Tests.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.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\":\"NAry\",\"value\":\"rbuvwug\",\"operators\":[\"clxhv\",\"soodxmm\",\"yumejpqxu\",\"odwblaujhox\"],\"operands\":[{\"type\":\"Field\",\"value\":\"ywyamtzlcvokvoq\",\"operators\":[\"dyoc\"],\"operands\":[{\"type\":\"Binary\",\"value\":\"ieteznnlsqymv\",\"operators\":[\"g\",\"ekzulkk\"],\"operands\":[{}]},{\"type\":\"Field\",\"value\":\"dadcdrysanifcf\",\"operators\":[\"jzsumgzebqb\",\"ewepoantsr\",\"pdeewjgjdqla\",\"unedsozjfigi\"],\"operands\":[{},{}]},{\"type\":\"NAry\",\"value\":\"vwhutjj\",\"operators\":[\"ixsvoob\",\"srisfccf\"],\"operands\":[{},{},{},{}]}]},{\"type\":\"Constant\",\"value\":\"ifrkyvutwmcmcri\",\"operators\":[\"vspydtladfcqkzci\"],\"operands\":[{\"type\":\"Binary\",\"value\":\"jwme\",\"operators\":[\"jwrvbuphbwais\",\"bacgrysjgzuzo\",\"updcmpfwfdcpedu\",\"ydd\"],\"operands\":[{},{},{},{}]}]}]}") - .toObject(ExpressionV2.class); - Assertions.assertEquals(ExpressionV2Type.NARY, model.type()); - Assertions.assertEquals("rbuvwug", model.value()); - Assertions.assertEquals("clxhv", model.operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.operands().get(0).type()); - Assertions.assertEquals("ywyamtzlcvokvoq", model.operands().get(0).value()); - Assertions.assertEquals("dyoc", model.operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.operands().get(0).operands().get(0).type()); - Assertions.assertEquals("ieteznnlsqymv", model.operands().get(0).operands().get(0).value()); - Assertions.assertEquals("g", model.operands().get(0).operands().get(0).operators().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExpressionV2 model = new ExpressionV2().withType(ExpressionV2Type.NARY) - .withValue("rbuvwug") - .withOperators(Arrays.asList("clxhv", "soodxmm", "yumejpqxu", "odwblaujhox")) - .withOperands(Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("ywyamtzlcvokvoq") - .withOperators(Arrays.asList("dyoc")) - .withOperands(Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("ieteznnlsqymv") - .withOperators(Arrays.asList("g", "ekzulkk")) - .withOperands(Arrays.asList(new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("dadcdrysanifcf") - .withOperators(Arrays.asList("jzsumgzebqb", "ewepoantsr", "pdeewjgjdqla", "unedsozjfigi")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.NARY) - .withValue("vwhutjj") - .withOperators(Arrays.asList("ixsvoob", "srisfccf")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())))), - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("ifrkyvutwmcmcri") - .withOperators(Arrays.asList("vspydtladfcqkzci")) - .withOperands(Arrays.asList(new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("jwme") - .withOperators(Arrays.asList("jwrvbuphbwais", "bacgrysjgzuzo", "updcmpfwfdcpedu", "ydd")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), new ExpressionV2(), - new ExpressionV2())))))); - model = BinaryData.fromObject(model).toObject(ExpressionV2.class); - Assertions.assertEquals(ExpressionV2Type.NARY, model.type()); - Assertions.assertEquals("rbuvwug", model.value()); - Assertions.assertEquals("clxhv", model.operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.FIELD, model.operands().get(0).type()); - Assertions.assertEquals("ywyamtzlcvokvoq", model.operands().get(0).value()); - Assertions.assertEquals("dyoc", model.operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.operands().get(0).operands().get(0).type()); - Assertions.assertEquals("ieteznnlsqymv", model.operands().get(0).operands().get(0).value()); - Assertions.assertEquals("g", model.operands().get(0).operands().get(0).operators().get(0)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 131a32ff6a72..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteByResourceGroupWithResponseMockTests.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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.factories() - .deleteByResourceGroupWithResponse("tmxyrsnmwiy", "leaotaakcy", 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 cbd38002b319..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryIdentityTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryIdentityType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FactoryIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryIdentity model = BinaryData.fromString( - "{\"type\":\"SystemAssigned\",\"principalId\":\"0f26f70b-83bf-41ef-824e-64e7955969e2\",\"tenantId\":\"6da9951a-33e2-448e-8aa1-ff2a611e1be0\",\"userAssignedIdentities\":{\"qjpkcattpngjcrc\":\"dataleyyvx\"}}") - .toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryIdentity model = new FactoryIdentity().withType(FactoryIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("qjpkcattpngjcrc", "dataleyyvx")); - model = BinaryData.fromObject(model).toObject(FactoryIdentity.class); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java deleted file mode 100644 index f2c5e67cc70b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoConfigurationTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class FactoryRepoConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryRepoConfiguration model = BinaryData.fromString( - "{\"type\":\"FactoryRepoConfiguration\",\"accountName\":\"o\",\"repositoryName\":\"rq\",\"collaborationBranch\":\"b\",\"rootFolder\":\"oczvy\",\"lastCommitId\":\"qrvkdv\",\"disablePublish\":false}") - .toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("o", model.accountName()); - Assertions.assertEquals("rq", model.repositoryName()); - Assertions.assertEquals("b", model.collaborationBranch()); - Assertions.assertEquals("oczvy", model.rootFolder()); - Assertions.assertEquals("qrvkdv", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoConfiguration model = new FactoryRepoConfiguration().withAccountName("o") - .withRepositoryName("rq") - .withCollaborationBranch("b") - .withRootFolder("oczvy") - .withLastCommitId("qrvkdv") - .withDisablePublish(false); - model = BinaryData.fromObject(model).toObject(FactoryRepoConfiguration.class); - Assertions.assertEquals("o", model.accountName()); - Assertions.assertEquals("rq", model.repositoryName()); - Assertions.assertEquals("b", model.collaborationBranch()); - Assertions.assertEquals("oczvy", model.rootFolder()); - Assertions.assertEquals("qrvkdv", model.lastCommitId()); - Assertions.assertEquals(false, model.disablePublish()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java deleted file mode 100644 index 97fe44a9e3db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryRepoUpdateTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import org.junit.jupiter.api.Assertions; - -public final class FactoryRepoUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryRepoUpdate model = BinaryData.fromString( - "{\"factoryResourceId\":\"qzbqjvsov\",\"repoConfiguration\":{\"type\":\"FactoryRepoConfiguration\",\"accountName\":\"okacspk\",\"repositoryName\":\"lhzdobp\",\"collaborationBranch\":\"jmflbvvnch\",\"rootFolder\":\"kcciwwzjuqkhr\",\"lastCommitId\":\"jiwkuofoskghsau\",\"disablePublish\":true}}") - .toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("qzbqjvsov", model.factoryResourceId()); - Assertions.assertEquals("okacspk", model.repoConfiguration().accountName()); - Assertions.assertEquals("lhzdobp", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("jmflbvvnch", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("kcciwwzjuqkhr", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("jiwkuofoskghsau", model.repoConfiguration().lastCommitId()); - Assertions.assertEquals(true, model.repoConfiguration().disablePublish()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryRepoUpdate model = new FactoryRepoUpdate().withFactoryResourceId("qzbqjvsov") - .withRepoConfiguration(new FactoryRepoConfiguration().withAccountName("okacspk") - .withRepositoryName("lhzdobp") - .withCollaborationBranch("jmflbvvnch") - .withRootFolder("kcciwwzjuqkhr") - .withLastCommitId("jiwkuofoskghsau") - .withDisablePublish(true)); - model = BinaryData.fromObject(model).toObject(FactoryRepoUpdate.class); - Assertions.assertEquals("qzbqjvsov", model.factoryResourceId()); - Assertions.assertEquals("okacspk", model.repoConfiguration().accountName()); - Assertions.assertEquals("lhzdobp", model.repoConfiguration().repositoryName()); - Assertions.assertEquals("jmflbvvnch", model.repoConfiguration().collaborationBranch()); - Assertions.assertEquals("kcciwwzjuqkhr", model.repoConfiguration().rootFolder()); - Assertions.assertEquals("jiwkuofoskghsau", model.repoConfiguration().lastCommitId()); - Assertions.assertEquals(true, model.repoConfiguration().disablePublish()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java deleted file mode 100644 index 1cd8bd3f2ad2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdateParametersTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryIdentity; -import com.azure.resourcemanager.datafactory.models.FactoryIdentityType; -import com.azure.resourcemanager.datafactory.models.FactoryUpdateParameters; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FactoryUpdateParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryUpdateParameters model = BinaryData.fromString( - "{\"tags\":{\"bldngkpoc\":\"kouknvudwtiu\",\"npiucgygevqznty\":\"pazyxoegukg\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"5a31ec13-8b8c-49ad-bf2a-4cde5ba2002e\",\"tenantId\":\"9449e731-5b63-4fdc-8d91-3189a9a14242\",\"userAssignedIdentities\":{\"r\":\"datac\",\"dpydn\":\"dataj\",\"sjttgzfbish\":\"datayhxdeoejzicwi\",\"jdeyeamdpha\":\"databkh\"}},\"properties\":{\"publicNetworkAccess\":\"Disabled\"}}") - .toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("kouknvudwtiu", model.tags().get("bldngkpoc")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryUpdateParameters model = new FactoryUpdateParameters() - .withTags(mapOf("bldngkpoc", "kouknvudwtiu", "npiucgygevqznty", "pazyxoegukg")) - .withIdentity(new FactoryIdentity().withType(FactoryIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("r", "datac", "dpydn", "dataj", "sjttgzfbish", "datayhxdeoejzicwi", - "jdeyeamdpha", "databkh"))) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateParameters.class); - Assertions.assertEquals("kouknvudwtiu", model.tags().get("bldngkpoc")); - Assertions.assertEquals(FactoryIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java deleted file mode 100644 index 3f0fc96403a5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryUpdatePropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FactoryUpdateProperties; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import org.junit.jupiter.api.Assertions; - -public final class FactoryUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryUpdateProperties model - = BinaryData.fromString("{\"publicNetworkAccess\":\"Disabled\"}").toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryUpdateProperties model - = new FactoryUpdateProperties().withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FactoryUpdateProperties.class); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java deleted file mode 100644 index a5a3a6391f5c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FactoryVstsConfigurationTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class FactoryVstsConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FactoryVstsConfiguration model = BinaryData.fromString( - "{\"type\":\"FactoryVSTSConfiguration\",\"projectName\":\"tnkjjwgcwnphb\",\"tenantId\":\"fyrtogmhmjp\",\"accountName\":\"scdfpdqw\",\"repositoryName\":\"ygevgwmseharx\",\"collaborationBranch\":\"fv\",\"rootFolder\":\"n\",\"lastCommitId\":\"tmbpjp\",\"disablePublish\":true}") - .toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("scdfpdqw", model.accountName()); - Assertions.assertEquals("ygevgwmseharx", model.repositoryName()); - Assertions.assertEquals("fv", model.collaborationBranch()); - Assertions.assertEquals("n", model.rootFolder()); - Assertions.assertEquals("tmbpjp", model.lastCommitId()); - Assertions.assertEquals(true, model.disablePublish()); - Assertions.assertEquals("tnkjjwgcwnphb", model.projectName()); - Assertions.assertEquals("fyrtogmhmjp", model.tenantId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FactoryVstsConfiguration model = new FactoryVstsConfiguration().withAccountName("scdfpdqw") - .withRepositoryName("ygevgwmseharx") - .withCollaborationBranch("fv") - .withRootFolder("n") - .withLastCommitId("tmbpjp") - .withDisablePublish(true) - .withProjectName("tnkjjwgcwnphb") - .withTenantId("fyrtogmhmjp"); - model = BinaryData.fromObject(model).toObject(FactoryVstsConfiguration.class); - Assertions.assertEquals("scdfpdqw", model.accountName()); - Assertions.assertEquals("ygevgwmseharx", model.repositoryName()); - Assertions.assertEquals("fv", model.collaborationBranch()); - Assertions.assertEquals("n", model.rootFolder()); - Assertions.assertEquals("tmbpjp", model.lastCommitId()); - Assertions.assertEquals(true, model.disablePublish()); - Assertions.assertEquals("tnkjjwgcwnphb", model.projectName()); - Assertions.assertEquals("fyrtogmhmjp", model.tenantId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java deleted file mode 100644 index 50d2d37ffe58..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerLocation; - -public final class FileServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerLocation model = BinaryData.fromString( - "{\"type\":\"FileServerLocation\",\"folderPath\":\"datapxmib\",\"fileName\":\"datanupoyryefqmwovyz\",\"\":{\"kutnjillukkrehy\":\"datanomfpbjceegvyiez\",\"xfaryrvj\":\"datatmjoduifvu\"}}") - .toObject(FileServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerLocation model - = new FileServerLocation().withFolderPath("datapxmib").withFileName("datanupoyryefqmwovyz"); - model = BinaryData.fromObject(model).toObject(FileServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java deleted file mode 100644 index 3aa8848a3a1f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileServerReadSettingsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileServerReadSettings; - -public final class FileServerReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileServerReadSettings model = BinaryData.fromString( - "{\"type\":\"FileServerReadSettings\",\"recursive\":\"dataozdvok\",\"wildcardFolderPath\":\"datayhhrdikdbqe\",\"wildcardFileName\":\"datagsibldxyaqdaaznz\",\"fileListPath\":\"datazfhh\",\"enablePartitionDiscovery\":\"datayxkgnrya\",\"partitionRootPath\":\"datafdxauihnb\",\"deleteFilesAfterCompletion\":\"datahkdwyehqnxuffgj\",\"modifiedDatetimeStart\":\"dataminhvdkqigppdqsq\",\"modifiedDatetimeEnd\":\"datap\",\"fileFilter\":\"dataaxthuhuruo\",\"maxConcurrentConnections\":\"datayotapstkdbn\",\"disableMetricsCollection\":\"datapcuzexoymfku\",\"\":{\"phlfrxrpahptv\":\"datasgsqzpgrvfag\",\"qllolnxhsupilhx\":\"datakfenmiflky\",\"y\":\"dataabli\"}}") - .toObject(FileServerReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerReadSettings model = new FileServerReadSettings().withMaxConcurrentConnections("datayotapstkdbn") - .withDisableMetricsCollection("datapcuzexoymfku") - .withRecursive("dataozdvok") - .withWildcardFolderPath("datayhhrdikdbqe") - .withWildcardFileName("datagsibldxyaqdaaznz") - .withFileListPath("datazfhh") - .withEnablePartitionDiscovery("datayxkgnrya") - .withPartitionRootPath("datafdxauihnb") - .withDeleteFilesAfterCompletion("datahkdwyehqnxuffgj") - .withModifiedDatetimeStart("dataminhvdkqigppdqsq") - .withModifiedDatetimeEnd("datap") - .withFileFilter("dataaxthuhuruo"); - 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 65b5b5dc77a3..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\":\"FileServerWriteSettings\",\"maxConcurrentConnections\":\"datarbullqnfz\",\"disableMetricsCollection\":\"datagursbzm\",\"copyBehavior\":\"datawax\",\"metadata\":[{\"name\":\"datatzdvx\",\"value\":\"datadaajlhgsuqmrkya\"}],\"\":{\"xhpqlxnb\":\"databds\",\"aingadkr\":\"dataj\"}}") - .toObject(FileServerWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileServerWriteSettings model = new FileServerWriteSettings().withMaxConcurrentConnections("datarbullqnfz") - .withDisableMetricsCollection("datagursbzm") - .withCopyBehavior("datawax") - .withMetadata(Arrays.asList(new MetadataItem().withName("datatzdvx").withValue("datadaajlhgsuqmrkya"))); - model = BinaryData.fromObject(model).toObject(FileServerWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java deleted file mode 100644 index 9c2adb494279..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.FileShareDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FileShareDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareDataset model = BinaryData.fromString( - "{\"type\":\"FileShare\",\"typeProperties\":{\"folderPath\":\"dataeyobqaj\",\"fileName\":\"datairv\",\"modifiedDatetimeStart\":\"datarvkgpogplbjuvl\",\"modifiedDatetimeEnd\":\"dataxnrnjh\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"dataegesbxne\",\"deserializer\":\"datamjmoplu\",\"\":{\"mwqpdkesjqbzkqm\":\"datakkfhsovadkrmj\",\"tspzjnrr\":\"datavporiwbwggi\",\"htrgz\":\"dataikwsbzrhdugq\",\"jfhrjhiycbause\":\"dataru\"}},\"fileFilter\":\"dataczkvihvtuw\",\"compression\":{\"type\":\"datasqwzszoszjgzu\",\"level\":\"datafnyskwwu\",\"\":{\"slhip\":\"dataczavoj\",\"vchyluqalpcufj\":\"dataukvbljpxpr\",\"tiztqds\":\"dataf\"}}},\"description\":\"h\",\"structure\":\"datasaaxxsrit\",\"schema\":\"datawbaaes\",\"linkedServiceName\":{\"referenceName\":\"yefmxwoqotii\",\"parameters\":{\"sty\":\"datapasrvrmt\",\"k\":\"datakjhorlxkpy\",\"b\":\"datannycntrqxxwtd\",\"oxtdyqavfx\":\"datajtsuhqh\"}},\"parameters\":{\"bgh\":{\"type\":\"SecureString\",\"defaultValue\":\"datasyaksinpaamih\"},\"iys\":{\"type\":\"Array\",\"defaultValue\":\"datagpbgchcgsfzhbj\"},\"sgw\":{\"type\":\"SecureString\",\"defaultValue\":\"datasdjpgxe\"},\"f\":{\"type\":\"Int\",\"defaultValue\":\"dataferznzcbivoveomk\"}},\"annotations\":[\"dataooplfpohim\",\"datackycjpeebzn\"],\"folder\":{\"name\":\"xsuloutnpb\"},\"\":{\"cdmwk\":\"dataoqohgp\",\"sl\":\"dataupf\"}}") - .toObject(FileShareDataset.class); - Assertions.assertEquals("h", model.description()); - Assertions.assertEquals("yefmxwoqotii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("bgh").type()); - Assertions.assertEquals("xsuloutnpb", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDataset model = new FileShareDataset().withDescription("h") - .withStructure("datasaaxxsrit") - .withSchema("datawbaaes") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("yefmxwoqotii") - .withParameters(mapOf("sty", "datapasrvrmt", "k", "datakjhorlxkpy", "b", "datannycntrqxxwtd", - "oxtdyqavfx", "datajtsuhqh"))) - .withParameters(mapOf("bgh", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datasyaksinpaamih"), - "iys", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datagpbgchcgsfzhbj"), - "sgw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datasdjpgxe"), "f", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataferznzcbivoveomk"))) - .withAnnotations(Arrays.asList("dataooplfpohim", "datackycjpeebzn")) - .withFolder(new DatasetFolder().withName("xsuloutnpb")) - .withFolderPath("dataeyobqaj") - .withFileName("datairv") - .withModifiedDatetimeStart("datarvkgpogplbjuvl") - .withModifiedDatetimeEnd("dataxnrnjh") - .withFormat(new DatasetStorageFormat().withSerializer("dataegesbxne") - .withDeserializer("datamjmoplu") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withFileFilter("dataczkvihvtuw") - .withCompression(new DatasetCompression().withType("datasqwzszoszjgzu") - .withLevel("datafnyskwwu") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(FileShareDataset.class); - Assertions.assertEquals("h", model.description()); - Assertions.assertEquals("yefmxwoqotii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("bgh").type()); - Assertions.assertEquals("xsuloutnpb", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java deleted file mode 100644 index d340ff6ea065..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileShareDatasetTypePropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FileShareDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class FileShareDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareDatasetTypeProperties model = BinaryData.fromString( - "{\"folderPath\":\"datadzauiunyev\",\"fileName\":\"datazdsytciks\",\"modifiedDatetimeStart\":\"datacamwuynfxkcgs\",\"modifiedDatetimeEnd\":\"datamvhadrpbatvy\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datajqkqws\",\"deserializer\":\"datatvjkowggxawwdm\",\"\":{\"g\":\"datankteiidlbovwbclp\",\"kjcnerek\":\"datagani\",\"gpwxtvce\":\"datajulskwwnqhql\",\"vxwve\":\"dataavv\"}},\"fileFilter\":\"datanlrjcsmwevguyfln\",\"compression\":{\"type\":\"datalr\",\"level\":\"datafzcde\",\"\":{\"csfqbirtybce\":\"datawezhyfkdilbwqlq\",\"dvuelumodpegqxso\":\"datafjnxodnjyhzfaxs\",\"hlbeqvhs\":\"datachazrqoxz\"}}}") - .toObject(FileShareDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareDatasetTypeProperties model = new FileShareDatasetTypeProperties().withFolderPath("datadzauiunyev") - .withFileName("datazdsytciks") - .withModifiedDatetimeStart("datacamwuynfxkcgs") - .withModifiedDatetimeEnd("datamvhadrpbatvy") - .withFormat(new DatasetStorageFormat().withSerializer("datajqkqws") - .withDeserializer("datatvjkowggxawwdm") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withFileFilter("datanlrjcsmwevguyfln") - .withCompression( - new DatasetCompression().withType("datalr").withLevel("datafzcde").withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(FileShareDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java deleted file mode 100644 index 0d6a12a2dd1c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileSystemSink; - -public final class FileSystemSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileSystemSink model = BinaryData.fromString( - "{\"type\":\"FileSystemSink\",\"copyBehavior\":\"databdfrtasa\",\"writeBatchSize\":\"dataxtoxlxojijtt\",\"writeBatchTimeout\":\"datarxynn\",\"sinkRetryCount\":\"dataknyc\",\"sinkRetryWait\":\"datashcpxftyh\",\"maxConcurrentConnections\":\"dataduqsdurfqaawryc\",\"disableMetricsCollection\":\"dataslfrztpnrysxxa\",\"\":{\"ddvnobesowbtnfq\":\"datacighl\",\"hteho\":\"datawcaxj\",\"xofqjninrskq\":\"datacmeuuuajiotl\"}}") - .toObject(FileSystemSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSink model = new FileSystemSink().withWriteBatchSize("dataxtoxlxojijtt") - .withWriteBatchTimeout("datarxynn") - .withSinkRetryCount("dataknyc") - .withSinkRetryWait("datashcpxftyh") - .withMaxConcurrentConnections("dataduqsdurfqaawryc") - .withDisableMetricsCollection("dataslfrztpnrysxxa") - .withCopyBehavior("databdfrtasa"); - 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 49cafc327019..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FileSystemSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FileSystemSource; - -public final class FileSystemSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileSystemSource model = BinaryData.fromString( - "{\"type\":\"FileSystemSource\",\"recursive\":\"dataskzw\",\"additionalColumns\":\"datah\",\"sourceRetryCount\":\"datahz\",\"sourceRetryWait\":\"datac\",\"maxConcurrentConnections\":\"datasoxoavlwwpv\",\"disableMetricsCollection\":\"datanjwvc\",\"\":{\"wmwkdehjloz\":\"dataqlceflgsndurhqoz\",\"uxedpqwz\":\"datacwo\",\"rubcvucvebdfm\":\"datazimgbxjgxrha\",\"eealphuclkbwk\":\"datajn\"}}") - .toObject(FileSystemSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileSystemSource model = new FileSystemSource().withSourceRetryCount("datahz") - .withSourceRetryWait("datac") - .withMaxConcurrentConnections("datasoxoavlwwpv") - .withDisableMetricsCollection("datanjwvc") - .withRecursive("dataskzw") - .withAdditionalColumns("datah"); - 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 fd6999e72b73..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FilterActivityTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.FilterActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FilterActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FilterActivity model = BinaryData.fromString( - "{\"type\":\"Filter\",\"typeProperties\":{\"items\":{\"value\":\"ehtrgybfumoro\"},\"condition\":{\"value\":\"rutbfkynwwm\"}},\"name\":\"zpyrzazkal\",\"description\":\"vmknwlbz\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"ntgsju\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"iuaaqgkvkoynjuc\":\"dataphwgixypgvwmvafh\"}},{\"activity\":\"yjblafvvndkvbcrq\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"hgbf\":\"datagjneohxkisz\"}},{\"activity\":\"jodskqyjsdxgefk\",\"dependencyConditions\":[\"Failed\"],\"\":{\"agpjociu\":\"dataetorrchfuwfr\",\"djkwyzqnl\":\"datandgp\",\"kaciq\":\"datazymiv\"}}],\"userProperties\":[{\"name\":\"f\",\"value\":\"dataksywdtgz\"},{\"name\":\"gqfl\",\"value\":\"datauxyakof\"},{\"name\":\"soe\",\"value\":\"datahqtt\"},{\"name\":\"qcpcloo\",\"value\":\"datace\"}],\"\":{\"orn\":\"datasmnyfahidlscdow\",\"pirgdsqcbxkw\":\"datayjqzjtdkojbxkodc\"}}") - .toObject(FilterActivity.class); - Assertions.assertEquals("zpyrzazkal", model.name()); - Assertions.assertEquals("vmknwlbz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ntgsju", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("f", model.userProperties().get(0).name()); - Assertions.assertEquals("ehtrgybfumoro", model.items().value()); - Assertions.assertEquals("rutbfkynwwm", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivity model = new FilterActivity().withName("zpyrzazkal") - .withDescription("vmknwlbz") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ntgsju") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yjblafvvndkvbcrq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jodskqyjsdxgefk") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("f").withValue("dataksywdtgz"), - new UserProperty().withName("gqfl").withValue("datauxyakof"), - new UserProperty().withName("soe").withValue("datahqtt"), - new UserProperty().withName("qcpcloo").withValue("datace"))) - .withItems(new Expression().withValue("ehtrgybfumoro")) - .withCondition(new Expression().withValue("rutbfkynwwm")); - model = BinaryData.fromObject(model).toObject(FilterActivity.class); - Assertions.assertEquals("zpyrzazkal", model.name()); - Assertions.assertEquals("vmknwlbz", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("ntgsju", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("f", model.userProperties().get(0).name()); - Assertions.assertEquals("ehtrgybfumoro", model.items().value()); - Assertions.assertEquals("rutbfkynwwm", 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 4a0790cc369f..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\":\"nqsybwjvifgjztzh\"},\"condition\":{\"value\":\"hyqj\"}}") - .toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("nqsybwjvifgjztzh", model.items().value()); - Assertions.assertEquals("hyqj", model.condition().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilterActivityTypeProperties model - = new FilterActivityTypeProperties().withItems(new Expression().withValue("nqsybwjvifgjztzh")) - .withCondition(new Expression().withValue("hyqj")); - model = BinaryData.fromObject(model).toObject(FilterActivityTypeProperties.class); - Assertions.assertEquals("nqsybwjvifgjztzh", model.items().value()); - Assertions.assertEquals("hyqj", model.condition().value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java deleted file mode 100644 index 1da5be63072e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTests.java +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.Flowlet; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FlowletTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Flowlet model = BinaryData.fromString( - "{\"type\":\"Flowlet\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"cvgllixdg\",\"parameters\":{\"hu\":\"datagwewqkjvxprwpxso\"}},\"name\":\"xlcskltez\",\"description\":\"ggg\",\"dataset\":{\"referenceName\":\"fbgrdcgubsrt\",\"parameters\":{\"fcm\":\"datalperpilttjzgc\"}},\"linkedService\":{\"referenceName\":\"fbodetresrgvts\",\"parameters\":{\"ai\":\"dataft\",\"pdxxzetwwz\":\"datamuqkevzgjypanhx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tnxlkfhglhr\",\"datasetParameters\":\"datax\",\"parameters\":{\"elqxovppqi\":\"datacrsnhpc\",\"l\":\"dataukklvzrlr\"},\"\":{\"dsyenzsieuscpl\":\"dataetjsczivfqbqna\",\"itdshezsvkolru\":\"datayvdgxlyzk\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ovmozsayebraz\",\"parameters\":{\"kipfsdyepf\":\"datapzbtzuyk\",\"ztgaz\":\"dataocmbezacf\",\"okctgkppgkqzkc\":\"datayqejga\",\"cqvhoejgoiutgwrm\":\"datazmffngdyfcixrh\"}},\"name\":\"a\",\"description\":\"qha\",\"dataset\":{\"referenceName\":\"ntacih\",\"parameters\":{\"aqgrv\":\"datagmipnmliqmvlbhik\",\"dtsdfjy\":\"datapomxpu\",\"mpyzgleo\":\"dataesocwiqbuou\",\"bwwzvdajf\":\"datajsb\"}},\"linkedService\":{\"referenceName\":\"n\",\"parameters\":{\"jjrlhiqlwix\":\"dataaciq\",\"pg\":\"datatbouguxtnd\",\"alapdlndbe\":\"datattbas\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"kixvvlwy\",\"datasetParameters\":\"databb\",\"parameters\":{\"gzfeuzj\":\"datazfjmsp\",\"mi\":\"datajmphfkyezolgj\"},\"\":{\"iadhbatec\":\"datadoccnxshanzb\",\"wiinjdllw\":\"dataatsdohzniucbdaom\",\"g\":\"datatlepowavvqxua\",\"si\":\"dataqwulynkgfcfdru\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xtclhuulriqbyok\",\"parameters\":{\"cdjwsu\":\"databzsxebrslttfy\",\"holhujbfw\":\"dataardnagttpufpbpgn\",\"whdmcvhtbbz\":\"dataiplkysolsyjprxs\"}},\"name\":\"hfvhuwzbxpcqz\",\"description\":\"hotjec\",\"dataset\":{\"referenceName\":\"mx\",\"parameters\":{\"derltfokyksyim\":\"datarrskapbxwieexuy\",\"i\":\"dataccgrvkcxzznn\"}},\"linkedService\":{\"referenceName\":\"rsejegprkj\",\"parameters\":{\"wgxql\":\"datarjmwvvbtuqkxxi\",\"qfkyfhiwvjaqu\":\"dataekotjgxi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ynvskpajbmgeume\",\"datasetParameters\":\"datajbxcbccwkqmtxa\",\"parameters\":{\"ilg\":\"dataiscr\"},\"\":{\"uqimldahlfxl\":\"dataqrejdaa\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ifmuadjnfsncsk\",\"parameters\":{\"tlcgctjchfjvmy\":\"datashjgczetybnxg\",\"ebecuvlbefv\":\"dataj\"}},\"name\":\"cljkxpyl\",\"description\":\"oxz\",\"dataset\":{\"referenceName\":\"psyxjije\",\"parameters\":{\"wjxildfkcefeyg\":\"datavrbkerdkdkgaw\",\"jo\":\"dataq\"}},\"linkedService\":{\"referenceName\":\"fmn\",\"parameters\":{\"on\":\"datadjnxument\",\"xym\":\"datawhy\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"i\",\"datasetParameters\":\"datatowlhlsycoyb\",\"parameters\":{\"qwmchqohtfxc\":\"datasqubfajcywh\"},\"\":{\"wsmosao\":\"dataukiymjzpwdlvwt\",\"amppultassaekewn\":\"datahq\",\"jlcyizy\":\"datazeajbk\",\"e\":\"datadcvxodkrvfsxxby\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"gecpwgoljtzx\",\"parameters\":{\"pjxvazyjf\":\"datasdobygoogxq\",\"djnosdkvibf\":\"datacsa\",\"trnzpducdaaktu\":\"datasgm\",\"oimyfpqd\":\"dataktz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"kpp\",\"parameters\":{\"ffffg\":\"dataytfvpctfji\",\"ejjk\":\"datauhznwhvuldbk\"}},\"name\":\"igaw\",\"description\":\"zmxjqif\",\"dataset\":{\"referenceName\":\"jjsbcmlzaahzbhur\",\"parameters\":{\"ojusuzgfjzcva\":\"datakolirhh\",\"ahfxwccok\":\"dataxoia\",\"c\":\"dataxkukm\"}},\"linkedService\":{\"referenceName\":\"nuhhoqeqshav\",\"parameters\":{\"yrqolnthbbnkgz\":\"datak\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"drnzkjthf\",\"datasetParameters\":\"datayjncjm\",\"parameters\":{\"pfiddhl\":\"datayfj\",\"ocuselqk\":\"dataufzcqyjmqrfu\",\"sjmrkkhm\":\"datasazrhxuddqmdtff\",\"jawh\":\"datadmdlgyqixokw\"},\"\":{\"qdlcvmyolc\":\"datanqf\",\"tvsnvl\":\"dataymjc\",\"atuwqkokbc\":\"dataqdnzyza\",\"msn\":\"dataothymgobl\"}}},{\"schemaLinkedService\":{\"referenceName\":\"wimaaneakhtmh\",\"parameters\":{\"vkhgv\":\"datayanrfvq\",\"ymhcctopuo\":\"dataogxkfnaoa\",\"hquhczygxvhajp\":\"datayrnskb\",\"xqnwhscoz\":\"datae\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"mvgxsmpknpwir\",\"parameters\":{\"dnmckap\":\"datafewxqouox\",\"cdgmoqu\":\"datahknqiijge\",\"kyow\":\"dataqih\"}},\"name\":\"tjouwhldxwhi\",\"description\":\"roqksmfxm\",\"dataset\":{\"referenceName\":\"prstvkitbfj\",\"parameters\":{\"rqxw\":\"dataotnplfacqocc\",\"a\":\"datatjtdrhutfd\",\"eh\":\"datatxop\"}},\"linkedService\":{\"referenceName\":\"dkmdzgsszx\",\"parameters\":{\"rlsirnccla\":\"datakbbxuh\",\"suxxc\":\"datavoyn\",\"dsaidjanormovdxx\":\"databmyqjog\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tujmoil\",\"datasetParameters\":\"datawemhdee\",\"parameters\":{\"egrhrh\":\"datalkyozdsfzj\",\"xvgjbfi\":\"dataslejtvxj\"},\"\":{\"moxsa\":\"datanjodfcbjqqwmtq\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xej\",\"parameters\":{\"zsinqbdnddb\":\"datacywnfyszza\",\"jmyitrchwudl\":\"dataozsyvrm\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"eihtpmnoejh\",\"parameters\":{\"rfgxkyd\":\"datamsibzo\",\"hl\":\"datamypgfqvmty\",\"jpewpyjlfx\":\"datakxp\",\"qcrzgeuqxbpia\":\"datam\"}},\"name\":\"w\",\"description\":\"ujegqdtadra\",\"dataset\":{\"referenceName\":\"ddhjkr\",\"parameters\":{\"fpjbqggwe\":\"datazyhgsqtnqsktx\"}},\"linkedService\":{\"referenceName\":\"w\",\"parameters\":{\"bf\":\"datamnc\",\"dfb\":\"datauscstunmlh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"iichgjsysmvxodgw\",\"datasetParameters\":\"datakzsifcuvb\",\"parameters\":{\"ec\":\"datagcwx\"},\"\":{\"zagbbgiarksykp\":\"datajtrdxr\",\"cdosqkptj\":\"datadqxwabzrwiqrxhac\",\"d\":\"datagkifmmainwh\"}}},{\"schemaLinkedService\":{\"referenceName\":\"pbqwuntobu\",\"parameters\":{\"lw\":\"datazz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"ydjufbnklbl\",\"parameters\":{\"ytlbtlqhopxouvm\":\"dataegjwdabalfdxaglz\"}},\"name\":\"siflikyypzkgxf\",\"description\":\"myrqsdbpokszan\",\"dataset\":{\"referenceName\":\"wgpterdiuw\",\"parameters\":{\"tsdetjygowifcq\":\"datakskw\",\"gzyy\":\"dataolzkgys\",\"tvdxxhe\":\"datazoxlvoc\",\"zbwaybfmdafbgym\":\"datagmlilwzghjhjvmab\"}},\"linkedService\":{\"referenceName\":\"napreojxrjnbsco\",\"parameters\":{\"neychbjizq\":\"datavi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nwdxzedpqlrfbor\",\"datasetParameters\":\"datap\",\"parameters\":{\"pdjtaqh\":\"datafyzavfrbypicdb\"},\"\":{\"njhx\":\"dataazpdg\"}}}],\"transformations\":[{\"name\":\"hmgpczqulpt\",\"description\":\"vcpxtzhigqqbtimp\",\"dataset\":{\"referenceName\":\"blornsih\",\"parameters\":{\"fczmnn\":\"datadsmusuaawjakxwj\"}},\"linkedService\":{\"referenceName\":\"xyxvqban\",\"parameters\":{\"mgm\":\"datatgirnb\",\"p\":\"datadorgmynltw\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"foeajogsy\",\"datasetParameters\":\"dataetamfddrvlkpzwb\",\"parameters\":{\"edbiucvkhhwmjpjb\":\"dataecchdidrmuhkahm\",\"ppiybxv\":\"dataeunxcqrrihufoi\",\"bgk\":\"datanzuz\"},\"\":{\"nhdimjuktirz\":\"datacpiuzvk\",\"gpucdocfq\":\"dataa\"}}},{\"name\":\"lwgofm\",\"description\":\"wrjlvzkl\",\"dataset\":{\"referenceName\":\"bgikyjtkakvlbi\",\"parameters\":{\"ptuoska\":\"datavpz\",\"y\":\"dataizjixwfgcd\",\"mdmuqoh\":\"datakcxwnujvqynvavi\",\"wjc\":\"dataihraxqudd\"}},\"linkedService\":{\"referenceName\":\"brhlhpvzadb\",\"parameters\":{\"rmvzti\":\"dataninafhxrz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"viqlluk\",\"datasetParameters\":\"datarcqxgcbvzarmqc\",\"parameters\":{\"invagovjyhd\":\"datakst\",\"txnmxgnmguz\":\"dataxbrdvcehqwh\",\"kbd\":\"datauwvorbalkjn\",\"gxiynecovagzk\":\"datalltqstqkqs\"},\"\":{\"awzlzklaslgaciz\":\"databanlxunpqcckq\",\"jtighsxj\":\"dataxlrarwpewsaudo\",\"lahovuuwx\":\"dataytnkqb\"}}},{\"name\":\"mehjnhjioti\",\"description\":\"bbcngkeg\",\"dataset\":{\"referenceName\":\"y\",\"parameters\":{\"zox\":\"databfetwily\"}},\"linkedService\":{\"referenceName\":\"xql\",\"parameters\":{\"ewnahwkxjjmzt\":\"datalqownkiua\",\"dhdyswcrptveaj\":\"datalmsoodtmve\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vlgsrgkrfiz\",\"datasetParameters\":\"dataywlptyuqh\",\"parameters\":{\"ykpfu\":\"datacs\"},\"\":{\"cf\":\"dataxcn\",\"pjprdpwr\":\"datakkpyycpaw\"}}}],\"script\":\"fpcfjf\",\"scriptLines\":[\"gzawk\",\"yep\",\"yamnnidmdiawp\",\"xkzrn\"]},\"description\":\"kctd\",\"annotations\":[\"datasgwqpsqaz\",\"datahqodv\",\"datagcnbhcbmjk\",\"datati\"],\"folder\":{\"name\":\"ynts\"}}") - .toObject(Flowlet.class); - Assertions.assertEquals("kctd", model.description()); - Assertions.assertEquals("ynts", model.folder().name()); - Assertions.assertEquals("xlcskltez", model.sources().get(0).name()); - Assertions.assertEquals("ggg", model.sources().get(0).description()); - Assertions.assertEquals("fbgrdcgubsrt", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("fbodetresrgvts", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("tnxlkfhglhr", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("cvgllixdg", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("igaw", model.sinks().get(0).name()); - Assertions.assertEquals("zmxjqif", model.sinks().get(0).description()); - Assertions.assertEquals("jjsbcmlzaahzbhur", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("nuhhoqeqshav", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("drnzkjthf", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("gecpwgoljtzx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kpp", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("hmgpczqulpt", model.transformations().get(0).name()); - Assertions.assertEquals("vcpxtzhigqqbtimp", model.transformations().get(0).description()); - Assertions.assertEquals("blornsih", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("xyxvqban", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("foeajogsy", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("fpcfjf", model.script()); - Assertions.assertEquals("gzawk", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Flowlet model = new Flowlet().withDescription("kctd") - .withAnnotations(Arrays.asList("datasgwqpsqaz", "datahqodv", "datagcnbhcbmjk", "datati")) - .withFolder(new DataFlowFolder().withName("ynts")) - .withSources(Arrays.asList( - new DataFlowSource().withName("xlcskltez") - .withDescription("ggg") - .withDataset(new DatasetReference().withReferenceName("fbgrdcgubsrt") - .withParameters(mapOf("fcm", "datalperpilttjzgc"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("fbodetresrgvts") - .withParameters(mapOf("ai", "dataft", "pdxxzetwwz", "datamuqkevzgjypanhx"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tnxlkfhglhr") - .withDatasetParameters("datax") - .withParameters(mapOf("elqxovppqi", "datacrsnhpc", "l", "dataukklvzrlr")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("cvgllixdg") - .withParameters(mapOf("hu", "datagwewqkjvxprwpxso"))), - new DataFlowSource().withName("a") - .withDescription("qha") - .withDataset(new DatasetReference().withReferenceName("ntacih") - .withParameters(mapOf("aqgrv", "datagmipnmliqmvlbhik", "dtsdfjy", "datapomxpu", "mpyzgleo", - "dataesocwiqbuou", "bwwzvdajf", "datajsb"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("n") - .withParameters( - mapOf("jjrlhiqlwix", "dataaciq", "pg", "datatbouguxtnd", "alapdlndbe", "datattbas"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("kixvvlwy") - .withDatasetParameters("databb") - .withParameters(mapOf("gzfeuzj", "datazfjmsp", "mi", "datajmphfkyezolgj")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ovmozsayebraz") - .withParameters(mapOf("kipfsdyepf", "datapzbtzuyk", "ztgaz", "dataocmbezacf", "okctgkppgkqzkc", - "datayqejga", "cqvhoejgoiutgwrm", "datazmffngdyfcixrh"))), - new DataFlowSource().withName("hfvhuwzbxpcqz") - .withDescription("hotjec") - .withDataset(new DatasetReference().withReferenceName("mx") - .withParameters(mapOf("derltfokyksyim", "datarrskapbxwieexuy", "i", "dataccgrvkcxzznn"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("rsejegprkj") - .withParameters(mapOf("wgxql", "datarjmwvvbtuqkxxi", "qfkyfhiwvjaqu", "dataekotjgxi"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ynvskpajbmgeume") - .withDatasetParameters("datajbxcbccwkqmtxa") - .withParameters(mapOf("ilg", "dataiscr")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xtclhuulriqbyok") - .withParameters(mapOf("cdjwsu", "databzsxebrslttfy", "holhujbfw", "dataardnagttpufpbpgn", - "whdmcvhtbbz", "dataiplkysolsyjprxs"))), - new DataFlowSource().withName("cljkxpyl") - .withDescription("oxz") - .withDataset(new DatasetReference().withReferenceName("psyxjije") - .withParameters(mapOf("wjxildfkcefeyg", "datavrbkerdkdkgaw", "jo", "dataq"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("fmn") - .withParameters(mapOf("on", "datadjnxument", "xym", "datawhy"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("i") - .withDatasetParameters("datatowlhlsycoyb") - .withParameters(mapOf("qwmchqohtfxc", "datasqubfajcywh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ifmuadjnfsncsk") - .withParameters(mapOf("tlcgctjchfjvmy", "datashjgczetybnxg", "ebecuvlbefv", "dataj"))))) - .withSinks( - Arrays - .asList( - new DataFlowSink().withName("igaw") - .withDescription("zmxjqif") - .withDataset( - new DatasetReference().withReferenceName("jjsbcmlzaahzbhur") - .withParameters(mapOf("ojusuzgfjzcva", "datakolirhh", "ahfxwccok", "dataxoia", "c", - "dataxkukm"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("nuhhoqeqshav") - .withParameters(mapOf("yrqolnthbbnkgz", "datak"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("drnzkjthf") - .withDatasetParameters("datayjncjm") - .withParameters(mapOf("pfiddhl", "datayfj", "ocuselqk", "dataufzcqyjmqrfu", "sjmrkkhm", - "datasazrhxuddqmdtff", "jawh", "datadmdlgyqixokw")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("gecpwgoljtzx") - .withParameters(mapOf("pjxvazyjf", "datasdobygoogxq", "djnosdkvibf", "datacsa", - "trnzpducdaaktu", "datasgm", "oimyfpqd", "dataktz"))) - .withRejectedDataLinkedService(new LinkedServiceReference() - .withReferenceName("kpp") - .withParameters(mapOf("ffffg", "dataytfvpctfji", "ejjk", "datauhznwhvuldbk"))), - new DataFlowSink().withName("tjouwhldxwhi") - .withDescription("roqksmfxm") - .withDataset(new DatasetReference().withReferenceName("prstvkitbfj") - .withParameters( - mapOf("rqxw", "dataotnplfacqocc", "a", "datatjtdrhutfd", "eh", "datatxop"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("dkmdzgsszx") - .withParameters(mapOf("rlsirnccla", "datakbbxuh", "suxxc", "datavoyn", - "dsaidjanormovdxx", "databmyqjog"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tujmoil") - .withDatasetParameters("datawemhdee") - .withParameters(mapOf("egrhrh", "datalkyozdsfzj", "xvgjbfi", "dataslejtvxj")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("wimaaneakhtmh") - .withParameters(mapOf("vkhgv", "datayanrfvq", "ymhcctopuo", "dataogxkfnaoa", - "hquhczygxvhajp", "datayrnskb", "xqnwhscoz", "datae"))) - .withRejectedDataLinkedService( - new LinkedServiceReference().withReferenceName("mvgxsmpknpwir") - .withParameters(mapOf("dnmckap", "datafewxqouox", "cdgmoqu", "datahknqiijge", - "kyow", "dataqih"))), - new DataFlowSink().withName("w") - .withDescription("ujegqdtadra") - .withDataset(new DatasetReference().withReferenceName("ddhjkr") - .withParameters(mapOf("fpjbqggwe", "datazyhgsqtnqsktx"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("w") - .withParameters(mapOf("bf", "datamnc", "dfb", "datauscstunmlh"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("iichgjsysmvxodgw") - .withDatasetParameters("datakzsifcuvb") - .withParameters(mapOf("ec", "datagcwx")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xej") - .withParameters(mapOf("zsinqbdnddb", "datacywnfyszza", "jmyitrchwudl", "dataozsyvrm"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("eihtpmnoejh") - .withParameters(mapOf("rfgxkyd", "datamsibzo", "hl", "datamypgfqvmty", "jpewpyjlfx", - "datakxp", "qcrzgeuqxbpia", "datam"))), - new DataFlowSink().withName("siflikyypzkgxf") - .withDescription("myrqsdbpokszan") - .withDataset(new DatasetReference().withReferenceName("wgpterdiuw") - .withParameters(mapOf("tsdetjygowifcq", "datakskw", "gzyy", "dataolzkgys", "tvdxxhe", - "datazoxlvoc", "zbwaybfmdafbgym", "datagmlilwzghjhjvmab"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("napreojxrjnbsco") - .withParameters(mapOf("neychbjizq", "datavi"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nwdxzedpqlrfbor") - .withDatasetParameters("datap") - .withParameters(mapOf("pdjtaqh", "datafyzavfrbypicdb")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("pbqwuntobu") - .withParameters(mapOf("lw", "datazz"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("ydjufbnklbl") - .withParameters(mapOf("ytlbtlqhopxouvm", "dataegjwdabalfdxaglz"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("hmgpczqulpt") - .withDescription("vcpxtzhigqqbtimp") - .withDataset(new DatasetReference().withReferenceName("blornsih") - .withParameters(mapOf("fczmnn", "datadsmusuaawjakxwj"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("xyxvqban") - .withParameters(mapOf("mgm", "datatgirnb", "p", "datadorgmynltw"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("foeajogsy") - .withDatasetParameters("dataetamfddrvlkpzwb") - .withParameters(mapOf("edbiucvkhhwmjpjb", "dataecchdidrmuhkahm", "ppiybxv", - "dataeunxcqrrihufoi", "bgk", "datanzuz")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("lwgofm") - .withDescription("wrjlvzkl") - .withDataset(new DatasetReference().withReferenceName("bgikyjtkakvlbi") - .withParameters(mapOf("ptuoska", "datavpz", "y", "dataizjixwfgcd", "mdmuqoh", - "datakcxwnujvqynvavi", "wjc", "dataihraxqudd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("brhlhpvzadb") - .withParameters(mapOf("rmvzti", "dataninafhxrz"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("viqlluk") - .withDatasetParameters("datarcqxgcbvzarmqc") - .withParameters(mapOf("invagovjyhd", "datakst", "txnmxgnmguz", "dataxbrdvcehqwh", "kbd", - "datauwvorbalkjn", "gxiynecovagzk", "datalltqstqkqs")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("mehjnhjioti") - .withDescription("bbcngkeg") - .withDataset( - new DatasetReference().withReferenceName("y").withParameters(mapOf("zox", "databfetwily"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("xql") - .withParameters(mapOf("ewnahwkxjjmzt", "datalqownkiua", "dhdyswcrptveaj", "datalmsoodtmve"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vlgsrgkrfiz") - .withDatasetParameters("dataywlptyuqh") - .withParameters(mapOf("ykpfu", "datacs")) - .withAdditionalProperties(mapOf())))) - .withScript("fpcfjf") - .withScriptLines(Arrays.asList("gzawk", "yep", "yamnnidmdiawp", "xkzrn")); - model = BinaryData.fromObject(model).toObject(Flowlet.class); - Assertions.assertEquals("kctd", model.description()); - Assertions.assertEquals("ynts", model.folder().name()); - Assertions.assertEquals("xlcskltez", model.sources().get(0).name()); - Assertions.assertEquals("ggg", model.sources().get(0).description()); - Assertions.assertEquals("fbgrdcgubsrt", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("fbodetresrgvts", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("tnxlkfhglhr", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("cvgllixdg", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("igaw", model.sinks().get(0).name()); - Assertions.assertEquals("zmxjqif", model.sinks().get(0).description()); - Assertions.assertEquals("jjsbcmlzaahzbhur", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("nuhhoqeqshav", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("drnzkjthf", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("gecpwgoljtzx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kpp", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("hmgpczqulpt", model.transformations().get(0).name()); - Assertions.assertEquals("vcpxtzhigqqbtimp", model.transformations().get(0).description()); - Assertions.assertEquals("blornsih", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("xyxvqban", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("foeajogsy", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("fpcfjf", model.script()); - Assertions.assertEquals("gzawk", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java deleted file mode 100644 index 30e6dac4dd0f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FlowletTypePropertiesTests.java +++ /dev/null @@ -1,243 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.FlowletTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FlowletTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FlowletTypeProperties model = BinaryData.fromString( - "{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"mef\",\"parameters\":{\"bwgmjgrul\":\"datakmoogjrhs\"}},\"name\":\"fogxhcxnw\",\"description\":\"pfdzxcouzfwofw\",\"dataset\":{\"referenceName\":\"ukz\",\"parameters\":{\"glihezomucmq\":\"datazxsoednl\",\"xkgtlzlmtrlxcznn\":\"dataisnionetbzdrdpue\",\"mwt\":\"datazkbnbmxl\",\"qzusitoq\":\"datag\"}},\"linkedService\":{\"referenceName\":\"hf\",\"parameters\":{\"lisolntfxxc\":\"datajmlreesrfwsszvlc\",\"foygizmshxxba\":\"dataqmipfj\",\"toxjdzj\":\"datazabulnvgsk\",\"paydhfn\":\"datajznvhxqqmq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xmtf\",\"datasetParameters\":\"datak\",\"parameters\":{\"nlslcef\":\"datazmspamwbwm\",\"liwoyngu\":\"dataqdktwtkvihlp\",\"adpcmhjhausy\":\"datazhwv\",\"qs\":\"datakekymffztsilsc\"},\"\":{\"fymkouih\":\"datai\",\"zhogsmgbvmtdw\":\"dataeseuugci\",\"jnfveg\":\"dataqbe\"}}},{\"schemaLinkedService\":{\"referenceName\":\"btvkbi\",\"parameters\":{\"muhbcakznho\":\"datahtfgficudyhizpac\",\"nckidbjpg\":\"datahoitwhrjsdmmaz\"}},\"name\":\"hzqpxzbawkikcdgf\",\"description\":\"ssdpjeyoqxded\",\"dataset\":{\"referenceName\":\"f\",\"parameters\":{\"rshzzbgullcxiqqz\":\"dataagxsurej\",\"ouigdmfivjqte\":\"datakoxdupnamgl\"}},\"linkedService\":{\"referenceName\":\"qq\",\"parameters\":{\"rwqirvtktyhhmvf\":\"dataydkghpc\",\"krrwepgqvqokql\":\"datalapjajod\",\"bwlyvxc\":\"datajqgir\",\"stvzuzhasupml\":\"datapqvctsfaeuhwwsk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pgzvzqazvbka\",\"datasetParameters\":\"dataptgongruat\",\"parameters\":{\"jqhenigb\":\"datay\",\"yjdeayscseyd\":\"dataqnguba\"},\"\":{\"muwrx\":\"datamexmnvk\",\"wmcpmrrdlhvdvm\":\"datan\",\"hkdcl\":\"dataphbeaeqjz\",\"unerke\":\"datacroczf\"}}},{\"schemaLinkedService\":{\"referenceName\":\"xzs\",\"parameters\":{\"udl\":\"dataezbzu\",\"cgwfsgqkstyecu\":\"datavzske\"}},\"name\":\"yu\",\"description\":\"p\",\"dataset\":{\"referenceName\":\"davsjcfmazpz\",\"parameters\":{\"izekuvfrj\":\"datauzvcmcok\",\"ajbvbn\":\"dataucaonz\",\"idgzwdydamis\":\"datardemdidack\",\"xkqejtpjfojiunr\":\"datapztdivyk\"}},\"linkedService\":{\"referenceName\":\"hxuk\",\"parameters\":{\"o\":\"datakdtoiboancdr\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xu\",\"datasetParameters\":\"dataxonckbnlblfxlup\",\"parameters\":{\"izxzpzweghl\":\"dataq\",\"dve\":\"datawbogvgfklqiy\"},\"\":{\"vlrdsmovpi\":\"datasbfvdstrkzxsgtzn\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"noxaxnrqaqotnndx\",\"parameters\":{\"qmawzjdrpizfu\":\"datausdvrgp\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"yctsdbtqgkuj\",\"parameters\":{\"eurbtigapdyarik\":\"dataoxrqw\",\"kfqbriqulwwt\":\"dataejdpdfhtwm\",\"zokpoy\":\"datajmeqkvy\"}},\"name\":\"ohuen\",\"description\":\"aaj\",\"dataset\":{\"referenceName\":\"mpoejnglpwsada\",\"parameters\":{\"yjrmfqzwqd\":\"dataumxpezcoi\",\"xfqzkvemyzd\":\"dataxkeedcnwmy\",\"wtxzuisam\":\"dataczaqpqifdbmpt\",\"rmthsplwst\":\"datanatnizexroqsqjg\"}},\"linkedService\":{\"referenceName\":\"srgxfq\",\"parameters\":{\"sxyr\":\"dataiceovxgzw\",\"ik\":\"datajmtikes\",\"dseipnquwzxhrp\":\"dataohzixyqhfnkvycqq\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"dl\",\"datasetParameters\":\"datafktltdds\",\"parameters\":{\"saluzyi\":\"dataopnouhbqezkq\",\"dgsjsat\":\"datafcvcewbwq\",\"qmr\":\"datarncmazdfsqxh\"},\"\":{\"bwtdr\":\"dataarnpvgrsz\"}}},{\"schemaLinkedService\":{\"referenceName\":\"gz\",\"parameters\":{\"fi\":\"dataxzlh\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"cfculzj\",\"parameters\":{\"ldqpzf\":\"datapfywv\"}},\"name\":\"xsoxi\",\"description\":\"nj\",\"dataset\":{\"referenceName\":\"k\",\"parameters\":{\"w\":\"datacqsxytqqtcmiw\",\"ftpzcrryklleyn\":\"datasvnmeylajamcajy\"}},\"linkedService\":{\"referenceName\":\"nhkigg\",\"parameters\":{\"zphetxdqcm\":\"datawalhvubh\",\"qzjval\":\"datacta\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"bibiwks\",\"datasetParameters\":\"datagyxs\",\"parameters\":{\"wushlcxpbl\":\"datazvoikvntwczf\",\"zpfkis\":\"datalhh\"},\"\":{\"otxjqfiafcnlrtbf\":\"datadqzsaaoqdsgp\",\"ijolbuauktwieope\":\"datajzzca\",\"xq\":\"datae\",\"bkgx\":\"datawrswyiljp\"}}},{\"schemaLinkedService\":{\"referenceName\":\"yauxr\",\"parameters\":{\"ltmwytku\":\"dataobmc\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"qycmmoxf\",\"parameters\":{\"ali\":\"dataqgpwbmwhr\",\"tsbbibtic\":\"datarycgnwplrrbph\",\"eqbbewfcuqfpy\":\"datahqvumspbfs\",\"eyyjshcybwfuppox\":\"dataxmzrmtmvwitu\"}},\"name\":\"rcmvouujx\",\"description\":\"i\",\"dataset\":{\"referenceName\":\"oxrezsvavlrxik\",\"parameters\":{\"fncn\":\"dataywlunpipcwybs\",\"saebwfwhxorpwal\":\"dataatpf\",\"ojfccylhtrht\":\"datazwuge\",\"zp\":\"datavazjpwexcd\"}},\"linkedService\":{\"referenceName\":\"bzzxezm\",\"parameters\":{\"hlokfpmijpdvzv\":\"datajgpjeuxs\",\"rwyambhbafebzxfk\":\"databhwbdqufvcgnrgla\",\"nntrvrkps\":\"dataqutibhl\",\"lpyeu\":\"databduxvzmlghnys\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pdixqbolxv\",\"datasetParameters\":\"datayqqegatxgrznm\",\"parameters\":{\"bmgjymncjc\":\"datamtsdixchwk\",\"cqzoofjnqjsve\":\"datagair\"},\"\":{\"fqnwjjqx\":\"datahtleberpyljek\",\"pnowawonoehrguql\":\"datawkdnjrxgkrhwiehy\",\"pyrgu\":\"datafwafbjz\"}}}],\"transformations\":[{\"name\":\"zbkocbygvthrmxkb\",\"description\":\"wwdxomrawp\",\"dataset\":{\"referenceName\":\"eboozflyacagaed\",\"parameters\":{\"f\":\"dataqclmgdtwgabd\"}},\"linkedService\":{\"referenceName\":\"zbwjecooyvht\",\"parameters\":{\"gagdvcdqh\":\"datapelniibn\",\"df\":\"datatzbpyfao\",\"iz\":\"datahtncwmhjobzrfp\",\"gwhgkgsoau\":\"datacqhyftcvbz\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ssatfybipufdmx\",\"datasetParameters\":\"databd\",\"parameters\":{\"fqayopbtsix\":\"datasttuxv\"},\"\":{\"arxneibpgbr\":\"databhxmndztgsqjayq\"}}},{\"name\":\"bjdqkn\",\"description\":\"nmotpuwnnoh\",\"dataset\":{\"referenceName\":\"zngocfrjuypwyiul\",\"parameters\":{\"ttpfsmwgsgh\":\"dataosugkfha\"}},\"linkedService\":{\"referenceName\":\"cum\",\"parameters\":{\"uarigrj\":\"dataauqmllfeoth\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"lkqhvkrbzkua\",\"datasetParameters\":\"dataaxklpruulh\",\"parameters\":{\"ksgfyyskyekg\":\"dataoizwxvs\"},\"\":{\"wrtwletyveszr\":\"dataczvfcc\",\"mbbfnv\":\"datalhpdhwynctaczcnj\",\"tzo\":\"datax\",\"mn\":\"datankrtikl\"}}},{\"name\":\"hql\",\"description\":\"qksyiibhyxwbgbu\",\"dataset\":{\"referenceName\":\"vqdorbccqcd\",\"parameters\":{\"dtnagzlgpyaix\":\"dataojvlirknucosaw\",\"cybdueurgm\":\"datahzqjjtsmuydqfttk\",\"lojermhzicsbfd\":\"datadcpks\"}},\"linkedService\":{\"referenceName\":\"yaaknyukibxiglhp\",\"parameters\":{\"z\":\"dataxqtejpiilhvt\",\"k\":\"dataagjjn\",\"f\":\"dataylhyyx\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vqzrwtrd\",\"datasetParameters\":\"datacnvqeons\",\"parameters\":{\"ezyohxpthceopv\":\"dataxlw\",\"lc\":\"datavtwfvesobpbokhm\"},\"\":{\"lqhxkasmcolmu\":\"datarnggcjfw\",\"ygz\":\"datapyvaosdkluwzx\",\"nobguqisqsqkpdmi\":\"datatyevjhu\",\"pnml\":\"datay\"}}},{\"name\":\"iqcpszpmcvq\",\"description\":\"rdmvxyrxdhgv\",\"dataset\":{\"referenceName\":\"jbxaotcgbz\",\"parameters\":{\"lef\":\"datat\",\"dtmuuvd\":\"dataioyidoxznvg\"}},\"linkedService\":{\"referenceName\":\"sxmrszbknimxlp\",\"parameters\":{\"zutylcu\":\"datax\",\"mnb\":\"dataza\",\"bjmbnvynfaooeac\":\"dataqaeht\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"cglskakdd\",\"datasetParameters\":\"dataahzllrqmtlpb\",\"parameters\":{\"noiicsu\":\"dataoiduyqypff\"},\"\":{\"oluqwgusxxhdo\":\"databrjjtalxrdsjr\"}}}],\"script\":\"jwyblvtbdmvsb\",\"scriptLines\":[\"aelqpvekmkwjf\",\"o\"]}") - .toObject(FlowletTypeProperties.class); - Assertions.assertEquals("fogxhcxnw", model.sources().get(0).name()); - Assertions.assertEquals("pfdzxcouzfwofw", model.sources().get(0).description()); - Assertions.assertEquals("ukz", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("hf", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("xmtf", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("mef", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ohuen", model.sinks().get(0).name()); - Assertions.assertEquals("aaj", model.sinks().get(0).description()); - Assertions.assertEquals("mpoejnglpwsada", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("srgxfq", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("dl", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("noxaxnrqaqotnndx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("yctsdbtqgkuj", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("zbkocbygvthrmxkb", model.transformations().get(0).name()); - Assertions.assertEquals("wwdxomrawp", model.transformations().get(0).description()); - Assertions.assertEquals("eboozflyacagaed", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("zbwjecooyvht", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("ssatfybipufdmx", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("jwyblvtbdmvsb", model.script()); - Assertions.assertEquals("aelqpvekmkwjf", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FlowletTypeProperties model = new FlowletTypeProperties() - .withSources(Arrays.asList( - new DataFlowSource().withName("fogxhcxnw") - .withDescription("pfdzxcouzfwofw") - .withDataset(new DatasetReference().withReferenceName("ukz") - .withParameters(mapOf("glihezomucmq", "datazxsoednl", "xkgtlzlmtrlxcznn", - "dataisnionetbzdrdpue", "mwt", "datazkbnbmxl", "qzusitoq", "datag"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("hf") - .withParameters(mapOf("lisolntfxxc", "datajmlreesrfwsszvlc", "foygizmshxxba", "dataqmipfj", - "toxjdzj", "datazabulnvgsk", "paydhfn", "datajznvhxqqmq"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xmtf") - .withDatasetParameters("datak") - .withParameters(mapOf("nlslcef", "datazmspamwbwm", "liwoyngu", "dataqdktwtkvihlp", - "adpcmhjhausy", "datazhwv", "qs", "datakekymffztsilsc")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference() - .withReferenceName("mef") - .withParameters(mapOf("bwgmjgrul", "datakmoogjrhs"))), - new DataFlowSource().withName("hzqpxzbawkikcdgf") - .withDescription("ssdpjeyoqxded") - .withDataset(new DatasetReference().withReferenceName("f") - .withParameters(mapOf("rshzzbgullcxiqqz", "dataagxsurej", "ouigdmfivjqte", "datakoxdupnamgl"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("qq") - .withParameters(mapOf("rwqirvtktyhhmvf", "dataydkghpc", "krrwepgqvqokql", "datalapjajod", - "bwlyvxc", "datajqgir", "stvzuzhasupml", "datapqvctsfaeuhwwsk"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pgzvzqazvbka") - .withDatasetParameters("dataptgongruat") - .withParameters(mapOf("jqhenigb", "datay", "yjdeayscseyd", "dataqnguba")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("btvkbi") - .withParameters( - mapOf("muhbcakznho", "datahtfgficudyhizpac", "nckidbjpg", "datahoitwhrjsdmmaz"))), - new DataFlowSource().withName("yu") - .withDescription("p") - .withDataset(new DatasetReference().withReferenceName("davsjcfmazpz") - .withParameters(mapOf("izekuvfrj", "datauzvcmcok", "ajbvbn", "dataucaonz", "idgzwdydamis", - "datardemdidack", "xkqejtpjfojiunr", "datapztdivyk"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("hxuk") - .withParameters(mapOf("o", "datakdtoiboancdr"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xu") - .withDatasetParameters("dataxonckbnlblfxlup") - .withParameters(mapOf("izxzpzweghl", "dataq", "dve", "datawbogvgfklqiy")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xzs") - .withParameters(mapOf("udl", "dataezbzu", "cgwfsgqkstyecu", "datavzske"))))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("ohuen") - .withDescription("aaj") - .withDataset(new DatasetReference().withReferenceName("mpoejnglpwsada") - .withParameters(mapOf("yjrmfqzwqd", "dataumxpezcoi", "xfqzkvemyzd", "dataxkeedcnwmy", - "wtxzuisam", "dataczaqpqifdbmpt", "rmthsplwst", "datanatnizexroqsqjg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("srgxfq") - .withParameters(mapOf("sxyr", "dataiceovxgzw", "ik", "datajmtikes", "dseipnquwzxhrp", - "dataohzixyqhfnkvycqq"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("dl") - .withDatasetParameters("datafktltdds") - .withParameters( - mapOf("saluzyi", "dataopnouhbqezkq", "dgsjsat", "datafcvcewbwq", "qmr", "datarncmazdfsqxh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("noxaxnrqaqotnndx") - .withParameters(mapOf("qmawzjdrpizfu", "datausdvrgp"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("yctsdbtqgkuj") - .withParameters(mapOf("eurbtigapdyarik", "dataoxrqw", "kfqbriqulwwt", "dataejdpdfhtwm", - "zokpoy", "datajmeqkvy"))), - new DataFlowSink().withName("xsoxi") - .withDescription("nj") - .withDataset(new DatasetReference().withReferenceName("k") - .withParameters(mapOf("w", "datacqsxytqqtcmiw", "ftpzcrryklleyn", "datasvnmeylajamcajy"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("nhkigg") - .withParameters(mapOf("zphetxdqcm", "datawalhvubh", "qzjval", "datacta"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("bibiwks") - .withDatasetParameters("datagyxs") - .withParameters(mapOf("wushlcxpbl", "datazvoikvntwczf", "zpfkis", "datalhh")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("gz").withParameters(mapOf("fi", "dataxzlh"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("cfculzj") - .withParameters(mapOf("ldqpzf", "datapfywv"))), - new DataFlowSink().withName("rcmvouujx") - .withDescription("i") - .withDataset(new DatasetReference().withReferenceName("oxrezsvavlrxik") - .withParameters(mapOf("fncn", "dataywlunpipcwybs", "saebwfwhxorpwal", "dataatpf", - "ojfccylhtrht", "datazwuge", "zp", "datavazjpwexcd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("bzzxezm") - .withParameters(mapOf("hlokfpmijpdvzv", "datajgpjeuxs", "rwyambhbafebzxfk", - "databhwbdqufvcgnrgla", "nntrvrkps", "dataqutibhl", "lpyeu", "databduxvzmlghnys"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pdixqbolxv") - .withDatasetParameters("datayqqegatxgrznm") - .withParameters(mapOf("bmgjymncjc", "datamtsdixchwk", "cqzoofjnqjsve", "datagair")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("yauxr") - .withParameters(mapOf("ltmwytku", "dataobmc"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("qycmmoxf") - .withParameters(mapOf("ali", "dataqgpwbmwhr", "tsbbibtic", "datarycgnwplrrbph", "eqbbewfcuqfpy", - "datahqvumspbfs", "eyyjshcybwfuppox", "dataxmzrmtmvwitu"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("zbkocbygvthrmxkb") - .withDescription("wwdxomrawp") - .withDataset(new DatasetReference().withReferenceName("eboozflyacagaed") - .withParameters(mapOf("f", "dataqclmgdtwgabd"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("zbwjecooyvht") - .withParameters(mapOf("gagdvcdqh", "datapelniibn", "df", "datatzbpyfao", "iz", - "datahtncwmhjobzrfp", "gwhgkgsoau", "datacqhyftcvbz"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ssatfybipufdmx") - .withDatasetParameters("databd") - .withParameters(mapOf("fqayopbtsix", "datasttuxv")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("bjdqkn") - .withDescription("nmotpuwnnoh") - .withDataset(new DatasetReference().withReferenceName("zngocfrjuypwyiul") - .withParameters(mapOf("ttpfsmwgsgh", "dataosugkfha"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("cum") - .withParameters(mapOf("uarigrj", "dataauqmllfeoth"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("lkqhvkrbzkua") - .withDatasetParameters("dataaxklpruulh") - .withParameters(mapOf("ksgfyyskyekg", "dataoizwxvs")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("hql") - .withDescription("qksyiibhyxwbgbu") - .withDataset(new DatasetReference().withReferenceName("vqdorbccqcd") - .withParameters(mapOf("dtnagzlgpyaix", "dataojvlirknucosaw", "cybdueurgm", - "datahzqjjtsmuydqfttk", "lojermhzicsbfd", "datadcpks"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("yaaknyukibxiglhp") - .withParameters(mapOf("z", "dataxqtejpiilhvt", "k", "dataagjjn", "f", "dataylhyyx"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vqzrwtrd") - .withDatasetParameters("datacnvqeons") - .withParameters(mapOf("ezyohxpthceopv", "dataxlw", "lc", "datavtwfvesobpbokhm")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("iqcpszpmcvq") - .withDescription("rdmvxyrxdhgv") - .withDataset(new DatasetReference().withReferenceName("jbxaotcgbz") - .withParameters(mapOf("lef", "datat", "dtmuuvd", "dataioyidoxznvg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("sxmrszbknimxlp") - .withParameters(mapOf("zutylcu", "datax", "mnb", "dataza", "bjmbnvynfaooeac", "dataqaeht"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("cglskakdd") - .withDatasetParameters("dataahzllrqmtlpb") - .withParameters(mapOf("noiicsu", "dataoiduyqypff")) - .withAdditionalProperties(mapOf())))) - .withScript("jwyblvtbdmvsb") - .withScriptLines(Arrays.asList("aelqpvekmkwjf", "o")); - model = BinaryData.fromObject(model).toObject(FlowletTypeProperties.class); - Assertions.assertEquals("fogxhcxnw", model.sources().get(0).name()); - Assertions.assertEquals("pfdzxcouzfwofw", model.sources().get(0).description()); - Assertions.assertEquals("ukz", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("hf", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("xmtf", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("mef", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ohuen", model.sinks().get(0).name()); - Assertions.assertEquals("aaj", model.sinks().get(0).description()); - Assertions.assertEquals("mpoejnglpwsada", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("srgxfq", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("dl", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("noxaxnrqaqotnndx", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("yctsdbtqgkuj", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("zbkocbygvthrmxkb", model.transformations().get(0).name()); - Assertions.assertEquals("wwdxomrawp", model.transformations().get(0).description()); - Assertions.assertEquals("eboozflyacagaed", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("zbwjecooyvht", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("ssatfybipufdmx", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("jwyblvtbdmvsb", model.script()); - Assertions.assertEquals("aelqpvekmkwjf", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java deleted file mode 100644 index 6cdfc9e5df52..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTests.java +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.ForEachActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ForEachActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForEachActivity model = BinaryData.fromString( - "{\"type\":\"ForEach\",\"typeProperties\":{\"isSequential\":true,\"batchCount\":1022539711,\"items\":{\"value\":\"wdu\"},\"activities\":[{\"type\":\"Activity\",\"name\":\"krskqgokhpzvph\",\"description\":\"f\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"kdhopzymhrfwchi\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"qhlbsvyo\":\"dataezkwdexldo\"}},{\"activity\":\"iexmfeechltxa\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Succeeded\",\"Completed\"],\"\":{\"bmeksegdjq\":\"datafeouucgzifo\"}},{\"activity\":\"oc\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\",\"Skipped\"],\"\":{\"zcwjaqyvnol\":\"dataimenjhtwkn\",\"m\":\"datapz\",\"quiqkuxajl\":\"databss\"}}],\"userProperties\":[{\"name\":\"fzpkrnowexfykdi\",\"value\":\"datacwbnmaiqdjoir\"}],\"\":{\"smdsmzkjlhkco\":\"datammvjrxoidm\",\"yfiochfx\":\"dataxrs\",\"ybjynzo\":\"datae\",\"fmhypwglkvspbd\":\"dataeudhvszwgmpzbx\"}},{\"type\":\"Activity\",\"name\":\"ushzfnlqnr\",\"description\":\"mrvpswe\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"dhszkudl\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\",\"Skipped\"],\"\":{\"fxnokpkgrub\":\"datavdabgctmfntl\",\"hdkx\":\"datazgz\",\"rhgelsvo\":\"datahlinjerkdurch\",\"rqhqqkhzpwsa\":\"datavqjthluo\"}},{\"activity\":\"wsentrcdz\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Completed\",\"Failed\"],\"\":{\"rbbgl\":\"datamduwpqvdduvx\"}},{\"activity\":\"wfbgkyonadtywzrn\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"cfprioabqxwid\":\"dataptxmdadfygj\"}},{\"activity\":\"xeonnolrsmxt\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"uotexlpqydgfzet\":\"dataaxmo\"}}],\"userProperties\":[{\"name\":\"mnseigoalxwuq\",\"value\":\"dataczrskdovgkpq\"},{\"name\":\"zrxhghsmlxogim\",\"value\":\"datahxyx\"},{\"name\":\"lxawixdcy\",\"value\":\"datadqamiy\"}],\"\":{\"zco\":\"datazlbcamdzoauvwjkg\",\"aqxztywzaq\":\"datawcnnzacqludq\",\"zlzpowsefpg\":\"datafqtstmyfebb\",\"pzbsytwt\":\"dataw\"}},{\"type\":\"Activity\",\"name\":\"vcdtsvgyzmafq\",\"description\":\"wupuubyvwejy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hrxoekyf\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"jxjaaocjlwco\":\"datapdgnsmhrpzbyudko\",\"vmzxrhve\":\"datawcrextdymkzbliu\",\"guvqghuehgcqhlfq\":\"datangzjxjbklta\",\"r\":\"datamjldeluqqnf\"}}],\"userProperties\":[{\"name\":\"luomaltvvp\",\"value\":\"datadhtdapkdahyn\"},{\"name\":\"tixrkjogyqrmt\",\"value\":\"dataiclsxuibyfylhf\"}],\"\":{\"cwuz\":\"dataauqylmlunquvlva\",\"gynqedn\":\"datalx\",\"qcxzdlfs\":\"dataidacskul\"}},{\"type\":\"Activity\",\"name\":\"ubjv\",\"description\":\"rcrknnruceuwfmrc\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"bzhto\",\"dependencyConditions\":[\"Failed\"],\"\":{\"d\":\"dataothewokprvpkd\",\"pcghcf\":\"datadsmavtndgfmtxim\"}}],\"userProperties\":[{\"name\":\"qefdtpurgerybdi\",\"value\":\"datajeea\"},{\"name\":\"werukuoeyyxcd\",\"value\":\"datalkkglahdwxyite\"},{\"name\":\"foek\",\"value\":\"dataxhjvtfzaqnoqgfyo\"},{\"name\":\"ohux\",\"value\":\"datafxkjrhgwgsba\"}],\"\":{\"ifsguolfku\":\"datakqvku\"}}]},\"name\":\"mwezsirhpigq\",\"description\":\"wdrcjyywbssli\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"bzxidqqesln\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Succeeded\",\"Completed\"],\"\":{\"yxamyjh\":\"datarlzzztgzf\",\"sjblqmddtpwil\":\"datarzu\"}},{\"activity\":\"gjoboqt\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\"],\"\":{\"fmtm\":\"datawgcuv\",\"gtskolbjylostrc\":\"datapvoazgtlxgtusw\"}},{\"activity\":\"qocerb\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Succeeded\"],\"\":{\"ean\":\"datazigelphauldals\"}},{\"activity\":\"esw\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Completed\",\"Completed\"],\"\":{\"cjulunbtufic\":\"datafprskxhghvgvi\",\"oabma\":\"datapibnjpivoizxk\",\"licivod\":\"datajlahd\",\"bmjheyntsdwxpa\":\"datada\"}}],\"userProperties\":[{\"name\":\"grjkgko\",\"value\":\"datauedm\"},{\"name\":\"ocrkfygjywpkb\",\"value\":\"datavjyenwvgvhhou\"}],\"\":{\"oii\":\"dataihwlkflj\"}}") - .toObject(ForEachActivity.class); - Assertions.assertEquals("mwezsirhpigq", model.name()); - Assertions.assertEquals("wdrcjyywbssli", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("bzxidqqesln", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("grjkgko", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1022539711, model.batchCount()); - Assertions.assertEquals("wdu", model.items().value()); - Assertions.assertEquals("krskqgokhpzvph", model.activities().get(0).name()); - Assertions.assertEquals("f", 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("kdhopzymhrfwchi", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fzpkrnowexfykdi", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivity model = new ForEachActivity().withName("mwezsirhpigq") - .withDescription("wdrcjyywbssli") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("bzxidqqesln") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gjoboqt") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qocerb") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("esw") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("grjkgko").withValue("datauedm"), - new UserProperty().withName("ocrkfygjywpkb").withValue("datavjyenwvgvhhou"))) - .withIsSequential(true) - .withBatchCount(1022539711) - .withItems(new Expression().withValue("wdu")) - .withActivities(Arrays.asList( - new Activity().withName("krskqgokhpzvph") - .withDescription("f") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("kdhopzymhrfwchi") - .withDependencyConditions(Arrays.asList( - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("iexmfeechltxa") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("oc") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("fzpkrnowexfykdi").withValue("datacwbnmaiqdjoir"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("ushzfnlqnr") - .withDescription("mrvpswe") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("dhszkudl") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wsentrcdz") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wfbgkyonadtywzrn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xeonnolrsmxt") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("mnseigoalxwuq").withValue("dataczrskdovgkpq"), - new UserProperty().withName("zrxhghsmlxogim").withValue("datahxyx"), - new UserProperty().withName("lxawixdcy").withValue("datadqamiy"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("vcdtsvgyzmafq") - .withDescription("wupuubyvwejy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("hrxoekyf") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("luomaltvvp").withValue("datadhtdapkdahyn"), - new UserProperty().withName("tixrkjogyqrmt").withValue("dataiclsxuibyfylhf"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("ubjv") - .withDescription("rcrknnruceuwfmrc") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("bzhto") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qefdtpurgerybdi").withValue("datajeea"), - new UserProperty().withName("werukuoeyyxcd").withValue("datalkkglahdwxyite"), - new UserProperty().withName("foek").withValue("dataxhjvtfzaqnoqgfyo"), - new UserProperty().withName("ohux").withValue("datafxkjrhgwgsba"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(ForEachActivity.class); - Assertions.assertEquals("mwezsirhpigq", model.name()); - Assertions.assertEquals("wdrcjyywbssli", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("bzxidqqesln", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("grjkgko", model.userProperties().get(0).name()); - Assertions.assertEquals(true, model.isSequential()); - Assertions.assertEquals(1022539711, model.batchCount()); - Assertions.assertEquals("wdu", model.items().value()); - Assertions.assertEquals("krskqgokhpzvph", model.activities().get(0).name()); - Assertions.assertEquals("f", 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("kdhopzymhrfwchi", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("fzpkrnowexfykdi", 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 987c24b22cc6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ForEachActivityTypePropertiesTests.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.ForEachActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ForEachActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForEachActivityTypeProperties model = BinaryData.fromString( - "{\"isSequential\":false,\"batchCount\":1136169942,\"items\":{\"value\":\"mjoycyvxbrthw\"},\"activities\":[{\"type\":\"Activity\",\"name\":\"trw\",\"description\":\"ofoqrvnhcuoghvk\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"pyfjahwypdh\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Succeeded\",\"Succeeded\"],\"\":{\"xtg\":\"dataoxsga\",\"ftlbtotu\":\"dataxmxgqgquulyrtk\"}},{\"activity\":\"zasrwoxumnucqew\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\"],\"\":{\"nz\":\"datamvcxyuemridcy\",\"ydwgq\":\"datae\",\"vn\":\"datasrlhxfmvngdrnt\"}},{\"activity\":\"hnh\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"qczoqp\":\"datarjyprcojwiigtd\",\"ntihlnay\":\"datapibeiftmozof\"}}],\"userProperties\":[{\"name\":\"byhouqug\",\"value\":\"datacorgnxmnvenno\"},{\"name\":\"jixoq\",\"value\":\"datajbsagwlp\"},{\"name\":\"qfmrimwlparhwx\",\"value\":\"datai\"},{\"name\":\"ktnmwlklqhwy\",\"value\":\"dataieoefwnj\"}],\"\":{\"oezcabfylsuiy\":\"datahpgavrop\",\"jqeigpylpm\":\"databildwqlxn\",\"xswiindyurwz\":\"datawdvdtzdrv\",\"lpbvponxhszrot\":\"dataxkhacvsjambtvcd\"}},{\"type\":\"Activity\",\"name\":\"nnkbekzkaoonbzi\",\"description\":\"qyzrtawjkjzvvkeh\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"bs\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Skipped\",\"Succeeded\"],\"\":{\"uuanrjcrpxlf\":\"datamtqfrdfoiqfvc\",\"kmlfcgk\":\"dataytjmlroxvsclmt\",\"bestyy\":\"dataeitphzuaznsbvu\",\"impuwgrny\":\"dataljo\"}}],\"userProperties\":[{\"name\":\"zsekfudranmdcfw\",\"value\":\"datawzjhfauubcvn\"},{\"name\":\"fxwhicacmviclhom\",\"value\":\"datahaxtegrufbz\"}],\"\":{\"qdfjeuwwq\":\"datajfzbavqmmk\",\"plbzyjuqvyw\":\"datatczpsk\",\"hbosax\":\"datalccxdctkh\",\"exgxn\":\"dataemspnzqohh\"}},{\"type\":\"Activity\",\"name\":\"fodxiy\",\"description\":\"fottycfostzd\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"bhahxs\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"hujgrb\":\"datahtxgjzif\",\"gxjoimozsef\":\"datamz\"}}],\"userProperties\":[{\"name\":\"r\",\"value\":\"databdttcfwjzquwjg\"}],\"\":{\"orzbkfefxvg\":\"datalola\",\"ijzrtlfngonhmblk\":\"datakjbhsnyycya\"}},{\"type\":\"Activity\",\"name\":\"el\",\"description\":\"ki\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ynencaf\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"pmvxcrzpdqw\":\"datargwxgczwxyghs\"}},{\"activity\":\"chygbeofiwbtfkiu\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"fkukaa\":\"datasxjrafh\",\"gqhefeasm\":\"datawnqijphhuvflg\",\"pcxxpyrtajlyde\":\"datadguodoujpwqbotlv\"}}],\"userProperties\":[{\"name\":\"vrqruympo\",\"value\":\"datauxbqdwbjh\"},{\"name\":\"jzvceyxvfoyuyk\",\"value\":\"datadggyhpuhcc\"},{\"name\":\"ehndbutpt\",\"value\":\"dataabdkbkblop\"},{\"name\":\"morfzuhvycdndcz\",\"value\":\"datazsfvri\"}],\"\":{\"qcqinvkmkbtpbw\":\"datalndd\",\"drrmbxshraep\":\"datahzmqabvwbgsan\",\"qtzh\":\"datalhzme\"}}]}") - .toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(false, model.isSequential()); - Assertions.assertEquals(1136169942, model.batchCount()); - Assertions.assertEquals("mjoycyvxbrthw", model.items().value()); - Assertions.assertEquals("trw", model.activities().get(0).name()); - Assertions.assertEquals("ofoqrvnhcuoghvk", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("pyfjahwypdh", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("byhouqug", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForEachActivityTypeProperties model = new ForEachActivityTypeProperties().withIsSequential(false) - .withBatchCount(1136169942) - .withItems(new Expression().withValue("mjoycyvxbrthw")) - .withActivities(Arrays.asList( - new Activity().withName("trw") - .withDescription("ofoqrvnhcuoghvk") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("pyfjahwypdh") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zasrwoxumnucqew") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hnh") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("byhouqug").withValue("datacorgnxmnvenno"), - new UserProperty().withName("jixoq").withValue("datajbsagwlp"), - new UserProperty().withName("qfmrimwlparhwx").withValue("datai"), - new UserProperty().withName("ktnmwlklqhwy").withValue("dataieoefwnj"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("nnkbekzkaoonbzi") - .withDescription("qyzrtawjkjzvvkeh") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("bs") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("zsekfudranmdcfw").withValue("datawzjhfauubcvn"), - new UserProperty().withName("fxwhicacmviclhom").withValue("datahaxtegrufbz"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("fodxiy") - .withDescription("fottycfostzd") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("bhahxs") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("r").withValue("databdttcfwjzquwjg"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("el") - .withDescription("ki") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ynencaf") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("chygbeofiwbtfkiu") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("vrqruympo").withValue("datauxbqdwbjh"), - new UserProperty().withName("jzvceyxvfoyuyk").withValue("datadggyhpuhcc"), - new UserProperty().withName("ehndbutpt").withValue("dataabdkbkblop"), - new UserProperty().withName("morfzuhvycdndcz").withValue("datazsfvri"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(ForEachActivityTypeProperties.class); - Assertions.assertEquals(false, model.isSequential()); - Assertions.assertEquals(1136169942, model.batchCount()); - Assertions.assertEquals("mjoycyvxbrthw", model.items().value()); - Assertions.assertEquals("trw", model.activities().get(0).name()); - Assertions.assertEquals("ofoqrvnhcuoghvk", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("pyfjahwypdh", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("byhouqug", 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 74b742cc4db2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatReadSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class FormatReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FormatReadSettings model = BinaryData - .fromString("{\"type\":\"FormatReadSettings\",\"\":{\"t\":\"datadmhr\",\"oqdibygrqcid\":\"datayulkoeps\"}}") - .toObject(FormatReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatReadSettings model - = new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings")); - model = BinaryData.fromObject(model).toObject(FormatReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java deleted file mode 100644 index 9ac1527a2921..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FormatWriteSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FormatWriteSettings; -import java.util.HashMap; -import java.util.Map; - -public final class FormatWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FormatWriteSettings model - = BinaryData.fromString("{\"type\":\"FormatWriteSettings\",\"\":{\"uyqdj\":\"datawawymahboind\"}}") - .toObject(FormatWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FormatWriteSettings model - = new FormatWriteSettings().withAdditionalProperties(mapOf("type", "FormatWriteSettings")); - model = BinaryData.fromObject(model).toObject(FormatWriteSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java deleted file mode 100644 index 02d3c7a01683..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpReadSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FtpReadSettings; - -public final class FtpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FtpReadSettings model = BinaryData.fromString( - "{\"type\":\"FtpReadSettings\",\"recursive\":\"datammzxpsrlbppjq\",\"wildcardFolderPath\":\"datacpdaoskgtalljsoa\",\"wildcardFileName\":\"datajjklmpbgrosxfdx\",\"enablePartitionDiscovery\":\"datab\",\"partitionRootPath\":\"databbhluvdceouevno\",\"deleteFilesAfterCompletion\":\"datalreiw\",\"fileListPath\":\"datakiegtaenal\",\"useBinaryTransfer\":\"datataasqol\",\"disableChunking\":\"dataodbhgxba\",\"maxConcurrentConnections\":\"dataorqkmi\",\"disableMetricsCollection\":\"datag\",\"\":{\"iynlslg\":\"dataqwyxbatr\",\"pu\":\"dataifkdsclqwkddg\"}}") - .toObject(FtpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpReadSettings model = new FtpReadSettings().withMaxConcurrentConnections("dataorqkmi") - .withDisableMetricsCollection("datag") - .withRecursive("datammzxpsrlbppjq") - .withWildcardFolderPath("datacpdaoskgtalljsoa") - .withWildcardFileName("datajjklmpbgrosxfdx") - .withEnablePartitionDiscovery("datab") - .withPartitionRootPath("databbhluvdceouevno") - .withDeleteFilesAfterCompletion("datalreiw") - .withFileListPath("datakiegtaenal") - .withUseBinaryTransfer("datataasqol") - .withDisableChunking("dataodbhgxba"); - model = BinaryData.fromObject(model).toObject(FtpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java deleted file mode 100644 index ba3fd0f443c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/FtpServerLocationTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FtpServerLocation; - -public final class FtpServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FtpServerLocation model = BinaryData.fromString( - "{\"type\":\"FtpServerLocation\",\"folderPath\":\"datamssgpgvokyejidbd\",\"fileName\":\"datasqunycwztlv\",\"\":{\"cauxuvavcpfpdofu\":\"datanmrkkyjtrepwpwf\"}}") - .toObject(FtpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FtpServerLocation model - = new FtpServerLocation().withFolderPath("datamssgpgvokyejidbd").withFileName("datasqunycwztlv"); - model = BinaryData.fromObject(model).toObject(FtpServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java deleted file mode 100644 index 0c933c4130d5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GenericDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; - -public final class GenericDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GenericDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datajijzqjhljsazm\"}") - .toObject(GenericDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GenericDatasetTypeProperties model = new GenericDatasetTypeProperties().withTableName("datajijzqjhljsazm"); - model = BinaryData.fromObject(model).toObject(GenericDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java deleted file mode 100644 index 140624b93e0f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetDataFactoryOperationStatusResponseTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GetDataFactoryOperationStatusResponse; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetDataFactoryOperationStatusResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetDataFactoryOperationStatusResponse model = BinaryData.fromString( - "{\"status\":\"xhhllxricct\",\"\":{\"eiyglesrwvaexhdc\":\"datauqqoaj\",\"hdmljz\":\"datarceqnkbrupob\",\"nzpphepife\":\"datacvumepjpbi\"}}") - .toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("xhhllxricct", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetDataFactoryOperationStatusResponse model - = new GetDataFactoryOperationStatusResponse().withStatus("xhhllxricct").withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(GetDataFactoryOperationStatusResponse.class); - Assertions.assertEquals("xhhllxricct", model.status()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java deleted file mode 100644 index e648cbcaf306..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetMetadataActivityTests.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import com.azure.resourcemanager.datafactory.models.GetMetadataActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GetMetadataActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetMetadataActivity model = BinaryData.fromString( - "{\"type\":\"GetMetadata\",\"typeProperties\":{\"dataset\":{\"referenceName\":\"mosqhnwb\",\"parameters\":{\"hixcivjokauj\":\"datafsqruyqaqemozj\",\"wvirbshyulkhep\":\"datapclmkeswtkhfcnce\",\"bxqzczcc\":\"datamegczcpoydaifx\"}},\"fieldList\":[\"dataig\",\"datazpl\",\"dataaoiid\"],\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datasqdrugvanp\",\"disableMetricsCollection\":\"dataqrwlseeuy\",\"\":{\"pvytrzsqbckqgte\":\"datawovgwqzzugsbwqro\",\"kgyuviqeskindgm\":\"datainznkvyicj\",\"if\":\"dataebuvyuzzwphu\",\"ueikwvco\":\"dataxrnsyv\"}},\"formatSettings\":{\"type\":\"FormatReadSettings\",\"\":{\"kinutdhbmizb\":\"datamxcthrrx\"}}},\"linkedServiceName\":{\"referenceName\":\"jezufxuugvd\",\"parameters\":{\"kbmvnvfgwgo\":\"dataoycpystcmavl\",\"zoxhazafmq\":\"datafdyk\",\"ammpeakdhebzquq\":\"databifpc\",\"fjwm\":\"datagjxklojdydha\"}},\"policy\":{\"timeout\":\"datagjihnxoxjghumv\",\"retry\":\"databhogllvfealcju\",\"retryIntervalInSeconds\":1732670055,\"secureInput\":false,\"secureOutput\":false,\"\":{\"nxsyh\":\"datanovbgdbao\",\"inrymzlq\":\"datailqojdmzejcpzzq\",\"mvg\":\"datarcivxaq\"}},\"name\":\"qtkcvnyikyexwfsi\",\"description\":\"x\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ztns\",\"dependencyConditions\":[\"Failed\"],\"\":{\"h\":\"datakklz\",\"tcxhpntewvfvs\":\"datavtivefsr\",\"dervnnfieaqbvg\":\"datadmcoxobrv\",\"ubqemrxmr\":\"dataehggeeagbrslbzc\"}},{\"activity\":\"be\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"vgagdnzvo\":\"datawqnwxohb\",\"zcpifasifdtiocsf\":\"datarnqnurunky\",\"borynmadtyhm\":\"datacyyicascvcmthu\"}},{\"activity\":\"phoem\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"bqij\":\"dataphncf\",\"xhmtxpxdtmrwjk\":\"dataqfoatqnhr\",\"bkdhwadnccunrviq\":\"datatiznvijdtmjy\",\"sliou\":\"dataz\"}}],\"userProperties\":[{\"name\":\"xqnpnpggbu\",\"value\":\"datajw\"},{\"name\":\"rgq\",\"value\":\"datadnmuirtkqztkx\"},{\"name\":\"hixfuuzaczmejf\",\"value\":\"dataiegpdhityt\"}],\"\":{\"chbvejgfx\":\"datawdskocmqhzys\",\"cyngdgka\":\"datajqevmzhk\",\"hrlb\":\"datanxy\"}}") - .toObject(GetMetadataActivity.class); - Assertions.assertEquals("qtkcvnyikyexwfsi", model.name()); - Assertions.assertEquals("x", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ztns", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xqnpnpggbu", model.userProperties().get(0).name()); - Assertions.assertEquals("jezufxuugvd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1732670055, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("mosqhnwb", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivity model = new GetMetadataActivity().withName("qtkcvnyikyexwfsi") - .withDescription("x") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ztns") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("be") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("phoem") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("xqnpnpggbu").withValue("datajw"), - new UserProperty().withName("rgq").withValue("datadnmuirtkqztkx"), - new UserProperty().withName("hixfuuzaczmejf").withValue("dataiegpdhityt"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jezufxuugvd") - .withParameters(mapOf("kbmvnvfgwgo", "dataoycpystcmavl", "zoxhazafmq", "datafdyk", "ammpeakdhebzquq", - "databifpc", "fjwm", "datagjxklojdydha"))) - .withPolicy(new ActivityPolicy().withTimeout("datagjihnxoxjghumv") - .withRetry("databhogllvfealcju") - .withRetryIntervalInSeconds(1732670055) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withDataset(new DatasetReference().withReferenceName("mosqhnwb") - .withParameters(mapOf("hixcivjokauj", "datafsqruyqaqemozj", "wvirbshyulkhep", "datapclmkeswtkhfcnce", - "bxqzczcc", "datamegczcpoydaifx"))) - .withFieldList(Arrays.asList("dataig", "datazpl", "dataaoiid")) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datasqdrugvanp") - .withDisableMetricsCollection("dataqrwlseeuy") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivity.class); - Assertions.assertEquals("qtkcvnyikyexwfsi", model.name()); - Assertions.assertEquals("x", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ztns", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("xqnpnpggbu", model.userProperties().get(0).name()); - Assertions.assertEquals("jezufxuugvd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1732670055, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("mosqhnwb", 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 000c931b0e1d..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\":\"hd\",\"parameters\":{\"edgwghqqiu\":\"datadlvcbcxbiisnhqqq\",\"vroopksmjpopi\":\"dataetmqzuenbll\",\"wqspnrcuvlfzdk\":\"dataaxk\"}},\"fieldList\":[\"dataupacahlsavin\",\"dataorabspfinyijm\",\"dataqgmhfvlbd\",\"datadhedmfidro\"],\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataucwmdmbysvqbg\",\"disableMetricsCollection\":\"datafzheyxccxeusioaw\",\"\":{\"icwbquppkzuxsbbm\":\"datae\",\"y\":\"datafut\",\"l\":\"datahelyopobg\",\"ffgtqhghygz\":\"dataukiwjezadkfmp\"}},\"formatSettings\":{\"type\":\"FormatReadSettings\",\"\":{\"ucxmybuqjpgbi\":\"datargmlaerx\",\"zfyin\":\"dataaxga\"}}}") - .toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("hd", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetMetadataActivityTypeProperties model = new GetMetadataActivityTypeProperties() - .withDataset(new DatasetReference().withReferenceName("hd") - .withParameters(mapOf("edgwghqqiu", "datadlvcbcxbiisnhqqq", "vroopksmjpopi", "dataetmqzuenbll", - "wqspnrcuvlfzdk", "dataaxk"))) - .withFieldList(Arrays.asList("dataupacahlsavin", "dataorabspfinyijm", "dataqgmhfvlbd", "datadhedmfidro")) - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataucwmdmbysvqbg") - .withDisableMetricsCollection("datafzheyxccxeusioaw") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new FormatReadSettings().withAdditionalProperties(mapOf("type", "FormatReadSettings"))); - model = BinaryData.fromObject(model).toObject(GetMetadataActivityTypeProperties.class); - Assertions.assertEquals("hd", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java deleted file mode 100644 index f13cc9b45f10..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GetSsisObjectMetadataRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetSsisObjectMetadataRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetSsisObjectMetadataRequest model = BinaryData.fromString("{\"metadataPath\":\"jriplrbpbewtghf\"}") - .toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("jriplrbpbewtghf", model.metadataPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetSsisObjectMetadataRequest model = new GetSsisObjectMetadataRequest().withMetadataPath("jriplrbpbewtghf"); - model = BinaryData.fromObject(model).toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("jriplrbpbewtghf", model.metadataPath()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java deleted file mode 100644 index 2529828e8318..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterListResponseTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner; -import com.azure.resourcemanager.datafactory.models.GlobalParameterListResponse; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"n\":{\"type\":\"Float\",\"value\":\"datattuiaclkiexhajl\"},\"gbpvnwswmtxkyct\":{\"type\":\"Array\",\"value\":\"dataiqfyuttdi\"},\"l\":{\"type\":\"Object\",\"value\":\"datagzwx\"}},\"name\":\"cvogygzyvne\",\"type\":\"aifghtmoqqt\",\"etag\":\"fhzbkr\",\"id\":\"jjavfq\"}],\"nextLink\":\"hnqoewdo\"}") - .toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("jjavfq", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, model.value().get(0).properties().get("n").type()); - Assertions.assertEquals("hnqoewdo", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterListResponse model = new GlobalParameterListResponse() - .withValue(Arrays.asList(new GlobalParameterResourceInner().withId("jjavfq") - .withProperties(mapOf("n", - new GlobalParameterSpecification().withType(GlobalParameterType.FLOAT) - .withValue("datattuiaclkiexhajl"), - "gbpvnwswmtxkyct", - new GlobalParameterSpecification().withType(GlobalParameterType.ARRAY).withValue("dataiqfyuttdi"), - "l", - new GlobalParameterSpecification().withType(GlobalParameterType.OBJECT).withValue("datagzwx"))))) - .withNextLink("hnqoewdo"); - model = BinaryData.fromObject(model).toObject(GlobalParameterListResponse.class); - Assertions.assertEquals("jjavfq", model.value().get(0).id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, model.value().get(0).properties().get("n").type()); - Assertions.assertEquals("hnqoewdo", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java deleted file mode 100644 index 662e1812a381..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterResourceInnerTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GlobalParameterResourceInner; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterResourceInner model = BinaryData.fromString( - "{\"properties\":{\"b\":{\"type\":\"Int\",\"value\":\"dataetesypvidbztjhqt\"}},\"name\":\"nynkbwet\",\"type\":\"uhpsprkzyaupia\",\"etag\":\"xnafbw\",\"id\":\"oohtuovmaonurjtu\"}") - .toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("oohtuovmaonurjtu", model.id()); - Assertions.assertEquals(GlobalParameterType.INT, model.properties().get("b").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterResourceInner model = new GlobalParameterResourceInner().withId("oohtuovmaonurjtu") - .withProperties(mapOf("b", new GlobalParameterSpecification().withType(GlobalParameterType.INT) - .withValue("dataetesypvidbztjhqt"))); - model = BinaryData.fromObject(model).toObject(GlobalParameterResourceInner.class); - Assertions.assertEquals("oohtuovmaonurjtu", model.id()); - Assertions.assertEquals(GlobalParameterType.INT, model.properties().get("b").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java deleted file mode 100644 index 4c2a63edd827..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParameterSpecificationTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.GlobalParameterType; -import org.junit.jupiter.api.Assertions; - -public final class GlobalParameterSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalParameterSpecification model = BinaryData.fromString("{\"type\":\"String\",\"value\":\"datarm\"}") - .toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.STRING, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalParameterSpecification model - = new GlobalParameterSpecification().withType(GlobalParameterType.STRING).withValue("datarm"); - model = BinaryData.fromObject(model).toObject(GlobalParameterSpecification.class); - Assertions.assertEquals(GlobalParameterType.STRING, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 8b6fd8bdffe2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":{\"cdzul\":{\"type\":\"Float\",\"value\":\"datadvey\"},\"xzszhvjfijxthojb\":{\"type\":\"String\",\"value\":\"datafxedm\"},\"qyapn\":{\"type\":\"Int\",\"value\":\"dataipc\"},\"dwdaugdgvshf\":{\"type\":\"Int\",\"value\":\"databyhdtjynus\"}},\"name\":\"ii\",\"type\":\"ki\",\"etag\":\"okjuehcrywwfnsr\",\"id\":\"jadnwafjiba\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - GlobalParameterResource response = manager.globalParameters() - .define("agsx") - .withExistingFactory("jh", "emlw") - .withProperties(mapOf("utu", - new GlobalParameterSpecification().withType(GlobalParameterType.OBJECT).withValue("dataaugenpipptpre"))) - .create(); - - Assertions.assertEquals("jadnwafjiba", response.id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, response.properties().get("cdzul").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 a9e611ec6589..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.globalParameters().deleteWithResponse("g", "xrifyr", "prgiaeqcgdl", 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 3ffbbea8193e..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":{\"r\":{\"type\":\"Float\",\"value\":\"datarphdakwwiezeut\"}},\"name\":\"wmo\",\"type\":\"qlwzatvnejlocmql\",\"etag\":\"lpqlwtxshvozh\",\"id\":\"lmwvcehkvafcjekt\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - GlobalParameterResource response = manager.globalParameters() - .getWithResponse("dpqkcbflzzd", "frewirrsuf", "tmseuqg", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lmwvcehkvafcjekt", response.id()); - Assertions.assertEquals(GlobalParameterType.FLOAT, response.properties().get("r").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 9e840e98e60b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GlobalParametersListByFactoryMockTests.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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":{\"cwngg\":{\"type\":\"Int\",\"value\":\"datamjxxov\"},\"papzb\":{\"type\":\"Int\",\"value\":\"datajbgy\"},\"izoamttxyddkvi\":{\"type\":\"Float\",\"value\":\"datafuac\"}},\"name\":\"bbn\",\"type\":\"gzlicytfpy\",\"etag\":\"ednous\",\"id\":\"ljl\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.globalParameters().listByFactory("ukveknwldqjlgzc", "rh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ljl", response.iterator().next().id()); - Assertions.assertEquals(GlobalParameterType.INT, response.iterator().next().properties().get("cwngg").type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java deleted file mode 100644 index 97f4ea5f05f9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsObjectDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleAdWordsObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleAdWordsObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleAdWordsObjectDataset model = BinaryData.fromString( - "{\"type\":\"GoogleAdWordsObject\",\"typeProperties\":{\"tableName\":\"datainrkj\"},\"description\":\"gzfsu\",\"structure\":\"dataybhozlsbufnhb\",\"schema\":\"datantpoe\",\"linkedServiceName\":{\"referenceName\":\"ytrsljzmzui\",\"parameters\":{\"p\":\"datagsxzn\",\"ma\":\"datamkqbylbbnjldicq\"}},\"parameters\":{\"fzoidy\":{\"type\":\"Int\",\"defaultValue\":\"dataenitvkyahfo\"}},\"annotations\":[\"datarev\"],\"folder\":{\"name\":\"kfalw\"},\"\":{\"ucnusnylfhicrj\":\"datachcayvqbeq\"}}") - .toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("gzfsu", model.description()); - Assertions.assertEquals("ytrsljzmzui", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("fzoidy").type()); - Assertions.assertEquals("kfalw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsObjectDataset model = new GoogleAdWordsObjectDataset().withDescription("gzfsu") - .withStructure("dataybhozlsbufnhb") - .withSchema("datantpoe") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ytrsljzmzui") - .withParameters(mapOf("p", "datagsxzn", "ma", "datamkqbylbbnjldicq"))) - .withParameters(mapOf("fzoidy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataenitvkyahfo"))) - .withAnnotations(Arrays.asList("datarev")) - .withFolder(new DatasetFolder().withName("kfalw")) - .withTableName("datainrkj"); - model = BinaryData.fromObject(model).toObject(GoogleAdWordsObjectDataset.class); - Assertions.assertEquals("gzfsu", model.description()); - Assertions.assertEquals("ytrsljzmzui", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("fzoidy").type()); - Assertions.assertEquals("kfalw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java deleted file mode 100644 index 9be5e9d4b532..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleAdWordsSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleAdWordsSource; - -public final class GoogleAdWordsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleAdWordsSource model = BinaryData.fromString( - "{\"type\":\"GoogleAdWordsSource\",\"query\":\"datalymmhzvnetecfy\",\"queryTimeout\":\"datafkcwfpoaflgkzgzx\",\"additionalColumns\":\"datavvfkqbgkssygdv\",\"sourceRetryCount\":\"databbd\",\"sourceRetryWait\":\"datal\",\"maxConcurrentConnections\":\"datapwpsxygrniq\",\"disableMetricsCollection\":\"datapsebaz\",\"\":{\"imtu\":\"datarjroqgnsfzrra\"}}") - .toObject(GoogleAdWordsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleAdWordsSource model = new GoogleAdWordsSource().withSourceRetryCount("databbd") - .withSourceRetryWait("datal") - .withMaxConcurrentConnections("datapwpsxygrniq") - .withDisableMetricsCollection("datapsebaz") - .withQueryTimeout("datafkcwfpoaflgkzgzx") - .withAdditionalColumns("datavvfkqbgkssygdv") - .withQuery("datalymmhzvnetecfy"); - model = BinaryData.fromObject(model).toObject(GoogleAdWordsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java deleted file mode 100644 index 73f1fdd3a349..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryDatasetTypeProperties; - -public final class GoogleBigQueryDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datahxfpzc\",\"table\":\"datadq\",\"dataset\":\"datadxjvvlyibweuaugt\"}") - .toObject(GoogleBigQueryDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryDatasetTypeProperties model - = new GoogleBigQueryDatasetTypeProperties().withTableName("datahxfpzc") - .withTable("datadq") - .withDataset("datadxjvvlyibweuaugt"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java deleted file mode 100644 index 2b21104a812c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryObjectDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleBigQueryObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryObjectDataset model = BinaryData.fromString( - "{\"type\":\"GoogleBigQueryObject\",\"typeProperties\":{\"tableName\":\"datablt\",\"table\":\"datavnpbgcesfddfclmo\",\"dataset\":\"datarofofkbcjzzw\"},\"description\":\"oblbtdqzhixccnkf\",\"structure\":\"datagvyoxmyqzyqe\",\"schema\":\"databbzdsluokcevox\",\"linkedServiceName\":{\"referenceName\":\"ddpwmgw\",\"parameters\":{\"vvvgyphheovejk\":\"datakfjvqglaxsei\",\"thrtzpuv\":\"dataaleczt\"}},\"parameters\":{\"zembqqiehdhjofyw\":{\"type\":\"String\",\"defaultValue\":\"datarqefnquollouurm\"},\"hvpaglyyhrgma\":{\"type\":\"Float\",\"defaultValue\":\"dataxoxlorxgslqcxu\"},\"tocrbfgqicmdrgcu\":{\"type\":\"Array\",\"defaultValue\":\"datamlutyjukkedp\"},\"cmljzksqimybqj\":{\"type\":\"Bool\",\"defaultValue\":\"datavkrwrjcqh\"}},\"annotations\":[\"dataomhcaqpv\",\"dataszopeuku\"],\"folder\":{\"name\":\"wbsskgqjemo\"},\"\":{\"gipdzym\":\"datafsjbpwjwz\"}}") - .toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("oblbtdqzhixccnkf", model.description()); - Assertions.assertEquals("ddpwmgw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zembqqiehdhjofyw").type()); - Assertions.assertEquals("wbsskgqjemo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryObjectDataset model = new GoogleBigQueryObjectDataset().withDescription("oblbtdqzhixccnkf") - .withStructure("datagvyoxmyqzyqe") - .withSchema("databbzdsluokcevox") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ddpwmgw") - .withParameters(mapOf("vvvgyphheovejk", "datakfjvqglaxsei", "thrtzpuv", "dataaleczt"))) - .withParameters(mapOf("zembqqiehdhjofyw", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datarqefnquollouurm"), - "hvpaglyyhrgma", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxoxlorxgslqcxu"), - "tocrbfgqicmdrgcu", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamlutyjukkedp"), - "cmljzksqimybqj", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datavkrwrjcqh"))) - .withAnnotations(Arrays.asList("dataomhcaqpv", "dataszopeuku")) - .withFolder(new DatasetFolder().withName("wbsskgqjemo")) - .withTableName("datablt") - .withTable("datavnpbgcesfddfclmo") - .withDataset("datarofofkbcjzzw"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryObjectDataset.class); - Assertions.assertEquals("oblbtdqzhixccnkf", model.description()); - Assertions.assertEquals("ddpwmgw", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("zembqqiehdhjofyw").type()); - Assertions.assertEquals("wbsskgqjemo", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java deleted file mode 100644 index e1508ac50737..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQuerySourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleBigQuerySource; - -public final class GoogleBigQuerySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQuerySource model = BinaryData.fromString( - "{\"type\":\"GoogleBigQuerySource\",\"query\":\"dataso\",\"queryTimeout\":\"datapuaptpuwek\",\"additionalColumns\":\"datal\",\"sourceRetryCount\":\"datamtcljopivtwxvcfc\",\"sourceRetryWait\":\"datakkcjjnq\",\"maxConcurrentConnections\":\"datajoayaj\",\"disableMetricsCollection\":\"datahcxjmapgfbzbxeqz\",\"\":{\"hfafxcgjucmuax\":\"dataf\",\"srxqscdbbwejrmk\":\"dataulvue\"}}") - .toObject(GoogleBigQuerySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQuerySource model = new GoogleBigQuerySource().withSourceRetryCount("datamtcljopivtwxvcfc") - .withSourceRetryWait("datakkcjjnq") - .withMaxConcurrentConnections("datajoayaj") - .withDisableMetricsCollection("datahcxjmapgfbzbxeqz") - .withQueryTimeout("datapuaptpuwek") - .withAdditionalColumns("datal") - .withQuery("dataso"); - model = BinaryData.fromObject(model).toObject(GoogleBigQuerySource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.java deleted file mode 100644 index e100f8ede502..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2DatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryV2DatasetTypeProperties; - -public final class GoogleBigQueryV2DatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryV2DatasetTypeProperties model - = BinaryData.fromString("{\"table\":\"dataowqrzvuxn\",\"dataset\":\"datauohshzultdbvm\"}") - .toObject(GoogleBigQueryV2DatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2DatasetTypeProperties model - = new GoogleBigQueryV2DatasetTypeProperties().withTable("dataowqrzvuxn").withDataset("datauohshzultdbvm"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryV2DatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.java deleted file mode 100644 index d3442cbb1a54..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2ObjectDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryV2ObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GoogleBigQueryV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"GoogleBigQueryV2Object\",\"typeProperties\":{\"table\":\"datancoqxtvytzq\",\"dataset\":\"dataldjvzmxy\"},\"description\":\"zz\",\"structure\":\"datajv\",\"schema\":\"datazbdbrlbo\",\"linkedServiceName\":{\"referenceName\":\"ltyo\",\"parameters\":{\"sokrlnrpeyl\":\"databibtkeiecupmwx\",\"dgiql\":\"dataiiul\"}},\"parameters\":{\"vunknsgvxhxr\":{\"type\":\"Object\",\"defaultValue\":\"dataw\"},\"yfjvifbmojtehq\":{\"type\":\"SecureString\",\"defaultValue\":\"datatrtc\"},\"mbhukdfpknvk\":{\"type\":\"Int\",\"defaultValue\":\"datatrcoufk\"}},\"annotations\":[\"datazje\"],\"folder\":{\"name\":\"meo\"},\"\":{\"knckkfxmuqeqkw\":\"datajl\",\"hdtezgfctu\":\"dataphfvsftsstwlpxca\"}}") - .toObject(GoogleBigQueryV2ObjectDataset.class); - Assertions.assertEquals("zz", model.description()); - Assertions.assertEquals("ltyo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vunknsgvxhxr").type()); - Assertions.assertEquals("meo", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2ObjectDataset model = new GoogleBigQueryV2ObjectDataset().withDescription("zz") - .withStructure("datajv") - .withSchema("datazbdbrlbo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ltyo") - .withParameters(mapOf("sokrlnrpeyl", "databibtkeiecupmwx", "dgiql", "dataiiul"))) - .withParameters(mapOf("vunknsgvxhxr", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataw"), "yfjvifbmojtehq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatrtc"), - "mbhukdfpknvk", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datatrcoufk"))) - .withAnnotations(Arrays.asList("datazje")) - .withFolder(new DatasetFolder().withName("meo")) - .withTable("datancoqxtvytzq") - .withDataset("dataldjvzmxy"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryV2ObjectDataset.class); - Assertions.assertEquals("zz", model.description()); - Assertions.assertEquals("ltyo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("vunknsgvxhxr").type()); - Assertions.assertEquals("meo", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2SourceTests.java deleted file mode 100644 index 61627c8662fd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleBigQueryV2SourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleBigQueryV2Source; - -public final class GoogleBigQueryV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleBigQueryV2Source model = BinaryData.fromString( - "{\"type\":\"GoogleBigQueryV2Source\",\"query\":\"datae\",\"queryTimeout\":\"dataaillfscosf\",\"additionalColumns\":\"dataotvneteehndfpflf\",\"sourceRetryCount\":\"datagfnaoehkgpkss\",\"sourceRetryWait\":\"datawkwxdgcfcfkyyrj\",\"maxConcurrentConnections\":\"datahslrbwwkbyw\",\"disableMetricsCollection\":\"datahsodofsxjik\",\"\":{\"xdmxhuwl\":\"dataquhuixqwoggw\",\"hkyftudkbgs\":\"dataf\"}}") - .toObject(GoogleBigQueryV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleBigQueryV2Source model = new GoogleBigQueryV2Source().withSourceRetryCount("datagfnaoehkgpkss") - .withSourceRetryWait("datawkwxdgcfcfkyyrj") - .withMaxConcurrentConnections("datahslrbwwkbyw") - .withDisableMetricsCollection("datahsodofsxjik") - .withQueryTimeout("dataaillfscosf") - .withAdditionalColumns("dataotvneteehndfpflf") - .withQuery("datae"); - model = BinaryData.fromObject(model).toObject(GoogleBigQueryV2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java deleted file mode 100644 index c47646de84fc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleCloudStorageLocation; - -public final class GoogleCloudStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleCloudStorageLocation model = BinaryData.fromString( - "{\"type\":\"GoogleCloudStorageLocation\",\"bucketName\":\"datadirdammtzjgc\",\"version\":\"datafxtbwjjirmuydg\",\"folderPath\":\"datatmdofgeoag\",\"fileName\":\"dataoftnxodwxm\",\"\":{\"stgfczl\":\"datawiygmgsevmdmzenl\",\"cidt\":\"datad\",\"cvucgytoxu\":\"datavamyyznmrgcdo\",\"qmebgszplusdekpd\":\"datahttnzqs\"}}") - .toObject(GoogleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageLocation model = new GoogleCloudStorageLocation().withFolderPath("datatmdofgeoag") - .withFileName("dataoftnxodwxm") - .withBucketName("datadirdammtzjgc") - .withVersion("datafxtbwjjirmuydg"); - model = BinaryData.fromObject(model).toObject(GoogleCloudStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java deleted file mode 100644 index ed1d32e3029b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GoogleCloudStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GoogleCloudStorageReadSettings; - -public final class GoogleCloudStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GoogleCloudStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"GoogleCloudStorageReadSettings\",\"recursive\":\"dataaxoswqw\",\"wildcardFolderPath\":\"datalrzlgk\",\"wildcardFileName\":\"datapd\",\"prefix\":\"dataerxfe\",\"fileListPath\":\"datamzsekvsuzyowr\",\"enablePartitionDiscovery\":\"datavofrenuvp\",\"partitionRootPath\":\"dataltnyyeyj\",\"deleteFilesAfterCompletion\":\"datafpbxnretpg\",\"modifiedDatetimeStart\":\"datatohruqtximrxeyz\",\"modifiedDatetimeEnd\":\"datanxb\",\"maxConcurrentConnections\":\"datayglfyfcsbkjhoxtb\",\"disableMetricsCollection\":\"databpef\",\"\":{\"vmrnwgeajyifei\":\"datanixdgqjk\",\"tlxrdepqtz\":\"datariomjdnkn\",\"o\":\"datahkpko\",\"fu\":\"datafnobuwhutvcdtgxs\"}}") - .toObject(GoogleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GoogleCloudStorageReadSettings model - = new GoogleCloudStorageReadSettings().withMaxConcurrentConnections("datayglfyfcsbkjhoxtb") - .withDisableMetricsCollection("databpef") - .withRecursive("dataaxoswqw") - .withWildcardFolderPath("datalrzlgk") - .withWildcardFileName("datapd") - .withPrefix("dataerxfe") - .withFileListPath("datamzsekvsuzyowr") - .withEnablePartitionDiscovery("datavofrenuvp") - .withPartitionRootPath("dataltnyyeyj") - .withDeleteFilesAfterCompletion("datafpbxnretpg") - .withModifiedDatetimeStart("datatohruqtximrxeyz") - .withModifiedDatetimeEnd("datanxb"); - model = BinaryData.fromObject(model).toObject(GoogleCloudStorageReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java deleted file mode 100644 index bd0a57eaed4a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.GreenplumDatasetTypeProperties; - -public final class GreenplumDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumDatasetTypeProperties model = BinaryData - .fromString( - "{\"tableName\":\"datamqeumzyyhmgqa\",\"table\":\"datavjqutxrbgbzgfhzd\",\"schema\":\"datahk\"}") - .toObject(GreenplumDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumDatasetTypeProperties model = new GreenplumDatasetTypeProperties().withTableName("datamqeumzyyhmgqa") - .withTable("datavjqutxrbgbzgfhzd") - .withSchema("datahk"); - model = BinaryData.fromObject(model).toObject(GreenplumDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java deleted file mode 100644 index 4ad10fa3f1fc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.GreenplumSource; - -public final class GreenplumSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumSource model = BinaryData.fromString( - "{\"type\":\"GreenplumSource\",\"query\":\"datapyckmncrutoudjm\",\"queryTimeout\":\"datayqkgixfnr\",\"additionalColumns\":\"datayavldovpwrqcfzo\",\"sourceRetryCount\":\"datalzliizb\",\"sourceRetryWait\":\"datajumulhfq\",\"maxConcurrentConnections\":\"datanchah\",\"disableMetricsCollection\":\"datanrptrqcap\",\"\":{\"dpujyw\":\"datavowzbkrbqp\",\"mcamse\":\"datamohqzzkpl\"}}") - .toObject(GreenplumSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumSource model = new GreenplumSource().withSourceRetryCount("datalzliizb") - .withSourceRetryWait("datajumulhfq") - .withMaxConcurrentConnections("datanchah") - .withDisableMetricsCollection("datanrptrqcap") - .withQueryTimeout("datayqkgixfnr") - .withAdditionalColumns("datayavldovpwrqcfzo") - .withQuery("datapyckmncrutoudjm"); - model = BinaryData.fromObject(model).toObject(GreenplumSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java deleted file mode 100644 index 19074a2bda67..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/GreenplumTableDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.GreenplumTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class GreenplumTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GreenplumTableDataset model = BinaryData.fromString( - "{\"type\":\"GreenplumTable\",\"typeProperties\":{\"tableName\":\"dataypngocbd\",\"table\":\"datarivptbczsu\",\"schema\":\"datarzukekytkzvtv\"},\"description\":\"atvogpycein\",\"structure\":\"datarhbd\",\"schema\":\"databyp\",\"linkedServiceName\":{\"referenceName\":\"s\",\"parameters\":{\"bqpsezsggd\":\"datafjuda\"}},\"parameters\":{\"fzrguzliyv\":{\"type\":\"String\",\"defaultValue\":\"databrtsrdplqdyzacia\"},\"djuljgxotuda\":{\"type\":\"SecureString\",\"defaultValue\":\"datasinva\"},\"ifgs\":{\"type\":\"Bool\",\"defaultValue\":\"datayaosthulzu\"},\"cygimizl\":{\"type\":\"Int\",\"defaultValue\":\"datadlnoc\"}},\"annotations\":[\"databwmgksrlmspp\",\"dataoeszthjtryjsk\",\"dataiylgzzu\",\"dataixpsybqowgvmxw\"],\"folder\":{\"name\":\"xdhkoex\"},\"\":{\"wscmneev\":\"datagnaka\"}}") - .toObject(GreenplumTableDataset.class); - Assertions.assertEquals("atvogpycein", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("fzrguzliyv").type()); - Assertions.assertEquals("xdhkoex", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GreenplumTableDataset model = new GreenplumTableDataset().withDescription("atvogpycein") - .withStructure("datarhbd") - .withSchema("databyp") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("s").withParameters(mapOf("bqpsezsggd", "datafjuda"))) - .withParameters(mapOf("fzrguzliyv", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databrtsrdplqdyzacia"), - "djuljgxotuda", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datasinva"), - "ifgs", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datayaosthulzu"), - "cygimizl", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datadlnoc"))) - .withAnnotations( - Arrays.asList("databwmgksrlmspp", "dataoeszthjtryjsk", "dataiylgzzu", "dataixpsybqowgvmxw")) - .withFolder(new DatasetFolder().withName("xdhkoex")) - .withTableName("dataypngocbd") - .withTable("datarivptbczsu") - .withSchemaTypePropertiesSchema("datarzukekytkzvtv"); - model = BinaryData.fromObject(model).toObject(GreenplumTableDataset.class); - Assertions.assertEquals("atvogpycein", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("fzrguzliyv").type()); - Assertions.assertEquals("xdhkoex", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java deleted file mode 100644 index 53cd9c23a81c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseObjectDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HBaseObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HBaseObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HBaseObjectDataset model = BinaryData.fromString( - "{\"type\":\"HBaseObject\",\"typeProperties\":{\"tableName\":\"datacbicfecthotb\"},\"description\":\"whz\",\"structure\":\"dataxjvtwkyjdpayxo\",\"schema\":\"dataiwuzrgqztjfkgbtq\",\"linkedServiceName\":{\"referenceName\":\"jobsynn\",\"parameters\":{\"wfudmpf\":\"dataonjqhdheosx\"}},\"parameters\":{\"bb\":{\"type\":\"Array\",\"defaultValue\":\"datahtjtntcwgp\"},\"spkvrmp\":{\"type\":\"Array\",\"defaultValue\":\"dataecctokfspvjr\"},\"djmvphwfnu\":{\"type\":\"String\",\"defaultValue\":\"datayptwjwiyyeohgmc\"},\"ueprpmofxnwc\":{\"type\":\"SecureString\",\"defaultValue\":\"datavfzzioxbgom\"}},\"annotations\":[\"dataoxi\",\"datatxxxajse\",\"datab\",\"datannrnkyj\"],\"folder\":{\"name\":\"pcbs\"},\"\":{\"pkjealkdbewhotv\":\"dataehczbnivcohsxv\",\"dktrjtoqszh\":\"datamyzuqfd\"}}") - .toObject(HBaseObjectDataset.class); - Assertions.assertEquals("whz", model.description()); - Assertions.assertEquals("jobsynn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bb").type()); - Assertions.assertEquals("pcbs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseObjectDataset model = new HBaseObjectDataset().withDescription("whz") - .withStructure("dataxjvtwkyjdpayxo") - .withSchema("dataiwuzrgqztjfkgbtq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("jobsynn") - .withParameters(mapOf("wfudmpf", "dataonjqhdheosx"))) - .withParameters(mapOf("bb", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahtjtntcwgp"), - "spkvrmp", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataecctokfspvjr"), - "djmvphwfnu", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayptwjwiyyeohgmc"), - "ueprpmofxnwc", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datavfzzioxbgom"))) - .withAnnotations(Arrays.asList("dataoxi", "datatxxxajse", "datab", "datannrnkyj")) - .withFolder(new DatasetFolder().withName("pcbs")) - .withTableName("datacbicfecthotb"); - model = BinaryData.fromObject(model).toObject(HBaseObjectDataset.class); - Assertions.assertEquals("whz", model.description()); - Assertions.assertEquals("jobsynn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("bb").type()); - Assertions.assertEquals("pcbs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java deleted file mode 100644 index 748550b35460..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HBaseSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HBaseSource; - -public final class HBaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HBaseSource model = BinaryData.fromString( - "{\"type\":\"HBaseSource\",\"query\":\"datauveengtjgfpqw\",\"queryTimeout\":\"datagfwpvj\",\"additionalColumns\":\"datawbqaibkyeysf\",\"sourceRetryCount\":\"datahdydyybztlylh\",\"sourceRetryWait\":\"datacjq\",\"maxConcurrentConnections\":\"datacie\",\"disableMetricsCollection\":\"datak\",\"\":{\"jhbttmhneqdrz\":\"datafvghve\"}}") - .toObject(HBaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HBaseSource model = new HBaseSource().withSourceRetryCount("datahdydyybztlylh") - .withSourceRetryWait("datacjq") - .withMaxConcurrentConnections("datacie") - .withDisableMetricsCollection("datak") - .withQueryTimeout("datagfwpvj") - .withAdditionalColumns("datawbqaibkyeysf") - .withQuery("datauveengtjgfpqw"); - 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 01052ae0bea1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTests.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.HDInsightHiveActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightHiveActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightHiveActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightHive\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"knhcvxflzhgrn\",\"parameters\":{\"lykc\":\"datasdmovbvnjyqqofdg\",\"dwrggytyvo\":\"dataol\",\"mu\":\"datanjbyjgobz\"}},{\"referenceName\":\"fwmhza\",\"parameters\":{\"v\":\"datattxhifrjgvhonev\"}}],\"arguments\":[\"datalmkfvsol\"],\"getDebugInfo\":\"Always\",\"scriptPath\":\"datavzyoehlj\",\"scriptLinkedService\":{\"referenceName\":\"yguothnucqktu\",\"parameters\":{\"bahmivtuphw\":\"datagjtpriicteyd\"}},\"defines\":{\"fxfteo\":\"dataxo\"},\"variables\":{\"jmyoufqapuaypc\":\"dataziwkcpx\",\"pohuv\":\"dataikkmyrsvtrtxgg\",\"h\":\"datasxjzklqkgjukntkn\",\"ehptl\":\"datawgziqcwnef\"},\"queryTimeout\":1286730296},\"linkedServiceName\":{\"referenceName\":\"a\",\"parameters\":{\"x\":\"datanes\",\"iwp\":\"datamgeuoihtik\",\"suwct\":\"dataxyavcb\",\"yr\":\"databhcjfgxtl\"}},\"policy\":{\"timeout\":\"datap\",\"retry\":\"datawzrzivhkkd\",\"retryIntervalInSeconds\":1823602919,\"secureInput\":false,\"secureOutput\":true,\"\":{\"iuexfbrsd\":\"datauyuxgeph\",\"yagaxruffkm\":\"dataxhy\"}},\"name\":\"iuxy\",\"description\":\"hvpuqlhzdbbitpg\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"gmxwfodvzpx\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"eyev\":\"datavgi\",\"tbasvjodgplagwvg\":\"datan\"}},{\"activity\":\"nxmqudnqcbb\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"shiyyz\":\"datayszlbfzkvrmd\",\"mkhxunq\":\"datadnrgnybpqwjj\"}}],\"userProperties\":[{\"name\":\"ticgsdcpm\",\"value\":\"datalkuydabh\"},{\"name\":\"dcqrssqwzndzuxlg\",\"value\":\"datay\"},{\"name\":\"ngyqlzozmbapj\",\"value\":\"databzablmpntj\"},{\"name\":\"zkymcgtbpbfbgfwj\",\"value\":\"datawlvsefvkxxd\"}],\"\":{\"zm\":\"datanqmhr\",\"lqrkstjdjdasomxw\":\"dataxwgrflqbugxudsmd\"}}") - .toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("iuxy", model.name()); - Assertions.assertEquals("hvpuqlhzdbbitpg", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gmxwfodvzpx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ticgsdcpm", model.userProperties().get(0).name()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1823602919, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("knhcvxflzhgrn", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("yguothnucqktu", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1286730296, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivity model = new HDInsightHiveActivity().withName("iuxy") - .withDescription("hvpuqlhzdbbitpg") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gmxwfodvzpx") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nxmqudnqcbb") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ticgsdcpm").withValue("datalkuydabh"), - new UserProperty().withName("dcqrssqwzndzuxlg").withValue("datay"), - new UserProperty().withName("ngyqlzozmbapj").withValue("databzablmpntj"), - new UserProperty().withName("zkymcgtbpbfbgfwj").withValue("datawlvsefvkxxd"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("a") - .withParameters( - mapOf("x", "datanes", "iwp", "datamgeuoihtik", "suwct", "dataxyavcb", "yr", "databhcjfgxtl"))) - .withPolicy(new ActivityPolicy().withTimeout("datap") - .withRetry("datawzrzivhkkd") - .withRetryIntervalInSeconds(1823602919) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("knhcvxflzhgrn") - .withParameters(mapOf("lykc", "datasdmovbvnjyqqofdg", "dwrggytyvo", "dataol", "mu", "datanjbyjgobz")), - new LinkedServiceReference().withReferenceName("fwmhza") - .withParameters(mapOf("v", "datattxhifrjgvhonev")))) - .withArguments(Arrays.asList("datalmkfvsol")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withScriptPath("datavzyoehlj") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("yguothnucqktu") - .withParameters(mapOf("bahmivtuphw", "datagjtpriicteyd"))) - .withDefines(mapOf("fxfteo", "dataxo")) - .withVariables(mapOf("jmyoufqapuaypc", "dataziwkcpx", "pohuv", "dataikkmyrsvtrtxgg", "h", - "datasxjzklqkgjukntkn", "ehptl", "datawgziqcwnef")) - .withQueryTimeout(1286730296); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivity.class); - Assertions.assertEquals("iuxy", model.name()); - Assertions.assertEquals("hvpuqlhzdbbitpg", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("gmxwfodvzpx", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ticgsdcpm", model.userProperties().get(0).name()); - Assertions.assertEquals("a", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1823602919, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("knhcvxflzhgrn", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("yguothnucqktu", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1286730296, 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 0666216cbccb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightHiveActivityTypePropertiesTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightHiveActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightHiveActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightHiveActivityTypeProperties model = BinaryData.fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"yl\",\"parameters\":{\"eqdj\":\"datajficzwikglmcgyz\"}},{\"referenceName\":\"urbjxka\",\"parameters\":{\"wfbqxo\":\"dataguzv\",\"dcolnxwdp\":\"datanvij\",\"ezptngrpzvimxa\":\"dataiodnntol\",\"komrp\":\"dataxcaczc\"}},{\"referenceName\":\"c\",\"parameters\":{\"nxdyskyrhsijx\":\"dataxpdqwyw\",\"suwmbdtfetrgzy\":\"dataliuymfx\",\"qszqkrsnx\":\"dataprrapghloemqapv\"}}],\"arguments\":[\"datawrbqadtvpgu\"],\"getDebugInfo\":\"Failure\",\"scriptPath\":\"datagkriv\",\"scriptLinkedService\":{\"referenceName\":\"x\",\"parameters\":{\"zjkz\":\"datalphkiyiqpiiod\",\"cxbkwm\":\"datalvxdpopubbwps\",\"rsnnvlm\":\"datajqakacbc\"}},\"defines\":{\"kbisjurilqcsqzd\":\"datagtwqmtyfqutm\",\"ogockbizqqa\":\"datarbu\",\"pqzv\":\"datasuauwojg\",\"nbr\":\"datagwlzqcyvrbg\"},\"variables\":{\"jfkqubnnmz\":\"datajb\",\"dfxxaoyisky\":\"datacbcxbvnhlw\",\"qbwjtnfa\":\"dataasxak\"},\"queryTimeout\":1366062204}") - .toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("yl", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("x", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1366062204, model.queryTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightHiveActivityTypeProperties model = new HDInsightHiveActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("yl") - .withParameters(mapOf("eqdj", "datajficzwikglmcgyz")), - new LinkedServiceReference().withReferenceName("urbjxka") - .withParameters(mapOf("wfbqxo", "dataguzv", "dcolnxwdp", "datanvij", "ezptngrpzvimxa", - "dataiodnntol", "komrp", "dataxcaczc")), - new LinkedServiceReference().withReferenceName("c") - .withParameters(mapOf("nxdyskyrhsijx", "dataxpdqwyw", "suwmbdtfetrgzy", "dataliuymfx", "qszqkrsnx", - "dataprrapghloemqapv")))) - .withArguments(Arrays.asList("datawrbqadtvpgu")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("datagkriv") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("x") - .withParameters( - mapOf("zjkz", "datalphkiyiqpiiod", "cxbkwm", "datalvxdpopubbwps", "rsnnvlm", "datajqakacbc"))) - .withDefines(mapOf("kbisjurilqcsqzd", "datagtwqmtyfqutm", "ogockbizqqa", "datarbu", "pqzv", "datasuauwojg", - "nbr", "datagwlzqcyvrbg")) - .withVariables(mapOf("jfkqubnnmz", "datajb", "dfxxaoyisky", "datacbcxbvnhlw", "qbwjtnfa", "dataasxak")) - .withQueryTimeout(1366062204); - model = BinaryData.fromObject(model).toObject(HDInsightHiveActivityTypeProperties.class); - Assertions.assertEquals("yl", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("x", model.scriptLinkedService().referenceName()); - Assertions.assertEquals(1366062204, 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 d7b1dde14af4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTests.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightMapReduceActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightMapReduceActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightMapReduceActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightMapReduce\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"oxwugdzwo\",\"parameters\":{\"c\":\"dataiz\"}},{\"referenceName\":\"pddzzdw\",\"parameters\":{\"uwunsnyqpmnyvnbm\":\"datamocnfzmuyykxlfly\",\"revt\":\"datapom\",\"xpnraeo\":\"datazclilzveisdnobxc\",\"xvsuhxrctcozfj\":\"dataixof\"}},{\"referenceName\":\"frbjrbqc\",\"parameters\":{\"wsicmhhvbovb\":\"datawbcycwasmrf\",\"dp\":\"dataxfylez\",\"mn\":\"dataurf\",\"zszlrv\":\"datakfzsouou\"}},{\"referenceName\":\"qldgii\",\"parameters\":{\"tyjf\":\"datakxprb\",\"qlruhhkkbfgr\":\"datajhbvllj\",\"pdredcvwsbsdy\":\"datascbmdrbtgm\",\"hgnfaanubjeb\":\"dataqjyrqouyfcfdedeu\"}}],\"arguments\":[\"dataksghsowmvtmj\",\"datahwn\",\"datab\"],\"getDebugInfo\":\"Failure\",\"className\":\"datapfjzcvlkpwav\",\"jarFilePath\":\"dataopecjmovrs\",\"jarLinkedService\":{\"referenceName\":\"l\",\"parameters\":{\"tudw\":\"datagrb\",\"luzokxph\":\"dataoxirz\"}},\"jarLibs\":[\"datawhwgbajmgctwamjj\",\"datavmu\",\"dataistnyzm\",\"datahopedmkxtdyxz\"],\"defines\":{\"khj\":\"datatgfbmocvblrvkqx\",\"yrqtu\":\"datarcqpxaajt\",\"ssbvlj\":\"datatzmubxngspazm\"}},\"linkedServiceName\":{\"referenceName\":\"tb\",\"parameters\":{\"q\":\"datahwcakkewgzaousj\",\"wezcknpmeva\":\"datajj\",\"hjoldwahehudi\":\"dataqjd\",\"d\":\"dataxolmmh\"}},\"policy\":{\"timeout\":\"dataoiwbmjqvmpzc\",\"retry\":\"dataogrripop\",\"retryIntervalInSeconds\":1331421673,\"secureInput\":false,\"secureOutput\":false,\"\":{\"wyq\":\"datadmsnezdumjqdhr\",\"kbepieh\":\"dataqmelm\",\"er\":\"datave\"}},\"name\":\"u\",\"description\":\"rnlbfnuppwqkskns\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"yggrmztcxyphd\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"gmtgoeayhojdgwez\":\"dataabgejopv\",\"smbdjz\":\"datar\",\"yevvuddnwj\":\"datafdpxbwqgkfxcdtj\",\"flemxbmaiiv\":\"databc\"}},{\"activity\":\"pftzbkev\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"dyl\":\"datapumpqlugz\",\"dmfo\":\"datarsis\",\"svfnxxkmrfz\":\"datai\",\"azrfhfjwikvakj\":\"datatkprbm\"}}],\"userProperties\":[{\"name\":\"hqilvajc\",\"value\":\"datapwlf\"},{\"name\":\"fardjqwdrooooobs\",\"value\":\"datadqv\"},{\"name\":\"qcme\",\"value\":\"datawajjzxcqnl\"}],\"\":{\"xau\":\"datawocwmadyelwol\"}}") - .toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("u", model.name()); - Assertions.assertEquals("rnlbfnuppwqkskns", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("yggrmztcxyphd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hqilvajc", model.userProperties().get(0).name()); - Assertions.assertEquals("tb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1331421673, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("oxwugdzwo", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("l", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivity model = new HDInsightMapReduceActivity().withName("u") - .withDescription("rnlbfnuppwqkskns") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("yggrmztcxyphd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("pftzbkev") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("hqilvajc").withValue("datapwlf"), - new UserProperty().withName("fardjqwdrooooobs").withValue("datadqv"), - new UserProperty().withName("qcme").withValue("datawajjzxcqnl"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tb") - .withParameters(mapOf("q", "datahwcakkewgzaousj", "wezcknpmeva", "datajj", "hjoldwahehudi", "dataqjd", - "d", "dataxolmmh"))) - .withPolicy(new ActivityPolicy().withTimeout("dataoiwbmjqvmpzc") - .withRetry("dataogrripop") - .withRetryIntervalInSeconds(1331421673) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("oxwugdzwo").withParameters(mapOf("c", "dataiz")), - new LinkedServiceReference().withReferenceName("pddzzdw") - .withParameters(mapOf("uwunsnyqpmnyvnbm", "datamocnfzmuyykxlfly", "revt", "datapom", "xpnraeo", - "datazclilzveisdnobxc", "xvsuhxrctcozfj", "dataixof")), - new LinkedServiceReference().withReferenceName("frbjrbqc") - .withParameters(mapOf("wsicmhhvbovb", "datawbcycwasmrf", "dp", "dataxfylez", "mn", "dataurf", - "zszlrv", "datakfzsouou")), - new LinkedServiceReference().withReferenceName("qldgii") - .withParameters(mapOf("tyjf", "datakxprb", "qlruhhkkbfgr", "datajhbvllj", "pdredcvwsbsdy", - "datascbmdrbtgm", "hgnfaanubjeb", "dataqjyrqouyfcfdedeu")))) - .withArguments(Arrays.asList("dataksghsowmvtmj", "datahwn", "datab")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withClassName("datapfjzcvlkpwav") - .withJarFilePath("dataopecjmovrs") - .withJarLinkedService(new LinkedServiceReference().withReferenceName("l") - .withParameters(mapOf("tudw", "datagrb", "luzokxph", "dataoxirz"))) - .withJarLibs(Arrays.asList("datawhwgbajmgctwamjj", "datavmu", "dataistnyzm", "datahopedmkxtdyxz")) - .withDefines(mapOf("khj", "datatgfbmocvblrvkqx", "yrqtu", "datarcqpxaajt", "ssbvlj", "datatzmubxngspazm")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivity.class); - Assertions.assertEquals("u", model.name()); - Assertions.assertEquals("rnlbfnuppwqkskns", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("yggrmztcxyphd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hqilvajc", model.userProperties().get(0).name()); - Assertions.assertEquals("tb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1331421673, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("oxwugdzwo", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("l", 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 10eae0ea7128..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightMapReduceActivityTypePropertiesTests.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.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\":\"fjrdcawa\",\"parameters\":{\"xyczzwhwsidnqia\":\"datadakbijcxctni\",\"xoe\":\"dataoyhnollnuhocbbe\",\"fcurn\":\"dataprtz\"}}],\"arguments\":[\"datacun\",\"datauassto\"],\"getDebugInfo\":\"Failure\",\"className\":\"datamyayblmcenjc\",\"jarFilePath\":\"datacxam\",\"jarLinkedService\":{\"referenceName\":\"lxksph\",\"parameters\":{\"t\":\"datab\",\"w\":\"datalfmaj\"}},\"jarLibs\":[\"datas\"],\"defines\":{\"ufnhejualug\":\"datakqzulosl\"}}") - .toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("fjrdcawa", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("lxksph", model.jarLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightMapReduceActivityTypeProperties model - = new HDInsightMapReduceActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("fjrdcawa") - .withParameters(mapOf("xyczzwhwsidnqia", "datadakbijcxctni", "xoe", "dataoyhnollnuhocbbe", "fcurn", - "dataprtz")))) - .withArguments(Arrays.asList("datacun", "datauassto")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withClassName("datamyayblmcenjc") - .withJarFilePath("datacxam") - .withJarLinkedService(new LinkedServiceReference().withReferenceName("lxksph") - .withParameters(mapOf("t", "datab", "w", "datalfmaj"))) - .withJarLibs(Arrays.asList("datas")) - .withDefines(mapOf("ufnhejualug", "datakqzulosl")); - model = BinaryData.fromObject(model).toObject(HDInsightMapReduceActivityTypeProperties.class); - Assertions.assertEquals("fjrdcawa", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("lxksph", 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 73b5f975646a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightPigActivityTests.java +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightPigActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightPigActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightPigActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightPig\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"ccldxuwe\",\"parameters\":{\"yfaprhf\":\"dataegszwsn\"}},{\"referenceName\":\"dhbcribqdszuxh\",\"parameters\":{\"nmcqudfxh\":\"dataywtyknfrhbknrag\",\"zegm\":\"datagd\",\"jhijlduuv\":\"datauebzo\"}},{\"referenceName\":\"klarufj\",\"parameters\":{\"exgnfjwfo\":\"datadzwbsk\",\"pmowlsrxytev\":\"datazlia\",\"nzzhyl\":\"dataqxpmfhehtrpql\",\"m\":\"datazuxqqrmck\"}},{\"referenceName\":\"sueutby\",\"parameters\":{\"cnriv\":\"datagkzhbnbnjpi\"}}],\"arguments\":\"datawwso\",\"getDebugInfo\":\"Failure\",\"scriptPath\":\"datakikouv\",\"scriptLinkedService\":{\"referenceName\":\"jyhsznmjtanr\",\"parameters\":{\"omsy\":\"datanql\"}},\"defines\":{\"kapgdvknquipi\":\"dataga\",\"y\":\"datagvfchzcp\",\"wzpf\":\"datazbo\"}},\"linkedServiceName\":{\"referenceName\":\"slvbrxlsbglbfp\",\"parameters\":{\"hcfs\":\"datairneopxd\",\"mrfxucgvzgwvmhb\":\"datapdarvcab\"}},\"policy\":{\"timeout\":\"dataijdseexdboatvs\",\"retry\":\"dataxdfeqr\",\"retryIntervalInSeconds\":1674692425,\"secureInput\":true,\"secureOutput\":true,\"\":{\"ngxogqvwchynrdt\":\"dataxacojcaraxorqjbo\",\"oqvcjspjp\":\"dataaptwmawypkpbmi\",\"bmluy\":\"datatsgvvizayg\"}},\"name\":\"cgzvqpnjqpwx\",\"description\":\"uijpay\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"qopwmbdleegwlh\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"iotlfzbjsvuqkbsd\":\"dataizhydjkmxbgh\",\"scugdyfyjeexmlk\":\"datacoaysargqkga\",\"ekkvayyyowj\":\"datavfejdgojavqe\"}},{\"activity\":\"smnxcc\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"fatoilmwzkxaglwd\":\"dataokhmkqyfatddwfhf\",\"hvioccszdaxafu\":\"datatjfnmxzu\",\"tmfimloz\":\"dataccnqfwobnblu\",\"g\":\"datafdxjirfyetljrd\"}},{\"activity\":\"ormxipwcqha\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Skipped\"],\"\":{\"qielhtuk\":\"datatwiocuha\"}}],\"userProperties\":[{\"name\":\"mwhotjcgdpqkfxdq\",\"value\":\"datadvrglql\"},{\"name\":\"mke\",\"value\":\"dataeyqotmj\"},{\"name\":\"qqahmzleta\",\"value\":\"datakjuwkkvarffju\"}],\"\":{\"drdtywajqwah\":\"databmowqwod\",\"vcswzjrpcpgcltf\":\"dataia\",\"ptf\":\"dataaqmrimletjv\"}}") - .toObject(HDInsightPigActivity.class); - Assertions.assertEquals("cgzvqpnjqpwx", model.name()); - Assertions.assertEquals("uijpay", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("qopwmbdleegwlh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mwhotjcgdpqkfxdq", model.userProperties().get(0).name()); - Assertions.assertEquals("slvbrxlsbglbfp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1674692425, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("ccldxuwe", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("jyhsznmjtanr", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivity model = new HDInsightPigActivity().withName("cgzvqpnjqpwx") - .withDescription("uijpay") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("qopwmbdleegwlh") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("smnxcc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ormxipwcqha") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("mwhotjcgdpqkfxdq").withValue("datadvrglql"), - new UserProperty().withName("mke").withValue("dataeyqotmj"), - new UserProperty().withName("qqahmzleta").withValue("datakjuwkkvarffju"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("slvbrxlsbglbfp") - .withParameters(mapOf("hcfs", "datairneopxd", "mrfxucgvzgwvmhb", "datapdarvcab"))) - .withPolicy(new ActivityPolicy().withTimeout("dataijdseexdboatvs") - .withRetry("dataxdfeqr") - .withRetryIntervalInSeconds(1674692425) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("ccldxuwe") - .withParameters(mapOf("yfaprhf", "dataegszwsn")), - new LinkedServiceReference().withReferenceName("dhbcribqdszuxh") - .withParameters( - mapOf("nmcqudfxh", "dataywtyknfrhbknrag", "zegm", "datagd", "jhijlduuv", "datauebzo")), - new LinkedServiceReference().withReferenceName("klarufj") - .withParameters(mapOf("exgnfjwfo", "datadzwbsk", "pmowlsrxytev", "datazlia", "nzzhyl", - "dataqxpmfhehtrpql", "m", "datazuxqqrmck")), - new LinkedServiceReference().withReferenceName("sueutby") - .withParameters(mapOf("cnriv", "datagkzhbnbnjpi")))) - .withArguments("datawwso") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withScriptPath("datakikouv") - .withScriptLinkedService( - new LinkedServiceReference().withReferenceName("jyhsznmjtanr").withParameters(mapOf("omsy", "datanql"))) - .withDefines(mapOf("kapgdvknquipi", "dataga", "y", "datagvfchzcp", "wzpf", "datazbo")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivity.class); - Assertions.assertEquals("cgzvqpnjqpwx", model.name()); - Assertions.assertEquals("uijpay", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("qopwmbdleegwlh", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("mwhotjcgdpqkfxdq", model.userProperties().get(0).name()); - Assertions.assertEquals("slvbrxlsbglbfp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1674692425, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("ccldxuwe", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("jyhsznmjtanr", 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 4a5af6dc082e..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\":\"iblh\",\"parameters\":{\"szxupwri\":\"datalpsw\",\"haskuiosl\":\"datakqnbiiandhsjp\",\"rcx\":\"datachcuhvdrfh\",\"aaabtxrhemnkyk\":\"datanojfdiijch\"}},{\"referenceName\":\"ruomwyoktzffp\",\"parameters\":{\"qvkuvy\":\"datahjpze\",\"rfok\":\"datai\"}}],\"arguments\":\"datacoikstap\",\"getDebugInfo\":\"Always\",\"scriptPath\":\"datay\",\"scriptLinkedService\":{\"referenceName\":\"ugkugwtg\",\"parameters\":{\"tb\":\"datawayhauhqvxeyliis\",\"xxq\":\"dataghtkdcuf\"}},\"defines\":{\"iyyys\":\"datavfvqvernqk\"}}") - .toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("iblh", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("ugkugwtg", model.scriptLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightPigActivityTypeProperties model = new HDInsightPigActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList( - new LinkedServiceReference().withReferenceName("iblh") - .withParameters(mapOf("szxupwri", "datalpsw", "haskuiosl", "datakqnbiiandhsjp", "rcx", - "datachcuhvdrfh", "aaabtxrhemnkyk", "datanojfdiijch")), - new LinkedServiceReference().withReferenceName("ruomwyoktzffp") - .withParameters(mapOf("qvkuvy", "datahjpze", "rfok", "datai")))) - .withArguments("datacoikstap") - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withScriptPath("datay") - .withScriptLinkedService(new LinkedServiceReference().withReferenceName("ugkugwtg") - .withParameters(mapOf("tb", "datawayhauhqvxeyliis", "xxq", "dataghtkdcuf"))) - .withDefines(mapOf("iyyys", "datavfvqvernqk")); - model = BinaryData.fromObject(model).toObject(HDInsightPigActivityTypeProperties.class); - Assertions.assertEquals("iblh", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("ugkugwtg", 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 42abfee7fe44..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightSparkActivityTests.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.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightSparkActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightSparkActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightSparkActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightSpark\",\"typeProperties\":{\"rootPath\":\"datav\",\"entryFilePath\":\"dataz\",\"arguments\":[\"datanfyubctwnfnqqnum\",\"datanavfpkleie\"],\"getDebugInfo\":\"Failure\",\"sparkJobLinkedService\":{\"referenceName\":\"b\",\"parameters\":{\"hnbofe\":\"datayoria\",\"kbvvw\":\"datacctppbgzfmuyl\"}},\"className\":\"trqsobusurxv\",\"proxyUser\":\"dataxlbsnskcksfxt\",\"sparkConfig\":{\"f\":\"datawxpm\",\"ugbi\":\"datanccbvchozkmifyxd\"}},\"linkedServiceName\":{\"referenceName\":\"nbtqdrkwr\",\"parameters\":{\"fqne\":\"dataoidhbulvkisyh\",\"dddeahfgdjahnsm\":\"datap\",\"qdxjdolobt\":\"datatkh\"}},\"policy\":{\"timeout\":\"dataxnlaurviyntc\",\"retry\":\"datapbzoqtf\",\"retryIntervalInSeconds\":2054907575,\"secureInput\":false,\"secureOutput\":true,\"\":{\"ngrkjbdaxttoe\":\"datablb\",\"znrjws\":\"datafohipijfywmmqz\"}},\"name\":\"cktcwgnkxjd\",\"description\":\"diundzawotpiakle\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ntr\",\"dependencyConditions\":[\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"wd\":\"dataeudcgdljbn\",\"giuzbpgskgpws\":\"datafn\"}}],\"userProperties\":[{\"name\":\"hn\",\"value\":\"dataxpzjtiktg\"}],\"\":{\"akgzcmbgw\":\"datawefstize\",\"jpxpwxabvxwoa\":\"datalnmddflckum\",\"ozkm\":\"dataoeillszdgy\",\"yrwdmgrfhvew\":\"databzuilynbdvbuxlji\"}}") - .toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("cktcwgnkxjd", model.name()); - Assertions.assertEquals("diundzawotpiakle", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ntr", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hn", model.userProperties().get(0).name()); - Assertions.assertEquals("nbtqdrkwr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2054907575, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("b", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("trqsobusurxv", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivity model = new HDInsightSparkActivity().withName("cktcwgnkxjd") - .withDescription("diundzawotpiakle") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("ntr") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("hn").withValue("dataxpzjtiktg"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nbtqdrkwr") - .withParameters( - mapOf("fqne", "dataoidhbulvkisyh", "dddeahfgdjahnsm", "datap", "qdxjdolobt", "datatkh"))) - .withPolicy(new ActivityPolicy().withTimeout("dataxnlaurviyntc") - .withRetry("datapbzoqtf") - .withRetryIntervalInSeconds(2054907575) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withRootPath("datav") - .withEntryFilePath("dataz") - .withArguments(Arrays.asList("datanfyubctwnfnqqnum", "datanavfpkleie")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.FAILURE) - .withSparkJobLinkedService(new LinkedServiceReference().withReferenceName("b") - .withParameters(mapOf("hnbofe", "datayoria", "kbvvw", "datacctppbgzfmuyl"))) - .withClassName("trqsobusurxv") - .withProxyUser("dataxlbsnskcksfxt") - .withSparkConfig(mapOf("f", "datawxpm", "ugbi", "datanccbvchozkmifyxd")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivity.class); - Assertions.assertEquals("cktcwgnkxjd", model.name()); - Assertions.assertEquals("diundzawotpiakle", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ntr", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("hn", model.userProperties().get(0).name()); - Assertions.assertEquals("nbtqdrkwr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(2054907575, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.FAILURE, model.getDebugInfo()); - Assertions.assertEquals("b", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("trqsobusurxv", 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 9cec82ed0930..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\":\"datavwmybokqpfhs\",\"entryFilePath\":\"databpjzoyzy\",\"arguments\":[\"dataszthpnwzpki\",\"dataefygdaumerkgmgqy\",\"dataejqka\",\"dataxi\"],\"getDebugInfo\":\"None\",\"sparkJobLinkedService\":{\"referenceName\":\"xoihcqxexbksa\",\"parameters\":{\"gpszwvooxieyyww\":\"datacwyrtluujyesp\",\"fybktbviaqvzzszc\":\"dataiwiaqrc\",\"rxo\":\"dataw\",\"twwaxx\":\"datavygdefpy\"}},\"className\":\"rdsmra\",\"proxyUser\":\"datat\",\"sparkConfig\":{\"dlbocecmnqcgbi\":\"dataxmd\",\"ebvxu\":\"dataypcwbyrkx\",\"kcrc\":\"datachegeog\"}}") - .toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("xoihcqxexbksa", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("rdsmra", model.className()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightSparkActivityTypeProperties model - = new HDInsightSparkActivityTypeProperties().withRootPath("datavwmybokqpfhs") - .withEntryFilePath("databpjzoyzy") - .withArguments(Arrays.asList("dataszthpnwzpki", "dataefygdaumerkgmgqy", "dataejqka", "dataxi")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withSparkJobLinkedService(new LinkedServiceReference().withReferenceName("xoihcqxexbksa") - .withParameters(mapOf("gpszwvooxieyyww", "datacwyrtluujyesp", "fybktbviaqvzzszc", "dataiwiaqrc", - "rxo", "dataw", "twwaxx", "datavygdefpy"))) - .withClassName("rdsmra") - .withProxyUser("datat") - .withSparkConfig(mapOf("dlbocecmnqcgbi", "dataxmd", "ebvxu", "dataypcwbyrkx", "kcrc", "datachegeog")); - model = BinaryData.fromObject(model).toObject(HDInsightSparkActivityTypeProperties.class); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("xoihcqxexbksa", model.sparkJobLinkedService().referenceName()); - Assertions.assertEquals("rdsmra", 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 d4111f715e68..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTests.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.HDInsightStreamingActivity; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightStreamingActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightStreamingActivity model = BinaryData.fromString( - "{\"type\":\"HDInsightStreaming\",\"typeProperties\":{\"storageLinkedServices\":[{\"referenceName\":\"cffbsnlv\",\"parameters\":{\"nsojdmesoxjkpwbg\":\"datayzwtzdyzufg\"}},{\"referenceName\":\"h\",\"parameters\":{\"bxtwsre\":\"datahvupbiouuqo\"}},{\"referenceName\":\"dghlokvisqzmhei\",\"parameters\":{\"nfjgrtkegrtvwff\":\"dataoo\",\"bzykk\":\"databvuxpyveavst\"}},{\"referenceName\":\"djkanizd\",\"parameters\":{\"mwxvfr\":\"datagz\",\"wbahi\":\"datavt\"}}],\"arguments\":[\"datasbrqeywhlqydhh\",\"datapuvhucawmhbq\",\"datally\",\"databqvnbxgk\"],\"getDebugInfo\":\"None\",\"mapper\":\"dataoumgvwbytzheqvzw\",\"reducer\":\"datammw\",\"input\":\"dataax\",\"output\":\"datacbihgcdujhza\",\"filePaths\":[\"datakqrbt\",\"datamifleiz\",\"datauka\",\"datat\"],\"fileLinkedService\":{\"referenceName\":\"ufvabci\",\"parameters\":{\"pliwgkozl\":\"datayf\"}},\"combiner\":\"datafrajpyu\",\"commandEnvironment\":[\"datagf\",\"datalllsungzvytbqq\"],\"defines\":{\"ugjea\":\"datauyyrcqsyq\",\"yeupkpyzaenar\":\"datatgmmfdfdqoepw\",\"cbt\":\"datayrlqiykhoygfgch\",\"kl\":\"datacsskgug\"}},\"linkedServiceName\":{\"referenceName\":\"mymkccclefawfeea\",\"parameters\":{\"gowfqrykikhf\":\"datamm\"}},\"policy\":{\"timeout\":\"datacllz\",\"retry\":\"datazifohtsmkf\",\"retryIntervalInSeconds\":1954134029,\"secureInput\":true,\"secureOutput\":true,\"\":{\"ionnqszn\":\"datahbxb\",\"o\":\"databi\",\"dteyvpv\":\"dataexjcrw\"}},\"name\":\"cqjgwtiasfbp\",\"description\":\"vxxxhbrysnszse\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ykrndxbk\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"qyedhyfncwiyfzu\":\"datafhl\"}},{\"activity\":\"bsaaxstnziv\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"hc\":\"datawzbzedhcxyg\",\"xmxqskemta\":\"datanyoktcgmcthjgb\",\"bticnidubo\":\"datajfmkwqp\",\"vwalhawoptiq\":\"datamjiib\"}},{\"activity\":\"u\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Succeeded\"],\"\":{\"mmwylrv\":\"dataxsmapd\",\"mtnrcvovhyqexuj\":\"datataelpuxhkuemcbt\"}},{\"activity\":\"leweegvq\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Succeeded\",\"Succeeded\"],\"\":{\"cpf\":\"datac\",\"mgsi\":\"datammgfwxthr\"}}],\"userProperties\":[{\"name\":\"sclhjgckkbnaseny\",\"value\":\"datahmwzgfankeoloros\"},{\"name\":\"hgcchzu\",\"value\":\"datapkhfh\"}],\"\":{\"dyj\":\"datazyeyfkin\",\"vbpneymlctnns\":\"datafpuuyk\",\"azzp\":\"datacufijvaxu\",\"bnqyewinlenht\":\"dataldaaxglx\"}}") - .toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("cqjgwtiasfbp", model.name()); - Assertions.assertEquals("vxxxhbrysnszse", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ykrndxbk", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sclhjgckkbnaseny", model.userProperties().get(0).name()); - Assertions.assertEquals("mymkccclefawfeea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1954134029, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("cffbsnlv", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("ufvabci", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivity model - = new HDInsightStreamingActivity().withName("cqjgwtiasfbp") - .withDescription("vxxxhbrysnszse") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ykrndxbk") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bsaaxstnziv") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("u") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("leweegvq") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("sclhjgckkbnaseny").withValue("datahmwzgfankeoloros"), - new UserProperty().withName("hgcchzu").withValue("datapkhfh"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mymkccclefawfeea") - .withParameters(mapOf("gowfqrykikhf", "datamm"))) - .withPolicy(new ActivityPolicy() - .withTimeout("datacllz") - .withRetry("datazifohtsmkf") - .withRetryIntervalInSeconds(1954134029) - .withSecureInput(true) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference() - .withReferenceName("cffbsnlv") - .withParameters(mapOf("nsojdmesoxjkpwbg", "datayzwtzdyzufg")), - new LinkedServiceReference().withReferenceName("h") - .withParameters(mapOf("bxtwsre", "datahvupbiouuqo")), - new LinkedServiceReference().withReferenceName("dghlokvisqzmhei") - .withParameters(mapOf("nfjgrtkegrtvwff", "dataoo", "bzykk", "databvuxpyveavst")), - new LinkedServiceReference().withReferenceName("djkanizd") - .withParameters(mapOf("mwxvfr", "datagz", "wbahi", "datavt")))) - .withArguments(Arrays.asList("datasbrqeywhlqydhh", "datapuvhucawmhbq", "datally", "databqvnbxgk")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.NONE) - .withMapper("dataoumgvwbytzheqvzw") - .withReducer("datammw") - .withInput("dataax") - .withOutput("datacbihgcdujhza") - .withFilePaths(Arrays.asList("datakqrbt", "datamifleiz", "datauka", "datat")) - .withFileLinkedService(new LinkedServiceReference().withReferenceName("ufvabci") - .withParameters(mapOf("pliwgkozl", "datayf"))) - .withCombiner("datafrajpyu") - .withCommandEnvironment(Arrays.asList("datagf", "datalllsungzvytbqq")) - .withDefines(mapOf("ugjea", "datauyyrcqsyq", "yeupkpyzaenar", "datatgmmfdfdqoepw", "cbt", - "datayrlqiykhoygfgch", "kl", "datacsskgug")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivity.class); - Assertions.assertEquals("cqjgwtiasfbp", model.name()); - Assertions.assertEquals("vxxxhbrysnszse", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ykrndxbk", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("sclhjgckkbnaseny", model.userProperties().get(0).name()); - Assertions.assertEquals("mymkccclefawfeea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1954134029, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("cffbsnlv", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.NONE, model.getDebugInfo()); - Assertions.assertEquals("ufvabci", 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 38737bfd407e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HDInsightStreamingActivityTypePropertiesTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightStreamingActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HDInsightStreamingActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HDInsightStreamingActivityTypeProperties model = BinaryData.fromString( - "{\"storageLinkedServices\":[{\"referenceName\":\"btvnedcclpbhntoi\",\"parameters\":{\"oxqkcayy\":\"dataerrieh\"}}],\"arguments\":[\"datallkyiqj\",\"dataxvxgrftidk\",\"dataotvhivvoczsrypfv\",\"dataiwjjqps\"],\"getDebugInfo\":\"Always\",\"mapper\":\"datakeygmqnuyusnhn\",\"reducer\":\"dataekhfdlbcucwfc\",\"input\":\"dataugtcccydldavozmi\",\"output\":\"datatkv\",\"filePaths\":[\"datapgllsrran\",\"dataxxwt\"],\"fileLinkedService\":{\"referenceName\":\"rohlkgzczjwiz\",\"parameters\":{\"benaahdjn\":\"datarkwyldttggcpqmkp\",\"tvpeirhstwpbvw\":\"datayc\",\"cqpqkpnvsuaizxdl\":\"dataqhpphjimo\",\"xotyjgx\":\"datajs\"}},\"combiner\":\"datafejiurldsft\",\"commandEnvironment\":[\"datacdqvunvnggqa\",\"dataforuwqbendzruu\",\"datacbsttjdioe\",\"dataifzqqsvofo\"],\"defines\":{\"uuzpiooacjxsof\":\"dataphwv\",\"oux\":\"datairitpqqpynrl\"}}") - .toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("btvnedcclpbhntoi", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("rohlkgzczjwiz", model.fileLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HDInsightStreamingActivityTypeProperties model = new HDInsightStreamingActivityTypeProperties() - .withStorageLinkedServices(Arrays.asList(new LinkedServiceReference().withReferenceName("btvnedcclpbhntoi") - .withParameters(mapOf("oxqkcayy", "dataerrieh")))) - .withArguments(Arrays.asList("datallkyiqj", "dataxvxgrftidk", "dataotvhivvoczsrypfv", "dataiwjjqps")) - .withGetDebugInfo(HDInsightActivityDebugInfoOption.ALWAYS) - .withMapper("datakeygmqnuyusnhn") - .withReducer("dataekhfdlbcucwfc") - .withInput("dataugtcccydldavozmi") - .withOutput("datatkv") - .withFilePaths(Arrays.asList("datapgllsrran", "dataxxwt")) - .withFileLinkedService(new LinkedServiceReference().withReferenceName("rohlkgzczjwiz") - .withParameters(mapOf("benaahdjn", "datarkwyldttggcpqmkp", "tvpeirhstwpbvw", "datayc", - "cqpqkpnvsuaizxdl", "dataqhpphjimo", "xotyjgx", "datajs"))) - .withCombiner("datafejiurldsft") - .withCommandEnvironment( - Arrays.asList("datacdqvunvnggqa", "dataforuwqbendzruu", "datacbsttjdioe", "dataifzqqsvofo")) - .withDefines(mapOf("uuzpiooacjxsof", "dataphwv", "oux", "datairitpqqpynrl")); - model = BinaryData.fromObject(model).toObject(HDInsightStreamingActivityTypeProperties.class); - Assertions.assertEquals("btvnedcclpbhntoi", model.storageLinkedServices().get(0).referenceName()); - Assertions.assertEquals(HDInsightActivityDebugInfoOption.ALWAYS, model.getDebugInfo()); - Assertions.assertEquals("rohlkgzczjwiz", model.fileLinkedService().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java deleted file mode 100644 index f59c4c6f7bf4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsLocationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HdfsLocation; - -public final class HdfsLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsLocation model = BinaryData.fromString( - "{\"type\":\"HdfsLocation\",\"folderPath\":\"datajztivfwjlofzek\",\"fileName\":\"datarmauklaj\",\"\":{\"xnhwh\":\"dataoczhapejovtk\"}}") - .toObject(HdfsLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsLocation model = new HdfsLocation().withFolderPath("datajztivfwjlofzek").withFileName("datarmauklaj"); - model = BinaryData.fromObject(model).toObject(HdfsLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java deleted file mode 100644 index 1838364852d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsReadSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; -import com.azure.resourcemanager.datafactory.models.HdfsReadSettings; - -public final class HdfsReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsReadSettings model = BinaryData.fromString( - "{\"type\":\"HdfsReadSettings\",\"recursive\":\"datafayyuqecwrtred\",\"wildcardFolderPath\":\"datazsnfgmohhcghvsmv\",\"wildcardFileName\":\"datapkymq\",\"fileListPath\":\"datavwfao\",\"enablePartitionDiscovery\":\"datalboawzplwghfg\",\"partitionRootPath\":\"dataarmtuprqtcxqkoh\",\"modifiedDatetimeStart\":\"datayajkdejpar\",\"modifiedDatetimeEnd\":\"datasbozfjbdyyxhjf\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"databwmrdl\",\"tempScriptPath\":\"databklhwrikr\",\"distcpOptions\":\"dataj\"},\"deleteFilesAfterCompletion\":\"datagzffemryoia\",\"maxConcurrentConnections\":\"databz\",\"disableMetricsCollection\":\"datalc\",\"\":{\"iibxol\":\"datamvbhb\",\"ixr\":\"datainxxj\"}}") - .toObject(HdfsReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsReadSettings model = new HdfsReadSettings().withMaxConcurrentConnections("databz") - .withDisableMetricsCollection("datalc") - .withRecursive("datafayyuqecwrtred") - .withWildcardFolderPath("datazsnfgmohhcghvsmv") - .withWildcardFileName("datapkymq") - .withFileListPath("datavwfao") - .withEnablePartitionDiscovery("datalboawzplwghfg") - .withPartitionRootPath("dataarmtuprqtcxqkoh") - .withModifiedDatetimeStart("datayajkdejpar") - .withModifiedDatetimeEnd("datasbozfjbdyyxhjf") - .withDistcpSettings(new DistcpSettings().withResourceManagerEndpoint("databwmrdl") - .withTempScriptPath("databklhwrikr") - .withDistcpOptions("dataj")) - .withDeleteFilesAfterCompletion("datagzffemryoia"); - 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 a04c46167308..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HdfsSourceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DistcpSettings; -import com.azure.resourcemanager.datafactory.models.HdfsSource; - -public final class HdfsSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HdfsSource model = BinaryData.fromString( - "{\"type\":\"HdfsSource\",\"recursive\":\"datadrvkbcsvnnvk\",\"distcpSettings\":{\"resourceManagerEndpoint\":\"datazldzzjj\",\"tempScriptPath\":\"datazhj\",\"distcpOptions\":\"datangopdvnzndliodaj\"},\"sourceRetryCount\":\"dataszdyv\",\"sourceRetryWait\":\"dataiufbw\",\"maxConcurrentConnections\":\"dataawh\",\"disableMetricsCollection\":\"datah\",\"\":{\"kqajia\":\"dataeedbhnklesvzdv\"}}") - .toObject(HdfsSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HdfsSource model = new HdfsSource().withSourceRetryCount("dataszdyv") - .withSourceRetryWait("dataiufbw") - .withMaxConcurrentConnections("dataawh") - .withDisableMetricsCollection("datah") - .withRecursive("datadrvkbcsvnnvk") - .withDistcpSettings(new DistcpSettings().withResourceManagerEndpoint("datazldzzjj") - .withTempScriptPath("datazhj") - .withDistcpOptions("datangopdvnzndliodaj")); - model = BinaryData.fromObject(model).toObject(HdfsSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java deleted file mode 100644 index 51bd37fcf5ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HiveDatasetTypeProperties; - -public final class HiveDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datauklx\",\"table\":\"datalmzpyq\",\"schema\":\"datahuecxhgs\"}") - .toObject(HiveDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveDatasetTypeProperties model = new HiveDatasetTypeProperties().withTableName("datauklx") - .withTable("datalmzpyq") - .withSchema("datahuecxhgs"); - model = BinaryData.fromObject(model).toObject(HiveDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java deleted file mode 100644 index b82d62e5ca05..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HiveObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HiveObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveObjectDataset model = BinaryData.fromString( - "{\"type\":\"HiveObject\",\"typeProperties\":{\"tableName\":\"datagjndkvzmxl\",\"table\":\"dataqgdodn\",\"schema\":\"datayipgkmjt\"},\"description\":\"zmdzesimeft\",\"structure\":\"datarfzjlflzagvdavab\",\"schema\":\"dataefcor\",\"linkedServiceName\":{\"referenceName\":\"bidaeb\",\"parameters\":{\"fajw\":\"dataicew\",\"wwsr\":\"dataylciobb\"}},\"parameters\":{\"mnteevfg\":{\"type\":\"Object\",\"defaultValue\":\"dataecuuuex\"}},\"annotations\":[\"dataezraqsddkod\",\"datagxqfkyr\"],\"folder\":{\"name\":\"zzeglwdzfss\"},\"\":{\"ddkkraj\":\"datagaok\"}}") - .toObject(HiveObjectDataset.class); - Assertions.assertEquals("zmdzesimeft", model.description()); - Assertions.assertEquals("bidaeb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("mnteevfg").type()); - Assertions.assertEquals("zzeglwdzfss", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveObjectDataset model = new HiveObjectDataset().withDescription("zmdzesimeft") - .withStructure("datarfzjlflzagvdavab") - .withSchema("dataefcor") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bidaeb") - .withParameters(mapOf("fajw", "dataicew", "wwsr", "dataylciobb"))) - .withParameters(mapOf("mnteevfg", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataecuuuex"))) - .withAnnotations(Arrays.asList("dataezraqsddkod", "datagxqfkyr")) - .withFolder(new DatasetFolder().withName("zzeglwdzfss")) - .withTableName("datagjndkvzmxl") - .withTable("dataqgdodn") - .withSchemaTypePropertiesSchema("datayipgkmjt"); - model = BinaryData.fromObject(model).toObject(HiveObjectDataset.class); - Assertions.assertEquals("zmdzesimeft", model.description()); - Assertions.assertEquals("bidaeb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("mnteevfg").type()); - Assertions.assertEquals("zzeglwdzfss", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java deleted file mode 100644 index a69d91da91ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HiveSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HiveSource; - -public final class HiveSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HiveSource model = BinaryData.fromString( - "{\"type\":\"HiveSource\",\"query\":\"datayxx\",\"queryTimeout\":\"dataabqlakknaacseqo\",\"additionalColumns\":\"datajsf\",\"sourceRetryCount\":\"datayqrrsjqtdj\",\"sourceRetryWait\":\"datadm\",\"maxConcurrentConnections\":\"dataiml\",\"disableMetricsCollection\":\"datazezcivkzrvy\",\"\":{\"oelyjduzapn\":\"dataqgyui\",\"odprrqcagl\":\"datapo\"}}") - .toObject(HiveSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HiveSource model = new HiveSource().withSourceRetryCount("datayqrrsjqtdj") - .withSourceRetryWait("datadm") - .withMaxConcurrentConnections("dataiml") - .withDisableMetricsCollection("datazezcivkzrvy") - .withQueryTimeout("dataabqlakknaacseqo") - .withAdditionalColumns("datajsf") - .withQuery("datayxx"); - model = BinaryData.fromObject(model).toObject(HiveSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java deleted file mode 100644 index d1dc744af4b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.azure.resourcemanager.datafactory.models.HttpDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HttpDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpDataset model = BinaryData.fromString( - "{\"type\":\"HttpFile\",\"typeProperties\":{\"relativeUrl\":\"datayhbceevogir\",\"requestMethod\":\"dataw\",\"requestBody\":\"datatvuxeu\",\"additionalHeaders\":\"datadssijuaxxf\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datapkcpws\",\"deserializer\":\"datannmjun\",\"\":{\"bcyc\":\"dataxcltj\",\"sihxvtac\":\"dataqak\",\"pxpry\":\"datawf\"}},\"compression\":{\"type\":\"datasbubwhzqqgugwlux\",\"level\":\"datatqmmkdhwq\",\"\":{\"ucosvkkeer\":\"dataebagmfpkephuj\",\"lgnuee\":\"datavypaxpjpyi\",\"cgmbg\":\"datafpffbuqxknv\",\"zoksgqhb\":\"datayojfchicpare\"}}},\"description\":\"juxilozbl\",\"structure\":\"datarfldfljwtkbptsfl\",\"schema\":\"dataumbmwgftshfg\",\"linkedServiceName\":{\"referenceName\":\"uxuqiagskoi\",\"parameters\":{\"hskxpa\":\"datai\",\"rjugcfeb\":\"datawkgvnlfueyxfzibr\",\"bvr\":\"dataiuce\"}},\"parameters\":{\"qjzlwrduxntp\":{\"type\":\"String\",\"defaultValue\":\"dataknbdzwilsxry\"}},\"annotations\":[\"datagj\"],\"folder\":{\"name\":\"xfwf\"},\"\":{\"upjckiehdm\":\"dataveyfbkqynlzxeme\"}}") - .toObject(HttpDataset.class); - Assertions.assertEquals("juxilozbl", model.description()); - Assertions.assertEquals("uxuqiagskoi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("qjzlwrduxntp").type()); - Assertions.assertEquals("xfwf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDataset model = new HttpDataset().withDescription("juxilozbl") - .withStructure("datarfldfljwtkbptsfl") - .withSchema("dataumbmwgftshfg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uxuqiagskoi") - .withParameters(mapOf("hskxpa", "datai", "rjugcfeb", "datawkgvnlfueyxfzibr", "bvr", "dataiuce"))) - .withParameters(mapOf("qjzlwrduxntp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataknbdzwilsxry"))) - .withAnnotations(Arrays.asList("datagj")) - .withFolder(new DatasetFolder().withName("xfwf")) - .withRelativeUrl("datayhbceevogir") - .withRequestMethod("dataw") - .withRequestBody("datatvuxeu") - .withAdditionalHeaders("datadssijuaxxf") - .withFormat(new DatasetStorageFormat().withSerializer("datapkcpws") - .withDeserializer("datannmjun") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datasbubwhzqqgugwlux") - .withLevel("datatqmmkdhwq") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(HttpDataset.class); - Assertions.assertEquals("juxilozbl", model.description()); - Assertions.assertEquals("uxuqiagskoi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("qjzlwrduxntp").type()); - Assertions.assertEquals("xfwf", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java deleted file mode 100644 index 2ccc5937e9b1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpDatasetTypePropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.HttpDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import java.util.HashMap; -import java.util.Map; - -public final class HttpDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpDatasetTypeProperties model = BinaryData.fromString( - "{\"relativeUrl\":\"datao\",\"requestMethod\":\"dataxxxffgmcuanszee\",\"requestBody\":\"datagcgcsapvbcq\",\"additionalHeaders\":\"datausekijhm\",\"format\":{\"type\":\"DatasetStorageFormat\",\"serializer\":\"datank\",\"deserializer\":\"datavpyr\",\"\":{\"j\":\"datarlfqm\",\"vurkmjufavvln\":\"datawynbfvvc\"}},\"compression\":{\"type\":\"datasotmynklnmrz\",\"level\":\"datatvrkkfcwxizkstx\",\"\":{\"vriuvnfazxtvs\":\"datakeipxutc\",\"kqtjwrv\":\"datayyaeiivj\",\"qetxtdqiuspguzlj\":\"datawojoqf\"}}}") - .toObject(HttpDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpDatasetTypeProperties model = new HttpDatasetTypeProperties().withRelativeUrl("datao") - .withRequestMethod("dataxxxffgmcuanszee") - .withRequestBody("datagcgcsapvbcq") - .withAdditionalHeaders("datausekijhm") - .withFormat(new DatasetStorageFormat().withSerializer("datank") - .withDeserializer("datavpyr") - .withAdditionalProperties(mapOf("type", "DatasetStorageFormat"))) - .withCompression(new DatasetCompression().withType("datasotmynklnmrz") - .withLevel("datatvrkkfcwxizkstx") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(HttpDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java deleted file mode 100644 index 3741f3af6174..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpReadSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpReadSettings; - -public final class HttpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpReadSettings model = BinaryData.fromString( - "{\"type\":\"HttpReadSettings\",\"requestMethod\":\"datavxdkwvceqlyxbyqq\",\"requestBody\":\"datakreki\",\"additionalHeaders\":\"datausmdodk\",\"requestTimeout\":\"dataycntaov\",\"additionalColumns\":\"dataykxyf\",\"maxConcurrentConnections\":\"datads\",\"disableMetricsCollection\":\"dataywrwvs\",\"\":{\"natl\":\"datajlbkqygszh\",\"wlkyrnmgsbu\":\"datajekqz\"}}") - .toObject(HttpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpReadSettings model = new HttpReadSettings().withMaxConcurrentConnections("datads") - .withDisableMetricsCollection("dataywrwvs") - .withRequestMethod("datavxdkwvceqlyxbyqq") - .withRequestBody("datakreki") - .withAdditionalHeaders("datausmdodk") - .withRequestTimeout("dataycntaov") - .withAdditionalColumns("dataykxyf"); - model = BinaryData.fromObject(model).toObject(HttpReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java deleted file mode 100644 index 5b9f8d32339a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpServerLocationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpServerLocation; - -public final class HttpServerLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpServerLocation model = BinaryData.fromString( - "{\"type\":\"HttpServerLocation\",\"relativeUrl\":\"datazzxljbkhxsdpla\",\"folderPath\":\"datay\",\"fileName\":\"datahweqjfyxydgtok\",\"\":{\"akglhpsesrfga\":\"datavwglgwzpv\",\"vxcgdhyhgoqgs\":\"dataqiy\",\"glqjoxtdahneaoov\":\"datayqyxyjrcbqpbis\"}}") - .toObject(HttpServerLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpServerLocation model = new HttpServerLocation().withFolderPath("datay") - .withFileName("datahweqjfyxydgtok") - .withRelativeUrl("datazzxljbkhxsdpla"); - model = BinaryData.fromObject(model).toObject(HttpServerLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java deleted file mode 100644 index 5dd409847b85..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HttpSourceTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HttpSource; - -public final class HttpSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpSource model = BinaryData.fromString( - "{\"type\":\"HttpSource\",\"httpRequestTimeout\":\"dataxjlvvvzpjj\",\"sourceRetryCount\":\"dataintgkveogeld\",\"sourceRetryWait\":\"datab\",\"maxConcurrentConnections\":\"databii\",\"disableMetricsCollection\":\"databkxiujaagfeiwuux\",\"\":{\"qj\":\"datazmsivqegmpfzbrh\",\"ttsz\":\"datatkrsjspziiev\",\"d\":\"dataauyxyoyjas\"}}") - .toObject(HttpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpSource model = new HttpSource().withSourceRetryCount("dataintgkveogeld") - .withSourceRetryWait("datab") - .withMaxConcurrentConnections("databii") - .withDisableMetricsCollection("databkxiujaagfeiwuux") - .withHttpRequestTimeout("dataxjlvvvzpjj"); - model = BinaryData.fromObject(model).toObject(HttpSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java deleted file mode 100644 index 075b82266391..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.HubspotObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HubspotObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HubspotObjectDataset model = BinaryData.fromString( - "{\"type\":\"HubspotObject\",\"typeProperties\":{\"tableName\":\"datamhp\"},\"description\":\"sfgvrvq\",\"structure\":\"datawbdrwroqkljnzpqh\",\"schema\":\"datasarkyulfa\",\"linkedServiceName\":{\"referenceName\":\"ea\",\"parameters\":{\"geytlplslfc\":\"dataqenhekzaz\",\"ksuowt\":\"datae\",\"rhnxzmfvmw\":\"datalkyqfnjo\",\"rawwhyxf\":\"datanrtc\"}},\"parameters\":{\"uns\":{\"type\":\"String\",\"defaultValue\":\"datadmvwn\"}},\"annotations\":[\"dataevzshqykebmps\",\"dataaezc\",\"datadkckr\"],\"folder\":{\"name\":\"qdmhcejstfs\"},\"\":{\"wxqd\":\"datajakgk\",\"wdjox\":\"dataoqzh\",\"sobvcnsb\":\"datakbd\"}}") - .toObject(HubspotObjectDataset.class); - Assertions.assertEquals("sfgvrvq", model.description()); - Assertions.assertEquals("ea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uns").type()); - Assertions.assertEquals("qdmhcejstfs", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotObjectDataset model = new HubspotObjectDataset().withDescription("sfgvrvq") - .withStructure("datawbdrwroqkljnzpqh") - .withSchema("datasarkyulfa") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("ea") - .withParameters(mapOf("geytlplslfc", "dataqenhekzaz", "ksuowt", "datae", "rhnxzmfvmw", "datalkyqfnjo", - "rawwhyxf", "datanrtc"))) - .withParameters( - mapOf("uns", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datadmvwn"))) - .withAnnotations(Arrays.asList("dataevzshqykebmps", "dataaezc", "datadkckr")) - .withFolder(new DatasetFolder().withName("qdmhcejstfs")) - .withTableName("datamhp"); - model = BinaryData.fromObject(model).toObject(HubspotObjectDataset.class); - Assertions.assertEquals("sfgvrvq", model.description()); - Assertions.assertEquals("ea", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("uns").type()); - Assertions.assertEquals("qdmhcejstfs", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java deleted file mode 100644 index f8973db45a90..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/HubspotSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.HubspotSource; - -public final class HubspotSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HubspotSource model = BinaryData.fromString( - "{\"type\":\"HubspotSource\",\"query\":\"datax\",\"queryTimeout\":\"databdpczmzu\",\"additionalColumns\":\"datacehfw\",\"sourceRetryCount\":\"dataclea\",\"sourceRetryWait\":\"dataviqskylwpqrcyf\",\"maxConcurrentConnections\":\"datanwmdpbsotknhfxp\",\"disableMetricsCollection\":\"dataruuckrz\",\"\":{\"q\":\"dataqaptqyrnlyuyopww\",\"wbssvfzjjflcxeos\":\"datau\",\"p\":\"datalgj\",\"pwvpnbgy\":\"datajujbqrfw\"}}") - .toObject(HubspotSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HubspotSource model = new HubspotSource().withSourceRetryCount("dataclea") - .withSourceRetryWait("dataviqskylwpqrcyf") - .withMaxConcurrentConnections("datanwmdpbsotknhfxp") - .withDisableMetricsCollection("dataruuckrz") - .withQueryTimeout("databdpczmzu") - .withAdditionalColumns("datacehfw") - .withQuery("datax"); - model = BinaryData.fromObject(model).toObject(HubspotSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTests.java deleted file mode 100644 index 5cc710e719b6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.IcebergDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IcebergDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergDataset model = BinaryData.fromString( - "{\"type\":\"Iceberg\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataufpnezsjzaymld\",\"fileName\":\"datar\",\"\":{\"uwdhtq\":\"datagzmsimehtc\",\"gi\":\"datahyhnimxtns\",\"ymicjixx\":\"datanomwnwnghojovke\",\"ebdvey\":\"datasfpcrtnuguefxxij\"}}},\"description\":\"tkrhlolmc\",\"structure\":\"dataepfgsvbbvaqdl\",\"schema\":\"datapetlrn\",\"linkedServiceName\":{\"referenceName\":\"detawevxehue\",\"parameters\":{\"zvdov\":\"datal\",\"dcb\":\"datarblerlprdaqcc\",\"ykdigqzlrznda\":\"dataygdjccxwbpw\"}},\"parameters\":{\"tgkiqlarh\":{\"type\":\"Int\",\"defaultValue\":\"datamjqmv\"},\"azekdzdzffzjwzts\":{\"type\":\"Int\",\"defaultValue\":\"datav\"},\"atig\":{\"type\":\"String\",\"defaultValue\":\"datahggryelgf\"}},\"annotations\":[\"datarrkdknczgor\",\"datawnvojtvmdev\",\"datalhqvbk\",\"datarbpyhssrl\"],\"folder\":{\"name\":\"kpkocm\"},\"\":{\"vspeslhwyykgvr\":\"dataebxxopyic\",\"gajkrdyddtpfcud\":\"datacpumdd\"}}") - .toObject(IcebergDataset.class); - Assertions.assertEquals("tkrhlolmc", model.description()); - Assertions.assertEquals("detawevxehue", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("tgkiqlarh").type()); - Assertions.assertEquals("kpkocm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergDataset model = new IcebergDataset().withDescription("tkrhlolmc") - .withStructure("dataepfgsvbbvaqdl") - .withSchema("datapetlrn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("detawevxehue") - .withParameters( - mapOf("zvdov", "datal", "dcb", "datarblerlprdaqcc", "ykdigqzlrznda", "dataygdjccxwbpw"))) - .withParameters(mapOf("tgkiqlarh", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datamjqmv"), - "azekdzdzffzjwzts", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datav"), - "atig", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahggryelgf"))) - .withAnnotations(Arrays.asList("datarrkdknczgor", "datawnvojtvmdev", "datalhqvbk", "datarbpyhssrl")) - .withFolder(new DatasetFolder().withName("kpkocm")) - .withLocation(new DatasetLocation().withFolderPath("dataufpnezsjzaymld") - .withFileName("datar") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))); - model = BinaryData.fromObject(model).toObject(IcebergDataset.class); - Assertions.assertEquals("tkrhlolmc", model.description()); - Assertions.assertEquals("detawevxehue", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("tgkiqlarh").type()); - Assertions.assertEquals("kpkocm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTypePropertiesTests.java deleted file mode 100644 index bc30d8276bcf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergDatasetTypePropertiesTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IcebergDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class IcebergDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datafnbfbq\",\"fileName\":\"datanqnxhgkordwzej\",\"\":{\"cmbpwdlu\":\"datawz\",\"mtffbvtzldzchuba\":\"dataayprldid\"}}}") - .toObject(IcebergDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergDatasetTypeProperties model - = new IcebergDatasetTypeProperties().withLocation(new DatasetLocation().withFolderPath("datafnbfbq") - .withFileName("datanqnxhgkordwzej") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))); - model = BinaryData.fromObject(model).toObject(IcebergDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergSinkTests.java deleted file mode 100644 index f8840210490a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergSinkTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IcebergSink; -import com.azure.resourcemanager.datafactory.models.IcebergWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class IcebergSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergSink model = BinaryData.fromString( - "{\"type\":\"IcebergSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataqgeovnlbjfsollr\",\"disableMetricsCollection\":\"dataulnhxrcjshicvrm\",\"copyBehavior\":\"datagpcalqbxpp\",\"metadata\":[{\"name\":\"datarfshkjgspboae\",\"value\":\"dataxibrooogijiqwxwp\"},{\"name\":\"datad\",\"value\":\"datanp\"},{\"name\":\"datavruhdjzivlaxii\",\"value\":\"datanqmbfptzix\"},{\"name\":\"datasxxbdtjvvngn\",\"value\":\"datakzulmqxficinw\"}],\"\":{\"er\":\"dataeyxt\",\"ytten\":\"datattobosjxb\",\"lyimhspj\":\"datauditumyycvtya\",\"eoutqo\":\"datahivxblqvwhjgtbh\"}},\"formatSettings\":{\"type\":\"IcebergWriteSettings\",\"\":{\"qbo\":\"dataqi\",\"rdxoutkgezulnnt\":\"datagcwzgdf\",\"lxoljbpoeoyw\":\"databarejxj\",\"rx\":\"datakhhavwhrivvzrccy\"}},\"writeBatchSize\":\"dataypwudeearbbxan\",\"writeBatchTimeout\":\"dataiqkjupvidzh\",\"sinkRetryCount\":\"datappqcgbp\",\"sinkRetryWait\":\"datani\",\"maxConcurrentConnections\":\"datahd\",\"disableMetricsCollection\":\"datau\",\"\":{\"jbakpasuugcngdu\":\"datatlha\",\"koyrppsnljduwkbo\":\"datavdenhguvai\",\"hv\":\"datalmrhn\"}}") - .toObject(IcebergSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergSink model - = new IcebergSink().withWriteBatchSize("dataypwudeearbbxan") - .withWriteBatchTimeout("dataiqkjupvidzh") - .withSinkRetryCount("datappqcgbp") - .withSinkRetryWait("datani") - .withMaxConcurrentConnections("datahd") - .withDisableMetricsCollection("datau") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("dataqgeovnlbjfsollr") - .withDisableMetricsCollection("dataulnhxrcjshicvrm") - .withCopyBehavior("datagpcalqbxpp") - .withMetadata(Arrays.asList( - new MetadataItem().withName("datarfshkjgspboae").withValue("dataxibrooogijiqwxwp"), - new MetadataItem().withName("datad").withValue("datanp"), - new MetadataItem().withName("datavruhdjzivlaxii").withValue("datanqmbfptzix"), - new MetadataItem().withName("datasxxbdtjvvngn").withValue("datakzulmqxficinw"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new IcebergWriteSettings()); - model = BinaryData.fromObject(model).toObject(IcebergSink.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergWriteSettingsTests.java deleted file mode 100644 index b70b0ceb4d5d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IcebergWriteSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IcebergWriteSettings; - -public final class IcebergWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IcebergWriteSettings model - = BinaryData.fromString("{\"type\":\"IcebergWriteSettings\",\"\":{\"hyekggo\":\"datab\"}}") - .toObject(IcebergWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IcebergWriteSettings model = new IcebergWriteSettings(); - model = BinaryData.fromObject(model).toObject(IcebergWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java deleted file mode 100644 index 3aaf73987e5f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTests.java +++ /dev/null @@ -1,224 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.IfConditionActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IfConditionActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IfConditionActivity model = BinaryData.fromString( - "{\"type\":\"IfCondition\",\"typeProperties\":{\"expression\":{\"value\":\"pvbmbf\"},\"ifTrueActivities\":[{\"type\":\"Activity\",\"name\":\"uamdydkdcvowasl\",\"description\":\"w\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"tiefxhaqqavhfd\",\"dependencyConditions\":[\"Failed\",\"Completed\"],\"\":{\"vmymfaiw\":\"datajblmypuon\",\"xsqcvabyzdaroe\":\"datalrphadd\",\"typzziavg\":\"datawipaucl\",\"zyfldjkkvaci\":\"dataskvvnznghboqeu\"}},{\"activity\":\"daejn\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"frb\":\"datafuqqb\"}}],\"userProperties\":[{\"name\":\"p\",\"value\":\"datakvok\"},{\"name\":\"mere\",\"value\":\"datanoessuwkcnhdecxb\"},{\"name\":\"knfepixf\",\"value\":\"dataojxbyxfxdnt\"},{\"name\":\"ksbtige\",\"value\":\"datawaidqzf\"}],\"\":{\"lumrzfdb\":\"datavahbqoojdnmrx\",\"qlrmbgiaoxpfko\":\"datatnkadanl\",\"xezurhgucns\":\"datavc\",\"ibgczkk\":\"datapbleazvyftklbb\"}},{\"type\":\"Activity\",\"name\":\"rl\",\"description\":\"dkwibdri\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"lhecztmwwmybv\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Succeeded\",\"Completed\"],\"\":{\"udskcadkyoo\":\"datajglponkrhpyed\",\"f\":\"datavqpcjr\"}},{\"activity\":\"yduzzyx\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Completed\"],\"\":{\"nectfpbfgmghohox\":\"dataufmy\",\"vqcxrrkc\":\"dataonts\",\"zs\":\"dataclqlibpmfn\"}}],\"userProperties\":[{\"name\":\"kktlodsyyzmf\",\"value\":\"datagzljgrtfic\"},{\"name\":\"ejmzbasxapcegtc\",\"value\":\"dataufet\"}],\"\":{\"xgxqdmvfdocjaf\":\"datatjnneynmgvqysghk\",\"wmtfjzuqhyqvm\":\"datafiddnktutwcz\",\"dpeedzowverhtyc\":\"databsj\",\"mdsisll\":\"dataigtsrrlelpobm\"}}],\"ifFalseActivities\":[{\"type\":\"Activity\",\"name\":\"l\",\"description\":\"riimojozhd\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"fqb\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"ngiff\":\"dataudcvqeowepvn\"}},{\"activity\":\"ntopfqguovqqrc\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Skipped\"],\"\":{\"kefowncudcrw\":\"dataagurgurpcguwyuz\",\"jca\":\"dataiqsrqebjgof\"}},{\"activity\":\"d\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"mseao\":\"dataf\",\"bslwxcf\":\"dataq\",\"wnmnxppgfep\":\"datavedxyeba\"}}],\"userProperties\":[{\"name\":\"djva\",\"value\":\"dataae\"},{\"name\":\"oqknz\",\"value\":\"datanvvkfbmrppjf\"},{\"name\":\"eabgpw\",\"value\":\"datas\"}],\"\":{\"n\":\"datai\",\"telimqxwih\":\"datavdjmvzcycg\",\"hz\":\"datapyexjrguziglr\",\"isklotwnppstpq\":\"datamrvgcbf\"}},{\"type\":\"Activity\",\"name\":\"s\",\"description\":\"awolhlfffeznb\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ywiscoq\",\"dependencyConditions\":[\"Completed\"],\"\":{\"qkcikfeshxo\":\"datapchdpdevcmp\",\"d\":\"datatvkxpsxlpypzgdet\",\"sutspocrskkraap\":\"datagyhu\"}}],\"userProperties\":[{\"name\":\"ziif\",\"value\":\"datajigtqyzoc\"}],\"\":{\"bwdfjcep\":\"datawcflciooxybmk\"}},{\"type\":\"Activity\",\"name\":\"cpwtj\",\"description\":\"uhrtqn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"kns\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Skipped\"],\"\":{\"vejxh\":\"datawo\"}},{\"activity\":\"eolzftfyjcen\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"wyyyerzbmlhgytk\":\"dataxh\",\"jftcrjoh\":\"datahevodddnegwsyxdf\"}},{\"activity\":\"i\",\"dependencyConditions\":[\"Failed\"],\"\":{\"rjxkphaq\":\"datatcqjgcdltwlpu\"}}],\"userProperties\":[{\"name\":\"jufljqz\",\"value\":\"dataixlzaavvuvhyerj\"}],\"\":{\"spli\":\"datayxepllbneepfjib\"}},{\"type\":\"Activity\",\"name\":\"fqjweigywj\",\"description\":\"p\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"efdqnsuaoml\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Skipped\",\"Completed\"],\"\":{\"mcrllecquo\":\"datanane\"}}],\"userProperties\":[{\"name\":\"hkv\",\"value\":\"dataofxkelwvcyprpog\"},{\"name\":\"qvuftkiyghcmpyki\",\"value\":\"dataochpzcgs\"},{\"name\":\"pklfnst\",\"value\":\"datat\"}],\"\":{\"esf\":\"datawotk\",\"d\":\"datarsgfpds\",\"fun\":\"dataivepmtt\",\"oczoiduk\":\"datakcji\"}}]},\"name\":\"jjfne\",\"description\":\"qalwjcqbnvbzem\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"cehlgryvkubfotgi\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"fttsdtnqlggtrjzi\":\"datakirxy\",\"cinjej\":\"dataxzbu\",\"jzenagmhhmgtbqzf\":\"datainlysguladd\",\"qcprbwsndloldx\":\"datampgibmngb\"}}],\"userProperties\":[{\"name\":\"j\",\"value\":\"datajyx\"},{\"name\":\"euqcbgbs\",\"value\":\"datagxak\"},{\"name\":\"kbryolzbmdntajgg\",\"value\":\"datauyokctymsbhdi\"}],\"\":{\"pwwfei\":\"dataobsenxgkjfuwtluk\"}}") - .toObject(IfConditionActivity.class); - Assertions.assertEquals("jjfne", model.name()); - Assertions.assertEquals("qalwjcqbnvbzem", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("cehlgryvkubfotgi", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("j", model.userProperties().get(0).name()); - Assertions.assertEquals("pvbmbf", model.expression().value()); - Assertions.assertEquals("uamdydkdcvowasl", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("w", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("tiefxhaqqavhfd", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("p", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("l", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("riimojozhd", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("fqb", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("djva", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IfConditionActivity model - = new IfConditionActivity().withName("jjfne") - .withDescription("qalwjcqbnvbzem") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("cehlgryvkubfotgi") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("j").withValue("datajyx"), - new UserProperty().withName("euqcbgbs").withValue("datagxak"), - new UserProperty().withName("kbryolzbmdntajgg").withValue("datauyokctymsbhdi"))) - .withExpression(new Expression().withValue("pvbmbf")) - .withIfTrueActivities( - Arrays - .asList( - new Activity().withName("uamdydkdcvowasl") - .withDescription("w") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("tiefxhaqqavhfd") - .withDependencyConditions(Arrays - .asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("daejn") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("p").withValue("datakvok"), - new UserProperty().withName("mere").withValue("datanoessuwkcnhdecxb"), - new UserProperty() - .withName("knfepixf") - .withValue("dataojxbyxfxdnt"), - new UserProperty().withName("ksbtige").withValue("datawaidqzf"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("rl") - .withDescription("dkwibdri") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("lhecztmwwmybv") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yduzzyx") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("kktlodsyyzmf").withValue("datagzljgrtfic"), - new UserProperty().withName("ejmzbasxapcegtc").withValue("dataufet"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withIfFalseActivities( - Arrays - .asList( - new Activity().withName("l") - .withDescription("riimojozhd") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("fqb") - .withDependencyConditions(Arrays - .asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ntopfqguovqqrc") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("d") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("djva").withValue("dataae"), - new UserProperty().withName("oqknz").withValue("datanvvkfbmrppjf"), - new UserProperty().withName("eabgpw").withValue("datas"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("s") - .withDescription("awolhlfffeznb") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency() - .withActivity("ywiscoq") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ziif").withValue("datajigtqyzoc"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("cpwtj") - .withDescription("uhrtqn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency() - .withActivity("kns") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("eolzftfyjcen") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("i") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("jufljqz").withValue("dataixlzaavvuvhyerj"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("fqjweigywj") - .withDescription("p") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList(new ActivityDependency().withActivity("efdqnsuaoml") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED, DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hkv").withValue("dataofxkelwvcyprpog"), - new UserProperty().withName("qvuftkiyghcmpyki").withValue("dataochpzcgs"), - new UserProperty().withName("pklfnst").withValue("datat"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivity.class); - Assertions.assertEquals("jjfne", model.name()); - Assertions.assertEquals("qalwjcqbnvbzem", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("cehlgryvkubfotgi", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("j", model.userProperties().get(0).name()); - Assertions.assertEquals("pvbmbf", model.expression().value()); - Assertions.assertEquals("uamdydkdcvowasl", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("w", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("tiefxhaqqavhfd", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("p", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("l", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("riimojozhd", model.ifFalseActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.ifFalseActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.ifFalseActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("fqb", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("djva", 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 17510699d4ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IfConditionActivityTypePropertiesTests.java +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by 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\":\"mueuwpivsltlyq\"},\"ifTrueActivities\":[{\"type\":\"Activity\",\"name\":\"wndcjrdqcmsrzrcd\",\"description\":\"zgaoptwqfgqccon\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"dpmez\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Failed\",\"Completed\"],\"\":{\"ymqzmuinu\":\"datarafkrvvdwk\",\"djinuoslzrb\":\"datatgjgpc\",\"jgdvwamc\":\"datazfevwcjr\",\"svximqkuyflzx\":\"datacnevkfkmena\"}},{\"activity\":\"suuapktfvemwfwc\",\"dependencyConditions\":[\"Failed\"],\"\":{\"ykl\":\"datavywzh\"}},{\"activity\":\"cojxpkpsqk\",\"dependencyConditions\":[\"Completed\",\"Completed\"],\"\":{\"zpgn\":\"dataybkhyqou\"}}],\"userProperties\":[{\"name\":\"snvtl\",\"value\":\"datanmydshgfdvws\"},{\"name\":\"cczyqnfsjnrfpz\",\"value\":\"datavaeojnskekhmo\"},{\"name\":\"vvrk\",\"value\":\"datasqfazsiiz\"},{\"name\":\"whax\",\"value\":\"datahaet\"}],\"\":{\"yajyiwvqlr\":\"datafjlismacac\",\"pjbja\":\"dataobvkg\"}},{\"type\":\"Activity\",\"name\":\"nky\",\"description\":\"j\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"hukuypyeo\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Completed\",\"Succeeded\"],\"\":{\"ldgbgua\":\"datakldtwrryclj\"}},{\"activity\":\"ilcdbudfwl\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"d\":\"datarfkslgpl\",\"tmu\":\"datacmkdhgpzqibqilc\",\"rjxaawentkok\":\"dataemex\"}},{\"activity\":\"djwp\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"nvtlbc\":\"dataqfwxicbvw\",\"wof\":\"datagrk\",\"xpeodbmuzpd\":\"dataeayowzp\",\"hi\":\"datathpsycasx\"}}],\"userProperties\":[{\"name\":\"miipffjgjm\",\"value\":\"datasnfpxrzqagmci\"},{\"name\":\"sqawiabyfzadeu\",\"value\":\"datatkfvdjgw\"}],\"\":{\"ulozdoi\":\"dataqgabrbsuxgnwuy\",\"iv\":\"datahrxjiw\",\"lau\":\"dataorqlkycwnb\",\"ah\":\"dataazyrisciokbvft\"}}],\"ifFalseActivities\":[{\"type\":\"Activity\",\"name\":\"llfkcro\",\"description\":\"imhdlmagd\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ndfpd\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"tklojlgsbystznwj\":\"datasxxk\",\"ptvkjdowuzasd\":\"datasvllefliriq\",\"peeprmeb\":\"datatufmujadippdntun\",\"es\":\"dataxmaacrqrovbozj\"}},{\"activity\":\"rcxug\",\"dependencyConditions\":[\"Failed\"],\"\":{\"guelrasdrr\":\"datayvxdbuzdphogmrc\",\"njkbmfcrysvcab\":\"dataozzvygolz\",\"jmzqnbwnlo\":\"datak\",\"hrpv\":\"dataz\"}},{\"activity\":\"xutcoqclypbrnjor\",\"dependencyConditions\":[\"Failed\",\"Failed\"],\"\":{\"efhbzic\":\"dataxitppebuvxxloqr\",\"lzwvmwjuqchc\":\"datafdwgbgenwesxzu\"}}],\"userProperties\":[{\"name\":\"yscarjm\",\"value\":\"dataiewv\"},{\"name\":\"pyskhkvkwdtbvy\",\"value\":\"datalgkzbyxtprxtf\"},{\"name\":\"vng\",\"value\":\"datacsno\"},{\"name\":\"kglygeuo\",\"value\":\"datalywjvdr\"}],\"\":{\"nt\":\"datawzbrg\",\"n\":\"dataptrjtyhthfcpz\",\"g\":\"datavkhkubpojhdxcha\",\"vrnwxolfhiq\":\"dataw\"}},{\"type\":\"Activity\",\"name\":\"iulfxgzyr\",\"description\":\"uxlt\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"catozsodpbsqcw\",\"dependencyConditions\":[\"Failed\"],\"\":{\"ribmeuukk\":\"datahuixczycifdrjry\",\"jmnxlf\":\"datanwtucmh\",\"wzgb\":\"datam\",\"mrpbmxmxshfh\":\"databwmiap\"}},{\"activity\":\"p\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\",\"Failed\"],\"\":{\"vxytmoqnytucuzy\":\"datap\",\"e\":\"dataigdebsinsoybe\",\"mqjcagxrozcfcxk\":\"datarpouhlhlud\",\"kgepmnxvahqvc\":\"datahjxbteakdr\"}},{\"activity\":\"lphlkxdanlycc\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Skipped\"],\"\":{\"qzdedizdmwndnsg\":\"dataa\"}}],\"userProperties\":[{\"name\":\"pstwmdmwsf\",\"value\":\"datardyrxloxa\"},{\"name\":\"mxnmx\",\"value\":\"datamdlynlhsdtc\"},{\"name\":\"flevndldhwrf\",\"value\":\"dataflhwfrjyuhuthqdf\"},{\"name\":\"bizloyqjrkt\",\"value\":\"datadvuqve\"}],\"\":{\"relbzwxxsowd\":\"dataogesrmahszxcfbp\",\"nhqfae\":\"datauwvupn\"}},{\"type\":\"Activity\",\"name\":\"sboeapsraydlpu\",\"description\":\"makkwqrkaymdgzb\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"hrpamav\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"dw\":\"databbacixlirolaoo\"}},{\"activity\":\"jerm\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Skipped\"],\"\":{\"bexk\":\"dataoeqgkutkcczbu\"}}],\"userProperties\":[{\"name\":\"kjvsvywnzliqvq\",\"value\":\"datavfihnasaquk\"}],\"\":{\"qzf\":\"dataludfdhiori\",\"lywtgilhx\":\"datayqadtqwtsatjjfav\"}}]}") - .toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("mueuwpivsltlyq", model.expression().value()); - Assertions.assertEquals("wndcjrdqcmsrzrcd", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("zgaoptwqfgqccon", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dpmez", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("snvtl", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("llfkcro", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("imhdlmagd", 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("ndfpd", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("yscarjm", 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("mueuwpivsltlyq")) - .withIfTrueActivities(Arrays.asList( - new Activity().withName("wndcjrdqcmsrzrcd") - .withDescription("zgaoptwqfgqccon") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("dpmez") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("suuapktfvemwfwc") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("cojxpkpsqk") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("snvtl").withValue("datanmydshgfdvws"), - new UserProperty().withName("cczyqnfsjnrfpz").withValue("datavaeojnskekhmo"), - new UserProperty() - .withName("vvrk") - .withValue("datasqfazsiiz"), - new UserProperty().withName("whax").withValue("datahaet"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("nky") - .withDescription("j") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("hukuypyeo") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ilcdbudfwl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("djwp") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("miipffjgjm").withValue("datasnfpxrzqagmci"), - new UserProperty().withName("sqawiabyfzadeu").withValue("datatkfvdjgw"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withIfFalseActivities( - Arrays - .asList( - new Activity().withName("llfkcro") - .withDescription("imhdlmagd") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("ndfpd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rcxug") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xutcoqclypbrnjor") - .withDependencyConditions( - Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("yscarjm").withValue("dataiewv"), - new UserProperty().withName("pyskhkvkwdtbvy").withValue("datalgkzbyxtprxtf"), - new UserProperty().withName("vng").withValue("datacsno"), - new UserProperty().withName("kglygeuo").withValue("datalywjvdr"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("iulfxgzyr") - .withDescription("uxlt") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("catozsodpbsqcw") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("p") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lphlkxdanlycc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("pstwmdmwsf").withValue("datardyrxloxa"), - new UserProperty().withName("mxnmx").withValue("datamdlynlhsdtc"), - new UserProperty().withName("flevndldhwrf").withValue("dataflhwfrjyuhuthqdf"), - new UserProperty().withName("bizloyqjrkt").withValue("datadvuqve"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("sboeapsraydlpu") - .withDescription("makkwqrkaymdgzb") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hrpamav") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jerm") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("kjvsvywnzliqvq").withValue("datavfihnasaquk"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(IfConditionActivityTypeProperties.class); - Assertions.assertEquals("mueuwpivsltlyq", model.expression().value()); - Assertions.assertEquals("wndcjrdqcmsrzrcd", model.ifTrueActivities().get(0).name()); - Assertions.assertEquals("zgaoptwqfgqccon", model.ifTrueActivities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.ifTrueActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.ifTrueActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dpmez", model.ifTrueActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.ifTrueActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("snvtl", model.ifTrueActivities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("llfkcro", model.ifFalseActivities().get(0).name()); - Assertions.assertEquals("imhdlmagd", 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("ndfpd", model.ifFalseActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, - model.ifFalseActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("yscarjm", model.ifFalseActivities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java deleted file mode 100644 index 749530eaaf33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ImpalaDatasetTypeProperties; - -public final class ImpalaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datautfz\",\"table\":\"datarcdzytrtf\",\"schema\":\"datapkdx\"}") - .toObject(ImpalaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaDatasetTypeProperties model = new ImpalaDatasetTypeProperties().withTableName("datautfz") - .withTable("datarcdzytrtf") - .withSchema("datapkdx"); - model = BinaryData.fromObject(model).toObject(ImpalaDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java deleted file mode 100644 index 4fe22834d4e9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.ImpalaObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ImpalaObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaObjectDataset model = BinaryData.fromString( - "{\"type\":\"ImpalaObject\",\"typeProperties\":{\"tableName\":\"dataznlf\",\"table\":\"datafzx\",\"schema\":\"dataz\"},\"description\":\"ugtkxncwdytnlr\",\"structure\":\"datamwbe\",\"schema\":\"dataww\",\"linkedServiceName\":{\"referenceName\":\"vnhwwkrmqe\",\"parameters\":{\"gnjxiakgyjm\":\"datahafqfudfyziruq\"}},\"parameters\":{\"c\":{\"type\":\"Array\",\"defaultValue\":\"dataikyluyugmbr\"}},\"annotations\":[\"dataoxtv\",\"datac\"],\"folder\":{\"name\":\"yhmmglvnbenkps\"},\"\":{\"nkxvcptf\":\"dataky\",\"gazhlrdxpc\":\"datafbhnkxasomaf\"}}") - .toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("ugtkxncwdytnlr", model.description()); - Assertions.assertEquals("vnhwwkrmqe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("c").type()); - Assertions.assertEquals("yhmmglvnbenkps", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaObjectDataset model = new ImpalaObjectDataset().withDescription("ugtkxncwdytnlr") - .withStructure("datamwbe") - .withSchema("dataww") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vnhwwkrmqe") - .withParameters(mapOf("gnjxiakgyjm", "datahafqfudfyziruq"))) - .withParameters(mapOf("c", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataikyluyugmbr"))) - .withAnnotations(Arrays.asList("dataoxtv", "datac")) - .withFolder(new DatasetFolder().withName("yhmmglvnbenkps")) - .withTableName("dataznlf") - .withTable("datafzx") - .withSchemaTypePropertiesSchema("dataz"); - model = BinaryData.fromObject(model).toObject(ImpalaObjectDataset.class); - Assertions.assertEquals("ugtkxncwdytnlr", model.description()); - Assertions.assertEquals("vnhwwkrmqe", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("c").type()); - Assertions.assertEquals("yhmmglvnbenkps", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java deleted file mode 100644 index a8af421a1d22..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImpalaSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ImpalaSource; - -public final class ImpalaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImpalaSource model = BinaryData.fromString( - "{\"type\":\"ImpalaSource\",\"query\":\"datamckzeaia\",\"queryTimeout\":\"dataau\",\"additionalColumns\":\"datafsctjqp\",\"sourceRetryCount\":\"dataivfgemvu\",\"sourceRetryWait\":\"dataxwuyry\",\"maxConcurrentConnections\":\"datav\",\"disableMetricsCollection\":\"dataucgwfljjatjmndb\",\"\":{\"sskvzvkdd\":\"dataumkqhatckomdyf\"}}") - .toObject(ImpalaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImpalaSource model = new ImpalaSource().withSourceRetryCount("dataivfgemvu") - .withSourceRetryWait("dataxwuyry") - .withMaxConcurrentConnections("datav") - .withDisableMetricsCollection("dataucgwfljjatjmndb") - .withQueryTimeout("dataau") - .withAdditionalColumns("datafsctjqp") - .withQuery("datamckzeaia"); - 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 34c478977f5d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ImportSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ImportSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ImportSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImportSettings model = BinaryData.fromString( - "{\"type\":\"ImportSettings\",\"\":{\"awoyzgaevr\":\"datai\",\"hoplqtzgtpsbym\":\"datagggccpz\",\"arolczahbynl\":\"datafctorqzbqyygfqq\",\"fbyfjslehgee\":\"datawcnnfpfgstd\"}}") - .toObject(ImportSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImportSettings model = new ImportSettings().withAdditionalProperties(mapOf("type", "ImportSettings")); - model = BinaryData.fromObject(model).toObject(ImportSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java deleted file mode 100644 index f436ad7d9bfa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.InformixSink; - -public final class InformixSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixSink model = BinaryData.fromString( - "{\"type\":\"InformixSink\",\"preCopyScript\":\"dataxons\",\"writeBatchSize\":\"datactytytyrvtuxvzyw\",\"writeBatchTimeout\":\"datammmgbynvoytdt\",\"sinkRetryCount\":\"datafqznvahpxdgyho\",\"sinkRetryWait\":\"datacpt\",\"maxConcurrentConnections\":\"dataxfwwvmygcfaztoi\",\"disableMetricsCollection\":\"datazjrihcamgj\",\"\":{\"bmnxpmoadjoo\":\"datakttit\",\"bpuoycawptxq\":\"datarnzlzzmygoutq\"}}") - .toObject(InformixSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSink model = new InformixSink().withWriteBatchSize("datactytytyrvtuxvzyw") - .withWriteBatchTimeout("datammmgbynvoytdt") - .withSinkRetryCount("datafqznvahpxdgyho") - .withSinkRetryWait("datacpt") - .withMaxConcurrentConnections("dataxfwwvmygcfaztoi") - .withDisableMetricsCollection("datazjrihcamgj") - .withPreCopyScript("dataxons"); - 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 8a1a03ee4c41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.InformixSource; - -public final class InformixSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixSource model = BinaryData.fromString( - "{\"type\":\"InformixSource\",\"query\":\"datakpwltozxdzold\",\"queryTimeout\":\"datafnpn\",\"additionalColumns\":\"dataterjjuzarege\",\"sourceRetryCount\":\"dataozpudal\",\"sourceRetryWait\":\"datagdhdtt\",\"maxConcurrentConnections\":\"datakeculxvkuxvccpda\",\"disableMetricsCollection\":\"dataasi\",\"\":{\"ejh\":\"datayvvg\",\"ybneuzueikadhusg\":\"dataoswjwbhtawbc\"}}") - .toObject(InformixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixSource model = new InformixSource().withSourceRetryCount("dataozpudal") - .withSourceRetryWait("datagdhdtt") - .withMaxConcurrentConnections("datakeculxvkuxvccpda") - .withDisableMetricsCollection("dataasi") - .withQueryTimeout("datafnpn") - .withAdditionalColumns("dataterjjuzarege") - .withQuery("datakpwltozxdzold"); - model = BinaryData.fromObject(model).toObject(InformixSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java deleted file mode 100644 index 5d2b6f3571da..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.InformixTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class InformixTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixTableDataset model = BinaryData.fromString( - "{\"type\":\"InformixTable\",\"typeProperties\":{\"tableName\":\"datazizyxdu\"},\"description\":\"nqzbrq\",\"structure\":\"datak\",\"schema\":\"datackviyjucamns\",\"linkedServiceName\":{\"referenceName\":\"qoitwhmucjiu\",\"parameters\":{\"elyqdvpqfbxg\":\"datayvehyk\"}},\"parameters\":{\"yw\":{\"type\":\"Array\",\"defaultValue\":\"datasdmtxqlefnoh\"},\"ey\":{\"type\":\"String\",\"defaultValue\":\"datapkyll\"},\"vcneqswxhqhgk\":{\"type\":\"Int\",\"defaultValue\":\"datapwdmsfwtwrsv\"},\"ncpmyh\":{\"type\":\"Array\",\"defaultValue\":\"datazvulqevv\"}},\"annotations\":[\"datadmvghcmi\",\"datamlwkfefbcyj\",\"datatalqee\",\"dataudfyimooaez\"],\"folder\":{\"name\":\"ms\"},\"\":{\"zbaeeek\":\"datahlqwbywa\"}}") - .toObject(InformixTableDataset.class); - Assertions.assertEquals("nqzbrq", model.description()); - Assertions.assertEquals("qoitwhmucjiu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("yw").type()); - Assertions.assertEquals("ms", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDataset model = new InformixTableDataset().withDescription("nqzbrq") - .withStructure("datak") - .withSchema("datackviyjucamns") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qoitwhmucjiu") - .withParameters(mapOf("elyqdvpqfbxg", "datayvehyk"))) - .withParameters(mapOf("yw", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datasdmtxqlefnoh"), "ey", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datapkyll"), - "vcneqswxhqhgk", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datapwdmsfwtwrsv"), "ncpmyh", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazvulqevv"))) - .withAnnotations(Arrays.asList("datadmvghcmi", "datamlwkfefbcyj", "datatalqee", "dataudfyimooaez")) - .withFolder(new DatasetFolder().withName("ms")) - .withTableName("datazizyxdu"); - model = BinaryData.fromObject(model).toObject(InformixTableDataset.class); - Assertions.assertEquals("nqzbrq", model.description()); - Assertions.assertEquals("qoitwhmucjiu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("yw").type()); - Assertions.assertEquals("ms", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java deleted file mode 100644 index b4fed1136467..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/InformixTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.InformixTableDatasetTypeProperties; - -public final class InformixTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformixTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datat\"}").toObject(InformixTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformixTableDatasetTypeProperties model = new InformixTableDatasetTypeProperties().withTableName("datat"); - model = BinaryData.fromObject(model).toObject(InformixTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java deleted file mode 100644 index 6713091b74a8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeComputePropertiesTests.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"kbxrgr\",\"nodeSize\":\"kyqguauuihkybg\",\"numberOfNodes\":736167404,\"maxParallelExecutionsPerNode\":887211941,\"dataFlowProperties\":{\"computeType\":\"General\",\"coreCount\":994306410,\"timeToLive\":1672483733,\"cleanup\":true,\"customProperties\":[{\"name\":\"pfivypmwdza\",\"value\":\"cr\"}],\"\":{\"xnpdggllyduyu\":\"datapoqimy\",\"xvzvwlxd\":\"datadmzu\",\"eurd\":\"datanst\",\"atsiznymwz\":\"dataxklr\"}},\"vNetProperties\":{\"vNetId\":\"kihqhnfubevwadx\",\"subnet\":\"zxevltfebq\",\"publicIPs\":[\"akl\",\"ak\"],\"subnetId\":\"tifmftwr\",\"\":{\"qneaqkgttbarg\":\"datariipzgfofuadc\",\"jjpfyxhsppvjs\":\"dataeynqlsnrgaxoyv\",\"omuogeqeapaseq\":\"datauouoqtenq\",\"vtoiqofzttqg\":\"datappypfreuwvzhnd\"}},\"copyComputeScaleProperties\":{\"dataIntegrationUnit\":84712339,\"timeToLive\":302519645,\"\":{\"tp\":\"datauhell\",\"sgqbmolxeomebzv\":\"datavpiv\",\"acgihnalpc\":\"datavxxfsfo\"}},\"pipelineExternalComputeScaleProperties\":{\"timeToLive\":709838487,\"numberOfPipelineNodes\":189627182,\"numberOfExternalNodes\":2106609679,\"\":{\"ivzikatywedbpi\":\"datab\"}},\"\":{\"dw\":\"datapauzbbhxncs\"}}") - .toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("kbxrgr", model.location()); - Assertions.assertEquals("kyqguauuihkybg", model.nodeSize()); - Assertions.assertEquals(736167404, model.numberOfNodes()); - Assertions.assertEquals(887211941, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); - Assertions.assertEquals(994306410, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(1672483733, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("pfivypmwdza", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("cr", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("kihqhnfubevwadx", model.vNetProperties().vNetId()); - Assertions.assertEquals("zxevltfebq", model.vNetProperties().subnet()); - Assertions.assertEquals("akl", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("tifmftwr", model.vNetProperties().subnetId()); - Assertions.assertEquals(84712339, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(302519645, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(709838487, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(189627182, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(2106609679, model.pipelineExternalComputeScaleProperties().numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeComputeProperties model = new IntegrationRuntimeComputeProperties().withLocation("kbxrgr") - .withNodeSize("kyqguauuihkybg") - .withNumberOfNodes(736167404) - .withMaxParallelExecutionsPerNode(887211941) - .withDataFlowProperties(new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(994306410) - .withTimeToLive(1672483733) - .withCleanup(true) - .withCustomProperties( - Arrays.asList(new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("pfivypmwdza") - .withValue("cr"))) - .withAdditionalProperties(mapOf())) - .withVNetProperties(new IntegrationRuntimeVNetProperties().withVNetId("kihqhnfubevwadx") - .withSubnet("zxevltfebq") - .withPublicIPs(Arrays.asList("akl", "ak")) - .withSubnetId("tifmftwr") - .withAdditionalProperties(mapOf())) - .withCopyComputeScaleProperties(new CopyComputeScaleProperties().withDataIntegrationUnit(84712339) - .withTimeToLive(302519645) - .withAdditionalProperties(mapOf())) - .withPipelineExternalComputeScaleProperties( - new PipelineExternalComputeScaleProperties().withTimeToLive(709838487) - .withNumberOfPipelineNodes(189627182) - .withNumberOfExternalNodes(2106609679) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("kbxrgr", model.location()); - Assertions.assertEquals("kyqguauuihkybg", model.nodeSize()); - Assertions.assertEquals(736167404, model.numberOfNodes()); - Assertions.assertEquals(887211941, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); - Assertions.assertEquals(994306410, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(1672483733, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(true, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("pfivypmwdza", model.dataFlowProperties().customProperties().get(0).name()); - Assertions.assertEquals("cr", model.dataFlowProperties().customProperties().get(0).value()); - Assertions.assertEquals("kihqhnfubevwadx", model.vNetProperties().vNetId()); - Assertions.assertEquals("zxevltfebq", model.vNetProperties().subnet()); - Assertions.assertEquals("akl", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("tifmftwr", model.vNetProperties().subnetId()); - Assertions.assertEquals(84712339, model.copyComputeScaleProperties().dataIntegrationUnit()); - Assertions.assertEquals(302519645, model.copyComputeScaleProperties().timeToLive()); - Assertions.assertEquals(709838487, model.pipelineExternalComputeScaleProperties().timeToLive()); - Assertions.assertEquals(189627182, model.pipelineExternalComputeScaleProperties().numberOfPipelineNodes()); - Assertions.assertEquals(2106609679, 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 3f8cd05c2fc7..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\":\"bvvaerszsufzsa\"}") - .toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("bvvaerszsufzsa", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeCustomerVirtualNetwork model - = new IntegrationRuntimeCustomerVirtualNetwork().withSubnetId("bvvaerszsufzsa"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeCustomerVirtualNetwork.class); - Assertions.assertEquals("bvvaerszsufzsa", 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 37fe0a051431..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\":\"o\",\"value\":\"qxnoyzqip\"}") - .toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("o", model.name()); - Assertions.assertEquals("qxnoyzqip", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem model - = new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("o").withValue("qxnoyzqip"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.class); - Assertions.assertEquals("o", model.name()); - Assertions.assertEquals("qxnoyzqip", 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 d882e366fff8..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\":1598564613,\"timeToLive\":1271483795,\"cleanup\":false,\"customProperties\":[{\"name\":\"ebdltniui\",\"value\":\"erffhgvcym\"},{\"name\":\"oe\",\"value\":\"hggajfeudbo\"},{\"name\":\"olji\",\"value\":\"hhwlzihvccquajpo\"}],\"\":{\"szk\":\"datajxyotgvraxhntoiw\",\"sjwrretsluqfgksd\":\"datalk\",\"whdq\":\"dataimioixviobuwbnge\",\"zaffzqodokst\":\"datagqamhbmggnqxnex\"}}") - .toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.computeType()); - Assertions.assertEquals(1598564613, model.coreCount()); - Assertions.assertEquals(1271483795, model.timeToLive()); - Assertions.assertEquals(false, model.cleanup()); - Assertions.assertEquals("ebdltniui", model.customProperties().get(0).name()); - Assertions.assertEquals("erffhgvcym", model.customProperties().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowProperties model = new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(1598564613) - .withTimeToLive(1271483795) - .withCleanup(false) - .withCustomProperties(Arrays.asList( - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("ebdltniui") - .withValue("erffhgvcym"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("oe").withValue("hggajfeudbo"), - new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem().withName("olji") - .withValue("hhwlzihvccquajpo"))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.computeType()); - Assertions.assertEquals(1598564613, model.coreCount()); - Assertions.assertEquals(1271483795, model.timeToLive()); - Assertions.assertEquals(false, model.cleanup()); - Assertions.assertEquals("ebdltniui", model.customProperties().get(0).name()); - Assertions.assertEquals("erffhgvcym", 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 c984517bb139..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDataProxyPropertiesTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.EntityReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataProxyProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeEntityReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataProxyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = BinaryData.fromString( - "{\"connectVia\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"hutctcabcpwabz\"},\"stagingLinkedService\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"fkpoidfzwegvu\"},\"path\":\"uwgweccvufjqvf\"}") - .toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.connectVia().type()); - Assertions.assertEquals("hutctcabcpwabz", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("fkpoidfzwegvu", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("uwgweccvufjqvf", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = new IntegrationRuntimeDataProxyProperties() - .withConnectVia( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("hutctcabcpwabz")) - .withStagingLinkedService( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("fkpoidfzwegvu")) - .withPath("uwgweccvufjqvf"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.connectVia().type()); - Assertions.assertEquals("hutctcabcpwabz", model.connectVia().referenceName()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("fkpoidfzwegvu", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("uwgweccvufjqvf", model.path()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java deleted file mode 100644 index df9a9715efba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeDebugResourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"rvzmlovuana\",\"\":{\"erbdk\":\"dataxlpm\",\"bccxjmonfdgn\":\"datalvidizozs\",\"ypuuwwltvuqjctze\":\"datan\"}},\"name\":\"eifzzhmk\"}") - .toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("eifzzhmk", model.name()); - Assertions.assertEquals("rvzmlovuana", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDebugResource model = new IntegrationRuntimeDebugResource().withName("eifzzhmk") - .withProperties(new IntegrationRuntime().withDescription("rvzmlovuana") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDebugResource.class); - Assertions.assertEquals("eifzzhmk", model.name()); - Assertions.assertEquals("rvzmlovuana", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java deleted file mode 100644 index d58619a78f67..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeListResponseTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"hkaetcktvfc\",\"\":{\"jf\":\"datasnkymuctq\",\"fuwutttxf\":\"dataebrjcxe\",\"hfnljkyq\":\"datajrbirphxepcyv\"}},\"name\":\"vuujq\",\"type\":\"dokgjl\",\"etag\":\"oxgvclt\",\"id\":\"sncghkjeszz\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"ijhtxf\",\"\":{\"xnehmpvec\":\"databfs\"}},\"name\":\"odebfqkkrbmpu\",\"type\":\"riwflzlfb\",\"etag\":\"puz\",\"id\":\"ispnqzahmgkbrp\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"dhibnuq\",\"\":{\"drgvtqagn\":\"dataik\",\"mebf\":\"datauynhijg\"}},\"name\":\"arbu\",\"type\":\"cvpnazzmhjrunmpx\",\"etag\":\"dbhrbnlankxm\",\"id\":\"k\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"henbtkcxywnytn\",\"\":{\"lhaaxdbabp\":\"datanlqidybyxczf\"}},\"name\":\"wrqlfktsthsuco\",\"type\":\"nyyazttbtwwrqpue\",\"etag\":\"kzywbiex\",\"id\":\"eyueaxibxujwb\"}],\"nextLink\":\"walm\"}") - .toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).id()); - Assertions.assertEquals("hkaetcktvfc", model.value().get(0).properties().description()); - Assertions.assertEquals("walm", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeListResponse model - = new IntegrationRuntimeListResponse() - .withValue( - Arrays - .asList( - new IntegrationRuntimeResourceInner().withId("sncghkjeszz") - .withProperties(new IntegrationRuntime().withDescription("hkaetcktvfc") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withId("ispnqzahmgkbrp") - .withProperties(new IntegrationRuntime().withDescription("ijhtxf") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withId("k") - .withProperties(new IntegrationRuntime().withDescription("dhibnuq") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner().withId("eyueaxibxujwb") - .withProperties(new IntegrationRuntime().withDescription("henbtkcxywnytn") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))))) - .withNextLink("walm"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("sncghkjeszz", model.value().get(0).id()); - Assertions.assertEquals("hkaetcktvfc", model.value().get(0).properties().description()); - Assertions.assertEquals("walm", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java deleted file mode 100644 index ecbb1ef86837..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeMonitoringDataInnerTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeMonitoringDataInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = BinaryData.fromString( - "{\"name\":\"k\",\"nodes\":[{\"nodeName\":\"io\",\"availableMemoryInMB\":952194839,\"cpuUtilization\":1578257059,\"concurrentJobsLimit\":391809232,\"concurrentJobsRunning\":1039189909,\"maxConcurrentJobs\":1375924345,\"sentBytes\":68.58864,\"receivedBytes\":66.46081,\"\":{\"jooxdjebw\":\"datasowzxcugi\"}}]}") - .toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("k", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = new IntegrationRuntimeMonitoringDataInner().withName("k") - .withNodes(Arrays.asList(new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "io", "cpuUtilization", 1578257059, "receivedBytes", - 66.46081f, "concurrentJobsLimit", 391809232, "concurrentJobsRunning", 1039189909, - "maxConcurrentJobs", 1375924345, "availableMemoryInMB", 952194839, "sentBytes", 68.58864f)))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("k", model.name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java deleted file mode 100644 index 76c3160ed336..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeIpAddressInnerTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeNodeIpAddressInner; - -public final class IntegrationRuntimeNodeIpAddressInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model - = BinaryData.fromString("{\"ipAddress\":\"nr\"}").toObject(IntegrationRuntimeNodeIpAddressInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model = new IntegrationRuntimeNodeIpAddressInner(); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeIpAddressInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java deleted file mode 100644 index 13152d8b690b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodeMonitoringDataTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodeMonitoringData; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeNodeMonitoringDataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = BinaryData.fromString( - "{\"nodeName\":\"cwwfvovbvme\",\"availableMemoryInMB\":321338352,\"cpuUtilization\":1542315989,\"concurrentJobsLimit\":1560245881,\"concurrentJobsRunning\":343837467,\"maxConcurrentJobs\":1240635196,\"sentBytes\":81.17821,\"receivedBytes\":67.35784,\"\":{\"wit\":\"datajueiotwmcdytd\"}}") - .toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties(mapOf("nodeName", "cwwfvovbvme", "cpuUtilization", 1542315989, "receivedBytes", - 67.35784f, "concurrentJobsLimit", 1560245881, "concurrentJobsRunning", 343837467, "maxConcurrentJobs", - 1240635196, "availableMemoryInMB", 321338352, "sentBytes", 81.17821f)); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java deleted file mode 100644 index a2736abc37ad..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.integrationRuntimeNodes() - .deleteWithResponse("t", "mpdrkgt", "rmmmsaujx", "ogtwxgswu", 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 2584ecf462f3..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"cirqcgapkyof\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeNodeIpAddress response = manager.integrationRuntimeNodes() - .getIpAddressWithResponse("klcgwba", "l", "ovgthppoddnwhao", "kwphvimstbyakl", - 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 b47bb186ec94..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"upygnlfyddyy\",\"machineName\":\"dlhytckp\",\"hostServiceUri\":\"jzrdgnlsnmzlsg\",\"status\":\"Online\",\"capabilities\":{\"mz\":\"yovwuhvpipaafvt\",\"hox\":\"rdplhwip\",\"wcdczml\":\"eyixbrsjgrjt\",\"itcg\":\"zcikhcpdohvw\"},\"versionStatus\":\"uuubtfxjpgjaynof\",\"version\":\"zpnta\",\"registerTime\":\"2021-11-11T04:13:26Z\",\"lastConnectTime\":\"2021-07-18T00:56:37Z\",\"expiryTime\":\"2021-04-06T06:43:32Z\",\"lastStartTime\":\"2021-01-09T03:35:46Z\",\"lastStopTime\":\"2021-07-20T18:10:55Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-03-29T14:22:50Z\",\"lastEndUpdateTime\":\"2021-10-01T06:03Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":146666343,\"maxConcurrentJobs\":1978005827,\"\":{\"futohkrqbgx\":\"datannwob\",\"vlswipobt\":\"datajbapflluyh\"}}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SelfHostedIntegrationRuntimeNode response = manager.integrationRuntimeNodes() - .getWithResponse("xwkjhzgmvzfpv", "eofvzeih", "ubdjdiqsu", "kyvr", 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 4189ef531faf..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"xmelzlsskphwwn\",\"machineName\":\"a\",\"hostServiceUri\":\"ibgyquzofyeqru\",\"status\":\"Offline\",\"capabilities\":{\"oawocsetkrt\":\"sl\"},\"versionStatus\":\"jiiqsxecejlyh\",\"version\":\"hqqqqcdzmh\",\"registerTime\":\"2021-06-10T12:45:17Z\",\"lastConnectTime\":\"2021-06-29T13:22:14Z\",\"expiryTime\":\"2021-03-09T17:45:38Z\",\"lastStartTime\":\"2021-04-30T23:24:48Z\",\"lastStopTime\":\"2021-08-05T00:53:37Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-08-09T23:02:28Z\",\"lastEndUpdateTime\":\"2021-03-28T08:10:12Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":534456362,\"maxConcurrentJobs\":439111730,\"\":{\"adoseqcvikhbkc\":\"datatvykzdlktenbv\",\"sxncykfq\":\"datapubvmsznzrs\",\"gqctrvfpg\":\"databwes\"}}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SelfHostedIntegrationRuntimeNode response = manager.integrationRuntimeNodes() - .updateWithResponse("hxmwf", "ehryordinfwnlif", "txju", "uddtubzekfb", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1499685835), - 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 6acef3d389a2..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadataListResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeObjectMetadatasGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":480630311899746586,\"name\":\"tkdeyuowdpnaohhe\",\"description\":\"yrkbsrpruoyjbzyl\"},{\"type\":\"SsisObjectMetadata\",\"id\":2934330761316839097,\"name\":\"euhssrdugaxkyge\",\"description\":\"biupjzkyghsjcqq\"},{\"type\":\"SsisObjectMetadata\",\"id\":64843246385165570,\"name\":\"aeckzcbrxsqode\",\"description\":\"djpeeqywngc\"}],\"nextLink\":\"hvbczcsspn\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SsisObjectMetadataListResponse response = manager.integrationRuntimeObjectMetadatas() - .getWithResponse("nzxikvjevjaps", "pjh", "quxquypcn", - new GetSsisObjectMetadataRequest().withMetadataPath("cusyq"), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(480630311899746586L, response.value().get(0).id()); - Assertions.assertEquals("tkdeyuowdpnaohhe", response.value().get(0).name()); - Assertions.assertEquals("yrkbsrpruoyjbzyl", response.value().get(0).description()); - Assertions.assertEquals("hvbczcsspn", 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 b92fb613f85c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"clvpnoayckzshvc\",\"name\":\"zlkugkgnuhxa\",\"properties\":\"po\",\"error\":\"n\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SsisObjectMetadataStatusResponse response = manager.integrationRuntimeObjectMetadatas() - .refresh("kvrkp", "ltjcfy", "yr", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("clvpnoayckzshvc", response.status()); - Assertions.assertEquals("zlkugkgnuhxa", response.name()); - Assertions.assertEquals("po", response.properties()); - Assertions.assertEquals("n", response.error()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java deleted file mode 100644 index f6690962838c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model = BinaryData.fromString( - "{\"category\":\"bmehh\",\"endpoints\":[{\"domainName\":\"jusrtslhspk\",\"endpointDetails\":[{\"port\":812184412},{\"port\":441408788},{\"port\":1351571833}]},{\"domainName\":\"gkvtmelmqkrhah\",\"endpointDetails\":[{\"port\":1468596781},{\"port\":1935710102},{\"port\":1520620796},{\"port\":27642330}]},{\"domainName\":\"hmdua\",\"endpointDetails\":[{\"port\":552039222}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("bmehh", model.category()); - Assertions.assertEquals("jusrtslhspk", model.endpoints().get(0).domainName()); - Assertions.assertEquals(812184412, model.endpoints().get(0).endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("bmehh") - .withEndpoints( - Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("jusrtslhspk") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(812184412), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(441408788), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(1351571833))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("gkvtmelmqkrhah") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1468596781), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1935710102), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1520620796), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(27642330))), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("hmdua") - .withEndpointDetails( - Arrays.asList(new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() - .withPort(552039222))))); - model = BinaryData.fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("bmehh", model.category()); - Assertions.assertEquals("jusrtslhspk", model.endpoints().get(0).domainName()); - Assertions.assertEquals(812184412, model.endpoints().get(0).endpointDetails().get(0).port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java deleted file mode 100644 index 0577cb26b44a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model - = BinaryData.fromString("{\"port\":434822175}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(434822175, model.port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(434822175); - model - = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(434822175, model.port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java deleted file mode 100644 index 0ec269d6d779..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model - = BinaryData.fromString("{\"domainName\":\"vfadmws\",\"endpointDetails\":[{\"port\":1913869945}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vfadmws", model.domainName()); - Assertions.assertEquals(1913869945, model.endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("vfadmws") - .withEndpointDetails(Arrays - .asList(new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1913869945))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vfadmws", model.domainName()); - Assertions.assertEquals(1913869945, model.endpointDetails().get(0).port()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java deleted file mode 100644 index 6ed83e2b9030..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model = BinaryData.fromString( - "{\"value\":[{\"category\":\"frlh\",\"endpoints\":[{\"domainName\":\"kyv\",\"endpointDetails\":[{}]},{\"domainName\":\"n\",\"endpointDetails\":[{},{},{}]},{\"domainName\":\"zka\",\"endpointDetails\":[{}]},{\"domainName\":\"b\",\"endpointDetails\":[{},{}]}]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("frlh", model.value().get(0).category()); - Assertions.assertEquals("kyv", model.value().get(0).endpoints().get(0).domainName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model - = new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner() - .withValue( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint().withCategory("frlh") - .withEndpoints(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("kyv") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("n") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("zka") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint().withDomainName("b") - .withEndpointDetails(Arrays.asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails())))))); - model = BinaryData.fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("frlh", model.value().get(0).category()); - Assertions.assertEquals("kyv", model.value().get(0).endpoints().get(0).domainName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java deleted file mode 100644 index 0c42d6ed2ed8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeReferenceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeReference model = BinaryData - .fromString("{\"referenceName\":\"qsluicp\",\"parameters\":{\"uefywsbpfvmwy\":\"datakzzlvmbmpaxmodf\"}}") - .toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("qsluicp", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeReference model = new IntegrationRuntimeReference().withReferenceName("qsluicp") - .withParameters(mapOf("uefywsbpfvmwy", "datakzzlvmbmpaxmodf")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeReference.class); - Assertions.assertEquals("qsluicp", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java deleted file mode 100644 index f64d5a7367bd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeResourceInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"yoxa\",\"\":{\"bniwdj\":\"datakzjancuxrhdwbav\",\"s\":\"datawz\",\"xytxhpzxbz\":\"databpg\"}},\"name\":\"zabglcuhxwt\",\"type\":\"yqiklbbovplwzb\",\"etag\":\"gy\",\"id\":\"uosvmkfssxqukk\"}") - .toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("uosvmkfssxqukk", model.id()); - Assertions.assertEquals("yoxa", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeResourceInner model = new IntegrationRuntimeResourceInner().withId("uosvmkfssxqukk") - .withProperties(new IntegrationRuntime().withDescription("yoxa") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("uosvmkfssxqukk", model.id()); - Assertions.assertEquals("yoxa", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java deleted file mode 100644 index f1c2692bcb8f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusResponseInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = BinaryData.fromString( - "{\"name\":\"ogtwrupqsxvnmi\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"kvceoveilovnotyf\",\"state\":\"Limited\",\"\":{\"x\":\"databkc\",\"nv\":\"datahbttkphyw\",\"qnermclfplphoxu\":\"datat\",\"ye\":\"datacrpab\"}}}") - .toObject(IntegrationRuntimeStatusResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = new IntegrationRuntimeStatusResponseInner() - .withProperties(new IntegrationRuntimeStatus().withAdditionalProperties( - mapOf("dataFactoryName", "kvceoveilovnotyf", "state", "Limited", "type", "IntegrationRuntimeStatus"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatusResponseInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java deleted file mode 100644 index 9cf69d515041..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeStatusTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatus model = BinaryData.fromString( - "{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"bjtazqugxywpmu\",\"state\":\"Started\",\"\":{\"dsuyonobgla\":\"datawfqkquj\",\"tcc\":\"datacq\",\"udxytlmoyrx\":\"datag\",\"qj\":\"datawfudwpzntxhdzhl\"}}") - .toObject(IntegrationRuntimeStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatus model = new IntegrationRuntimeStatus().withAdditionalProperties( - mapOf("dataFactoryName", "bjtazqugxywpmu", "state", "Started", "type", "IntegrationRuntimeStatus")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatus.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java deleted file mode 100644 index 2eba42937a82..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntime model = BinaryData.fromString( - "{\"type\":\"IntegrationRuntime\",\"description\":\"l\",\"\":{\"wiyighxpkdw\":\"datasxnkjzkdeslpvlo\",\"upedeojnabckhs\":\"databaiuebbaumny\",\"ie\":\"datatxp\",\"jdhtldwkyzxu\":\"datatfhvpesapskrdqmh\"}}") - .toObject(IntegrationRuntime.class); - Assertions.assertEquals("l", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntime model = new IntegrationRuntime().withDescription("l") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntime.class); - Assertions.assertEquals("l", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeVNetPropertiesTests.java deleted file mode 100644 index 45b7918d2222..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\":\"ifccydbjghunqnt\",\"subnet\":\"wocb\",\"publicIPs\":[\"xdvphxm\",\"wvxcai\",\"bic\"],\"subnetId\":\"gsfovkmamiy\",\"\":{\"aalbkubzqazd\":\"datanrukcy\"}}") - .toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("ifccydbjghunqnt", model.vNetId()); - Assertions.assertEquals("wocb", model.subnet()); - Assertions.assertEquals("xdvphxm", model.publicIPs().get(0)); - Assertions.assertEquals("gsfovkmamiy", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeVNetProperties model = new IntegrationRuntimeVNetProperties().withVNetId("ifccydbjghunqnt") - .withSubnet("wocb") - .withPublicIPs(Arrays.asList("xdvphxm", "wvxcai", "bic")) - .withSubnetId("gsfovkmamiy") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("ifccydbjghunqnt", model.vNetId()); - Assertions.assertEquals("wocb", model.subnet()); - Assertions.assertEquals("xdvphxm", model.publicIPs().get(0)); - Assertions.assertEquals("gsfovkmamiy", 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 c0ed76184625..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"yknsdwcxyagid\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"nsnunvgqtvgxpe\",\"state\":\"Stopped\",\"\":{\"qrmibmnmxsp\":\"datadyvrdsvsjgt\",\"vzngpa\":\"datatirvzbmhmkoxs\",\"c\":\"dataymeb\"}}}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeStatusResponse response = manager.integrationRuntimes() - .createLinkedIntegrationRuntimeWithResponse("oqjmlzlkizjss", "wo", "fngm", - new CreateLinkedIntegrationRuntimeRequest().withName("rjsbwdsitypa") - .withSubscriptionId("vjr") - .withDataFactoryName("i") - .withDataFactoryLocation("gadusln"), - 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 3ed071f4952a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"udyuoholyyx\",\"\":{\"ttclnhoituk\":\"dataxlyfrrczhnvtih\"}},\"name\":\"rorepbqkmyljxic\",\"type\":\"rlv\",\"etag\":\"avplqkc\",\"id\":\"bvvniwqpcqyouj\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeResource response = manager.integrationRuntimes() - .define("zr") - .withExistingFactory("fz", "qqtpwhicnnan") - .withProperties(new IntegrationRuntime().withDescription("bdptmzsdwxls") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))) - .withIfMatch("tsnnsxouz") - .create(); - - Assertions.assertEquals("bvvniwqpcqyouj", response.id()); - Assertions.assertEquals("udyuoholyyx", response.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.java deleted file mode 100644 index 28512129528a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteWithResponseMockTests.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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.integrationRuntimes().deleteWithResponse("ibi", "d", "ybaf", 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 baef62d62cc3..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"mjznjqrxy\",\"nodes\":[{\"nodeName\":\"rkxyjsuappd\",\"availableMemoryInMB\":1926934452,\"cpuUtilization\":1147563189,\"concurrentJobsLimit\":1629500432,\"concurrentJobsRunning\":461264660,\"maxConcurrentJobs\":1272853993,\"sentBytes\":4.2850256,\"receivedBytes\":94.9003,\"\":{\"qiilfovmcjchbof\":\"datatzdgztw\"}},{\"nodeName\":\"vqvjfszvece\",\"availableMemoryInMB\":830535136,\"cpuUtilization\":1692491619,\"concurrentJobsLimit\":1164642750,\"concurrentJobsRunning\":199293505,\"maxConcurrentJobs\":2042279653,\"sentBytes\":71.67136,\"receivedBytes\":46.052544,\"\":{\"ibdbkgxqsbwe\":\"dataauyzbr\",\"xarddbnqyayl\":\"dataduyqxv\"}},{\"nodeName\":\"f\",\"availableMemoryInMB\":68854468,\"cpuUtilization\":1851658514,\"concurrentJobsLimit\":2083858335,\"concurrentJobsRunning\":790876134,\"maxConcurrentJobs\":1137739161,\"sentBytes\":43.51716,\"receivedBytes\":26.772446,\"\":{\"xxndnbzhsedn\":\"datah\",\"ugqllq\":\"datajpouzwstytexu\"}},{\"nodeName\":\"eyfuf\",\"availableMemoryInMB\":1023905384,\"cpuUtilization\":1497127636,\"concurrentJobsLimit\":1542933152,\"concurrentJobsRunning\":1194019769,\"maxConcurrentJobs\":410446443,\"sentBytes\":59.100063,\"receivedBytes\":38.65119,\"\":{\"nuayp\":\"datathktpwql\"}}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeMonitoringData response = manager.integrationRuntimes() - .getMonitoringDataWithResponse("stb", "uqmlnefvbeyug", "gfshntyk", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mjznjqrxy", 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 03081a507aed..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"jhxydxicouilg\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"slagtmkiilcgejm\",\"state\":\"Limited\",\"\":{\"faqytqmc\":\"databzlmztkzg\",\"vfrtmwyezr\":\"datazdptoytcnxgq\"}}}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeStatusResponse response = manager.integrationRuntimes() - .getStatusWithResponse("n", "vvxcahfoemc", "jjazoykwh", 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 18e6810e9274..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"tkpo\",\"\":{\"njduyotqb\":\"dataoyjjfx\"}},\"name\":\"tx\",\"type\":\"uxmegrix\",\"etag\":\"bzjlqr\",\"id\":\"qpjstc\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeResource response = manager.integrationRuntimes() - .getWithResponse("hkm", "iraoytkkq", "aazvmnv", "dzfypdsrfpihvij", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("qpjstc", response.id()); - Assertions.assertEquals("tkpo", 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 6984814081bd..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"cwkwm\",\"\":{\"ukvsgkzxzn\":\"dataqldacxofaqas\",\"qpkpvdiirvxahx\":\"datatxocznszmjzsjfc\"}},\"name\":\"lhxo\",\"type\":\"omakmi\",\"etag\":\"hduflajsgut\",\"id\":\"cbvxyqpr\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.integrationRuntimes() - .listByFactory("mdlhxwwhusrod", "omozafwq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("cbvxyqpr", response.iterator().next().id()); - Assertions.assertEquals("cwkwm", 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 2cae3eac1170..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"j\",\"endpoints\":[{\"domainName\":\"babihialsrxzat\",\"endpointDetails\":[{},{}]},{\"domainName\":\"pjoqc\",\"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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse response = manager.integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse("xmcawpbifzwo", "iocvjmyinpl", "me", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("j", response.value().get(0).category()); - Assertions.assertEquals("babihialsrxzat", 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 fb0f821434f5..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.integrationRuntimes() - .removeLinksWithResponse("wfqagblwoozlfl", "irudn", "lfcrtkpfs", - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("wtqtoqeof"), - 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 4a2c67346c4a..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"mn\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"qaqt\",\"state\":\"Online\",\"\":{\"chzoboeeiakwdtu\":\"datawdhjbvhfl\"}}}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - IntegrationRuntimeStatusResponse response = manager.integrationRuntimes() - .start("oxgrvsavoq", "squwkuszl", "ognledhvlleny", 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 957332c630a0..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.integrationRuntimes().stop("brwoyqty", "ywzccumkl", "ygrkcolvitb", 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 414aad8c9a3b..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.integrationRuntimes() - .syncCredentialsWithResponse("loxrbo", "zvrgoxpa", "jselrf", 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 578fdea05916..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.integrationRuntimes() - .upgradeWithResponse("yzjq", "eqajipnpwomjlps", "gytquktcqggxdnpp", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java deleted file mode 100644 index 15f1bd79c7ac..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraObjectDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.JiraObjectDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JiraObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JiraObjectDataset model = BinaryData.fromString( - "{\"type\":\"JiraObject\",\"typeProperties\":{\"tableName\":\"datawenbqvpr\"},\"description\":\"voqatdjkaldpmec\",\"structure\":\"dataxfzynfemq\",\"schema\":\"datakkp\",\"linkedServiceName\":{\"referenceName\":\"wgssdquupirnb\",\"parameters\":{\"pvirzyud\":\"datayvdsqxkjwd\"}},\"parameters\":{\"xmlfouqpskva\":{\"type\":\"Object\",\"defaultValue\":\"datax\"}},\"annotations\":[\"datapmrrhyjx\"],\"folder\":{\"name\":\"acz\"},\"\":{\"jqyfy\":\"dataaeztt\",\"f\":\"dataqlyyslg\"}}") - .toObject(JiraObjectDataset.class); - Assertions.assertEquals("voqatdjkaldpmec", model.description()); - Assertions.assertEquals("wgssdquupirnb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xmlfouqpskva").type()); - Assertions.assertEquals("acz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraObjectDataset model = new JiraObjectDataset().withDescription("voqatdjkaldpmec") - .withStructure("dataxfzynfemq") - .withSchema("datakkp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("wgssdquupirnb") - .withParameters(mapOf("pvirzyud", "datayvdsqxkjwd"))) - .withParameters(mapOf("xmlfouqpskva", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datax"))) - .withAnnotations(Arrays.asList("datapmrrhyjx")) - .withFolder(new DatasetFolder().withName("acz")) - .withTableName("datawenbqvpr"); - model = BinaryData.fromObject(model).toObject(JiraObjectDataset.class); - Assertions.assertEquals("voqatdjkaldpmec", model.description()); - Assertions.assertEquals("wgssdquupirnb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xmlfouqpskva").type()); - Assertions.assertEquals("acz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java deleted file mode 100644 index 793248536f89..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JiraSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JiraSource; - -public final class JiraSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JiraSource model = BinaryData.fromString( - "{\"type\":\"JiraSource\",\"query\":\"dataiepvjrmkk\",\"queryTimeout\":\"dataymkbfd\",\"additionalColumns\":\"datawokrhh\",\"sourceRetryCount\":\"dataahrmuw\",\"sourceRetryWait\":\"datadyruo\",\"maxConcurrentConnections\":\"datadtx\",\"disableMetricsCollection\":\"datanmjimgg\",\"\":{\"bnfbmsbetzufkvxe\":\"datagpldrnbjh\",\"mjzgzaeuu\":\"databddrtngdc\"}}") - .toObject(JiraSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JiraSource model = new JiraSource().withSourceRetryCount("dataahrmuw") - .withSourceRetryWait("datadyruo") - .withMaxConcurrentConnections("datadtx") - .withDisableMetricsCollection("datanmjimgg") - .withQueryTimeout("dataymkbfd") - .withAdditionalColumns("datawokrhh") - .withQuery("dataiepvjrmkk"); - model = BinaryData.fromObject(model).toObject(JiraSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java deleted file mode 100644 index ef9530213a9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.JsonDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JsonDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonDataset model = BinaryData.fromString( - "{\"type\":\"Json\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataviscot\",\"fileName\":\"databri\",\"\":{\"dslvrqo\":\"dataf\",\"deotmfx\":\"datamwsieeailwdqmqf\",\"g\":\"datakd\",\"uafixlxicwgp\":\"datagnamkuuyiu\"}},\"encodingName\":\"datadc\",\"compression\":{\"type\":\"datafzcfasf\",\"level\":\"dataropalvngtwyuskwg\",\"\":{\"cjlvkrkegtyc\":\"datataumd\",\"yddeeqz\":\"datauppiyxlzm\"}}},\"description\":\"abm\",\"structure\":\"datas\",\"schema\":\"dataduetbapf\",\"linkedServiceName\":{\"referenceName\":\"zewxtrlqbpxy\",\"parameters\":{\"zxvbczwhyegbthms\":\"datajpir\",\"jbuiggru\":\"datai\",\"oivsdwsngkrf\":\"dataozfvualjt\",\"akmhz\":\"datahscj\"}},\"parameters\":{\"nnx\":{\"type\":\"SecureString\",\"defaultValue\":\"datafbwih\"},\"pfzsclefyrl\":{\"type\":\"SecureString\",\"defaultValue\":\"dataynuqqkotauratnic\"},\"pwovvvsfleevn\":{\"type\":\"Float\",\"defaultValue\":\"datadqlmfdggnbbu\"}},\"annotations\":[\"datayrehjuqwv\",\"datapxrl\"],\"folder\":{\"name\":\"zihacen\"},\"\":{\"wmjcwtewfhxw\":\"datalxnqzubfonfdbgmk\",\"rehzlrynjpcha\":\"datark\",\"wevtjrieikmwla\":\"datakaeplrajubowu\"}}") - .toObject(JsonDataset.class); - Assertions.assertEquals("abm", model.description()); - Assertions.assertEquals("zewxtrlqbpxy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("nnx").type()); - Assertions.assertEquals("zihacen", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDataset model = new JsonDataset().withDescription("abm") - .withStructure("datas") - .withSchema("dataduetbapf") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zewxtrlqbpxy") - .withParameters(mapOf("zxvbczwhyegbthms", "datajpir", "jbuiggru", "datai", "oivsdwsngkrf", - "dataozfvualjt", "akmhz", "datahscj"))) - .withParameters(mapOf("nnx", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datafbwih"), - "pfzsclefyrl", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataynuqqkotauratnic"), - "pwovvvsfleevn", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datadqlmfdggnbbu"))) - .withAnnotations(Arrays.asList("datayrehjuqwv", "datapxrl")) - .withFolder(new DatasetFolder().withName("zihacen")) - .withLocation(new DatasetLocation().withFolderPath("dataviscot") - .withFileName("databri") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datadc") - .withCompression(new DatasetCompression().withType("datafzcfasf") - .withLevel("dataropalvngtwyuskwg") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(JsonDataset.class); - Assertions.assertEquals("abm", model.description()); - Assertions.assertEquals("zewxtrlqbpxy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("nnx").type()); - Assertions.assertEquals("zihacen", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java deleted file mode 100644 index b1a291d8595b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonDatasetTypePropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.JsonDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class JsonDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datalfnisyxg\",\"fileName\":\"databmtredscnns\",\"\":{\"wtzqzcloyhy\":\"datayyuvtzrxzhclec\",\"wbyorjplbchych\":\"datapgidhzgyresgzsdt\",\"fbqvumkxqj\":\"datakvy\",\"t\":\"dataiuepmaxfnzlpqmp\"}},\"encodingName\":\"datafvulb\",\"compression\":{\"type\":\"datartux\",\"level\":\"datarhfcaeooifqdyw\",\"\":{\"corkfrocgbmxl\":\"dataobhahqmomf\",\"zezbjes\":\"dataj\"}}}") - .toObject(JsonDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonDatasetTypeProperties model = new JsonDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("datalfnisyxg") - .withFileName("databmtredscnns") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datafvulb") - .withCompression(new DatasetCompression().withType("datartux") - .withLevel("datarhfcaeooifqdyw") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(JsonDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java deleted file mode 100644 index eb67f3707e59..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonFormatTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonFormat; - -public final class JsonFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonFormat model = BinaryData.fromString( - "{\"type\":\"JsonFormat\",\"filePattern\":\"datapmillxgjsci\",\"nestingSeparator\":\"datagsoriobij\",\"encodingName\":\"dataydyeuy\",\"jsonNodeReference\":\"databok\",\"jsonPathDefinition\":\"datar\",\"serializer\":\"dataybriop\",\"deserializer\":\"dataeoftnorwai\",\"\":{\"f\":\"dataoctqkmvjanxvzf\",\"wosstfjxtvlxx\":\"datatj\"}}") - .toObject(JsonFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonFormat model = new JsonFormat().withSerializer("dataybriop") - .withDeserializer("dataeoftnorwai") - .withFilePattern("datapmillxgjsci") - .withNestingSeparator("datagsoriobij") - .withEncodingName("dataydyeuy") - .withJsonNodeReference("databok") - .withJsonPathDefinition("datar"); - model = BinaryData.fromObject(model).toObject(JsonFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java deleted file mode 100644 index 18fd97574dc4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class JsonReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonReadSettings model = BinaryData.fromString( - "{\"type\":\"JsonReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"cnggocnwnjmiit\":\"dataxspv\"}},\"\":{\"lk\":\"datafb\"}}") - .toObject(JsonReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonReadSettings model = new JsonReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(JsonReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.java deleted file mode 100644 index c18387ba921c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSinkTests.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.JsonSink; -import com.azure.resourcemanager.datafactory.models.JsonWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class JsonSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonSink model = BinaryData.fromString( - "{\"type\":\"JsonSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datarzubdtzs\",\"disableMetricsCollection\":\"datahmhzpurnpkk\",\"copyBehavior\":\"datakzcfiosralbx\",\"metadata\":[{\"name\":\"dataluvcwu\",\"value\":\"databhxoaqfpqfpkrmlb\"},{\"name\":\"dataqogzaw\",\"value\":\"dataqdnxum\"},{\"name\":\"datavnvs\",\"value\":\"datautq\"}],\"\":{\"lygfvbfejb\":\"datantcwrluqaq\",\"sm\":\"datazklgpifv\",\"auwmsnplqfivx\":\"datak\"}},\"formatSettings\":{\"type\":\"JsonWriteSettings\",\"filePattern\":\"datadjzgovmkplr\",\"\":{\"aogvmqza\":\"datapaxoeylpo\"}},\"writeBatchSize\":\"dataqcqhwfskmkdrpkdp\",\"writeBatchTimeout\":\"dataldwcxjvexlutxcmc\",\"sinkRetryCount\":\"dataotqocnryyp\",\"sinkRetryWait\":\"dataduldsolbz\",\"maxConcurrentConnections\":\"datarufkeylkpvaagrd\",\"disableMetricsCollection\":\"datavglqdsphvo\",\"\":{\"thzfotfrfhrjka\":\"dataryhuo\",\"nitrmzvnrfkzn\":\"datadofshgmqxwop\",\"rnxrjmilogcn\":\"dataaittbmobrxhwpg\",\"plrtxhzt\":\"datafgqibb\"}}") - .toObject(JsonSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSink model = new JsonSink().withWriteBatchSize("dataqcqhwfskmkdrpkdp") - .withWriteBatchTimeout("dataldwcxjvexlutxcmc") - .withSinkRetryCount("dataotqocnryyp") - .withSinkRetryWait("dataduldsolbz") - .withMaxConcurrentConnections("datarufkeylkpvaagrd") - .withDisableMetricsCollection("datavglqdsphvo") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datarzubdtzs") - .withDisableMetricsCollection("datahmhzpurnpkk") - .withCopyBehavior("datakzcfiosralbx") - .withMetadata(Arrays.asList(new MetadataItem().withName("dataluvcwu").withValue("databhxoaqfpqfpkrmlb"), - new MetadataItem().withName("dataqogzaw").withValue("dataqdnxum"), - new MetadataItem().withName("datavnvs").withValue("datautq"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new JsonWriteSettings().withFilePattern("datadjzgovmkplr")); - 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 335da7927c9c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonSourceTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonReadSettings; -import com.azure.resourcemanager.datafactory.models.JsonSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class JsonSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonSource model = BinaryData.fromString( - "{\"type\":\"JsonSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datalxbofdchboacf\",\"disableMetricsCollection\":\"datazwesetutqjsojwoi\",\"\":{\"jka\":\"datanakytzcmagvs\",\"vygmtywivb\":\"datarqhpxwqhzsxgm\",\"ykwbhzs\":\"dataiteedjnklvbrs\"}},\"formatSettings\":{\"type\":\"JsonReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"qxpsnnn\":\"datat\",\"sdxylndbgaic\":\"datahgd\",\"dnp\":\"datakqjzfzk\"}},\"\":{\"asvywkbiekyvak\":\"dataxjdfkqlkaipfyvq\",\"pgnapkpaie\":\"dataah\",\"zmlrvlghlrcdiq\":\"dataoxvoaoavezwcl\",\"awifz\":\"datavhcbu\"}},\"additionalColumns\":\"datatock\",\"sourceRetryCount\":\"dataaawyy\",\"sourceRetryWait\":\"datawoeql\",\"maxConcurrentConnections\":\"dataw\",\"disableMetricsCollection\":\"datarfyww\",\"\":{\"cztmqdkhohspkg\":\"datapkhqhvk\",\"bxxxqfrn\":\"dataemvlyaprj\",\"fauvgt\":\"datazbhmxlp\",\"fbmrwhk\":\"datainozsmyvvfa\"}}") - .toObject(JsonSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonSource model = new JsonSource().withSourceRetryCount("dataaawyy") - .withSourceRetryWait("datawoeql") - .withMaxConcurrentConnections("dataw") - .withDisableMetricsCollection("datarfyww") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datalxbofdchboacf") - .withDisableMetricsCollection("datazwesetutqjsojwoi") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new JsonReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("datatock"); - 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 a4fe3d4cf554..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/JsonWriteSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.JsonWriteSettings; - -public final class JsonWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JsonWriteSettings model = BinaryData.fromString( - "{\"type\":\"JsonWriteSettings\",\"filePattern\":\"dataqtu\",\"\":{\"hfjqpxydpamctzm\":\"datarbrv\",\"sgkouenpgkxyr\":\"datarhccdgunsjssreo\"}}") - .toObject(JsonWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JsonWriteSettings model = new JsonWriteSettings().withFilePattern("dataqtu"); - model = BinaryData.fromObject(model).toObject(JsonWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.java deleted file mode 100644 index 596da5f81ed2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseLocationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseLocation; - -public final class LakeHouseLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseLocation model = BinaryData.fromString( - "{\"type\":\"LakeHouseLocation\",\"folderPath\":\"dataoyrzaaoe\",\"fileName\":\"datapmjen\",\"\":{\"axxcrxoxdj\":\"dataat\"}}") - .toObject(LakeHouseLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseLocation model = new LakeHouseLocation().withFolderPath("dataoyrzaaoe").withFileName("datapmjen"); - model = BinaryData.fromObject(model).toObject(LakeHouseLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseReadSettingsTests.java deleted file mode 100644 index 4d48183cbfae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseReadSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseReadSettings; - -public final class LakeHouseReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseReadSettings model = BinaryData.fromString( - "{\"type\":\"LakeHouseReadSettings\",\"recursive\":\"datayrywfrysrreebj\",\"wildcardFolderPath\":\"datalbxfkiiarlldygf\",\"wildcardFileName\":\"dataty\",\"fileListPath\":\"datasafr\",\"enablePartitionDiscovery\":\"datawuebrvrh\",\"partitionRootPath\":\"datakfffvgb\",\"deleteFilesAfterCompletion\":\"dataei\",\"modifiedDatetimeStart\":\"databwhesbeb\",\"modifiedDatetimeEnd\":\"datamtljzilkyvybl\",\"maxConcurrentConnections\":\"datagirpitzq\",\"disableMetricsCollection\":\"dataxcukurkggqxqanrk\",\"\":{\"dwrbrntvhp\":\"datajfsvfbjcn\",\"alsvxpola\":\"dataykrlz\",\"hyxryvwnzhsigddg\":\"dataorjmsabnmuxl\"}}") - .toObject(LakeHouseReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseReadSettings model = new LakeHouseReadSettings().withMaxConcurrentConnections("datagirpitzq") - .withDisableMetricsCollection("dataxcukurkggqxqanrk") - .withRecursive("datayrywfrysrreebj") - .withWildcardFolderPath("datalbxfkiiarlldygf") - .withWildcardFileName("dataty") - .withFileListPath("datasafr") - .withEnablePartitionDiscovery("datawuebrvrh") - .withPartitionRootPath("datakfffvgb") - .withDeleteFilesAfterCompletion("dataei") - .withModifiedDatetimeStart("databwhesbeb") - .withModifiedDatetimeEnd("datamtljzilkyvybl"); - 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 6fb595c42f3a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LakeHouseTableDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LakeHouseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableDataset model = BinaryData.fromString( - "{\"type\":\"LakehouseTable\",\"typeProperties\":{\"schema\":\"datairgkn\",\"table\":\"datawla\"},\"description\":\"dajy\",\"structure\":\"databjgipvspe\",\"schema\":\"datazhydt\",\"linkedServiceName\":{\"referenceName\":\"bmtrsdplvia\",\"parameters\":{\"gcneviccwb\":\"datarmawo\",\"oi\":\"dataysclwbjgiynqr\",\"eyydx\":\"dataweofvsxauphzefi\",\"exccwldgfq\":\"datagtiivzkd\"}},\"parameters\":{\"cncrvjcullmfw\":{\"type\":\"SecureString\",\"defaultValue\":\"datatacrsc\"}},\"annotations\":[\"dataeowoszzw\",\"datacsjgfxvc\",\"datamubyguqhgnmsvjfg\",\"datapryyircb\"],\"folder\":{\"name\":\"jrbvyrkbuatxkzn\"},\"\":{\"kevday\":\"datambxo\"}}") - .toObject(LakeHouseTableDataset.class); - Assertions.assertEquals("dajy", model.description()); - Assertions.assertEquals("bmtrsdplvia", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("cncrvjcullmfw").type()); - Assertions.assertEquals("jrbvyrkbuatxkzn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableDataset model = new LakeHouseTableDataset().withDescription("dajy") - .withStructure("databjgipvspe") - .withSchema("datazhydt") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bmtrsdplvia") - .withParameters(mapOf("gcneviccwb", "datarmawo", "oi", "dataysclwbjgiynqr", "eyydx", - "dataweofvsxauphzefi", "exccwldgfq", "datagtiivzkd"))) - .withParameters(mapOf("cncrvjcullmfw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatacrsc"))) - .withAnnotations(Arrays.asList("dataeowoszzw", "datacsjgfxvc", "datamubyguqhgnmsvjfg", "datapryyircb")) - .withFolder(new DatasetFolder().withName("jrbvyrkbuatxkzn")) - .withSchemaTypePropertiesSchema("datairgkn") - .withTable("datawla"); - model = BinaryData.fromObject(model).toObject(LakeHouseTableDataset.class); - Assertions.assertEquals("dajy", model.description()); - Assertions.assertEquals("bmtrsdplvia", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("cncrvjcullmfw").type()); - Assertions.assertEquals("jrbvyrkbuatxkzn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.java deleted file mode 100644 index 94d53650863f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LakeHouseTableDatasetTypeProperties; - -public final class LakeHouseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datazkxiym\",\"table\":\"datar\"}") - .toObject(LakeHouseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableDatasetTypeProperties model - = new LakeHouseTableDatasetTypeProperties().withSchema("datazkxiym").withTable("datar"); - model = BinaryData.fromObject(model).toObject(LakeHouseTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSinkTests.java deleted file mode 100644 index 65c665ec2c6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSinkTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseTableSink; - -public final class LakeHouseTableSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableSink model = BinaryData.fromString( - "{\"type\":\"LakeHouseTableSink\",\"tableActionOption\":\"dataulmzxhgwz\",\"partitionOption\":\"datastw\",\"partitionNameList\":\"datawehn\",\"writeBatchSize\":\"datassjbpnatpym\",\"writeBatchTimeout\":\"dataichzcajityjz\",\"sinkRetryCount\":\"dataryouujqyey\",\"sinkRetryWait\":\"dataivincni\",\"maxConcurrentConnections\":\"datawvhcgcmuasu\",\"disableMetricsCollection\":\"datahmilhzytdjcjunsd\",\"\":{\"mxgajyracelnlwg\":\"datarhmpokfxcbb\",\"ins\":\"dataeouhjetxupxe\"}}") - .toObject(LakeHouseTableSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableSink model = new LakeHouseTableSink().withWriteBatchSize("datassjbpnatpym") - .withWriteBatchTimeout("dataichzcajityjz") - .withSinkRetryCount("dataryouujqyey") - .withSinkRetryWait("dataivincni") - .withMaxConcurrentConnections("datawvhcgcmuasu") - .withDisableMetricsCollection("datahmilhzytdjcjunsd") - .withTableActionOption("dataulmzxhgwz") - .withPartitionOption("datastw") - .withPartitionNameList("datawehn"); - 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 ebed8bf1ced7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseTableSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LakeHouseTableSource; - -public final class LakeHouseTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseTableSource model = BinaryData.fromString( - "{\"type\":\"LakeHouseTableSource\",\"timestampAsOf\":\"dataddwgozrdglkmgc\",\"versionAsOf\":\"datakrldfoidyhcwc\",\"additionalColumns\":\"datayuusexenywwkdxq\",\"sourceRetryCount\":\"dataysxpaap\",\"sourceRetryWait\":\"datahdqvcifwk\",\"maxConcurrentConnections\":\"dataytvxrtocadtnmqr\",\"disableMetricsCollection\":\"dataecjixcy\",\"\":{\"r\":\"dataii\",\"kvluuessu\":\"databt\",\"sfbkrtpu\":\"datazfrwmctrngjqc\"}}") - .toObject(LakeHouseTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseTableSource model = new LakeHouseTableSource().withSourceRetryCount("dataysxpaap") - .withSourceRetryWait("datahdqvcifwk") - .withMaxConcurrentConnections("dataytvxrtocadtnmqr") - .withDisableMetricsCollection("dataecjixcy") - .withTimestampAsOf("dataddwgozrdglkmgc") - .withVersionAsOf("datakrldfoidyhcwc") - .withAdditionalColumns("datayuusexenywwkdxq"); - 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 9cf948c6b3d1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LakeHouseWriteSettingsTests.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.LakeHouseWriteSettings; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import java.util.Arrays; - -public final class LakeHouseWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LakeHouseWriteSettings model = BinaryData.fromString( - "{\"type\":\"LakeHouseWriteSettings\",\"maxConcurrentConnections\":\"datakrrp\",\"disableMetricsCollection\":\"datadoli\",\"copyBehavior\":\"datazsglavdtttyd\",\"metadata\":[{\"name\":\"datazrqkjqcshby\",\"value\":\"datamveyrcikedmoufju\"}],\"\":{\"qxhmrilwkcgusvp\":\"datauicvjyjszmle\",\"gwqi\":\"datataulxxznfxdqqzik\",\"rzxvffq\":\"dataodhaslpaae\"}}") - .toObject(LakeHouseWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LakeHouseWriteSettings model = new LakeHouseWriteSettings().withMaxConcurrentConnections("datakrrp") - .withDisableMetricsCollection("datadoli") - .withCopyBehavior("datazsglavdtttyd") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datazrqkjqcshby").withValue("datamveyrcikedmoufju"))); - model = BinaryData.fromObject(model).toObject(LakeHouseWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java deleted file mode 100644 index 920515582c33..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class LinkedIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntimeRequest model - = BinaryData.fromString("{\"factoryName\":\"nrjawgqwg\"}").toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("nrjawgqwg", model.linkedFactoryName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntimeRequest model - = new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("nrjawgqwg"); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntimeRequest.class); - Assertions.assertEquals("nrjawgqwg", model.linkedFactoryName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedIntegrationRuntimeTests.java deleted file mode 100644 index e7380ae71e1d..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\":\"ppoyvijribe\",\"subscriptionId\":\"kopbksribm\",\"dataFactoryName\":\"morikczerqtiq\",\"dataFactoryLocation\":\"wsfr\",\"createTime\":\"2020-12-21T06:23:14Z\"}") - .toObject(LinkedIntegrationRuntime.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntime model = new LinkedIntegrationRuntime(); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntime.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java deleted file mode 100644 index a9541634c962..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceDebugResourceTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceDebugResource model = BinaryData.fromString( - "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"gt\",\"connectVia\":{\"referenceName\":\"yujtvczkcnyx\",\"parameters\":{\"glnkvxlxpagl\":\"dataunjdx\",\"hpzvuqdflvoniyp\":\"dataivbgkcv\",\"idibgqjxgpn\":\"datapubcpzgpxtivhjk\",\"kqmhhaowjr\":\"datahgovfgp\"}},\"description\":\"vuporqzdfuydzv\",\"parameters\":{\"xqpswok\":{\"type\":\"Int\",\"defaultValue\":\"datanq\"},\"gdhbe\":{\"type\":\"Bool\",\"defaultValue\":\"datahl\"},\"wiwtglxxhl\":{\"type\":\"Object\",\"defaultValue\":\"datakzsz\"}},\"annotations\":[\"datagpicr\"],\"\":{\"mqgjsxvpq\":\"datahr\",\"bakclacjfrnxous\":\"databfrmbodthsqqgvri\",\"lwvsgm\":\"dataau\",\"xmmkjs\":\"dataohqfzizv\"}},\"name\":\"hnwpzt\"}") - .toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("hnwpzt", model.name()); - Assertions.assertEquals("gt", model.properties().version()); - Assertions.assertEquals("yujtvczkcnyx", model.properties().connectVia().referenceName()); - Assertions.assertEquals("vuporqzdfuydzv", model.properties().description()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("xqpswok").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceDebugResource model = new LinkedServiceDebugResource().withName("hnwpzt") - .withProperties(new LinkedService().withVersion("gt") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("yujtvczkcnyx") - .withParameters(mapOf("glnkvxlxpagl", "dataunjdx", "hpzvuqdflvoniyp", "dataivbgkcv", "idibgqjxgpn", - "datapubcpzgpxtivhjk", "kqmhhaowjr", "datahgovfgp"))) - .withDescription("vuporqzdfuydzv") - .withParameters(mapOf("xqpswok", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanq"), "gdhbe", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datahl"), "wiwtglxxhl", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datakzsz"))) - .withAnnotations(Arrays.asList("datagpicr")) - .withAdditionalProperties(mapOf("type", "LinkedService"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceDebugResource.class); - Assertions.assertEquals("hnwpzt", model.name()); - Assertions.assertEquals("gt", model.properties().version()); - Assertions.assertEquals("yujtvczkcnyx", model.properties().connectVia().referenceName()); - Assertions.assertEquals("vuporqzdfuydzv", model.properties().description()); - Assertions.assertEquals(ParameterType.INT, model.properties().parameters().get("xqpswok").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java deleted file mode 100644 index 96fd484e0ec4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceListResponseTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceListResponse; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"LinkedService\",\"version\":\"o\",\"connectVia\":{\"referenceName\":\"bnxknalaulppg\",\"parameters\":{\"igvpgylg\":\"datapnapnyiropuh\",\"medjvcslynqwwncw\":\"datagit\",\"pkteo\":\"datazhxgktrmgucn\",\"pfqbuaceopzf\":\"datallwptfdy\"}},\"description\":\"hhuao\",\"parameters\":{\"lzdahzxctobgbkdm\":{\"type\":\"SecureString\",\"defaultValue\":\"dataeqx\"},\"qjhhkxbpv\":{\"type\":\"String\",\"defaultValue\":\"datapostmgrcfbunrm\"}},\"annotations\":[\"datajhxxjyn\"],\"\":{\"xqzvszjfa\":\"dataivkrtsw\",\"ivetvtcq\":\"datavjfdx\"}},\"name\":\"tdo\",\"type\":\"cbxvwvxyslqbh\",\"etag\":\"xoblytkbl\",\"id\":\"ewwwfbkrvrnsv\"},{\"properties\":{\"type\":\"LinkedService\",\"version\":\"q\",\"connectVia\":{\"referenceName\":\"hxcr\",\"parameters\":{\"cgjbirxbp\":\"dataovasrruvwbhsqfsu\",\"dtws\":\"databsrfbj\"}},\"description\":\"t\",\"parameters\":{\"mqtaruoujmkcjh\":{\"type\":\"String\",\"defaultValue\":\"datazbexilzznfqqnvw\"},\"ervnaenqpehi\":{\"type\":\"Array\",\"defaultValue\":\"datatjrybnwjewgdr\"}},\"annotations\":[\"dataygmi\",\"datathnzd\"],\"\":{\"nayqi\":\"datal\"}},\"name\":\"nduhavhqlkthum\",\"type\":\"olbgycduiertgccy\",\"etag\":\"aolps\",\"id\":\"qlfmmdnbb\"}],\"nextLink\":\"zpswiydmc\"}") - .toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("ewwwfbkrvrnsv", model.value().get(0).id()); - Assertions.assertEquals("o", model.value().get(0).properties().version()); - Assertions.assertEquals("bnxknalaulppg", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("hhuao", model.value().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).properties().parameters().get("lzdahzxctobgbkdm").type()); - Assertions.assertEquals("zpswiydmc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceListResponse model = new LinkedServiceListResponse().withValue(Arrays.asList( - new LinkedServiceResourceInner().withId("ewwwfbkrvrnsv") - .withProperties(new LinkedService().withVersion("o") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("bnxknalaulppg") - .withParameters(mapOf("igvpgylg", "datapnapnyiropuh", "medjvcslynqwwncw", "datagit", "pkteo", - "datazhxgktrmgucn", "pfqbuaceopzf", "datallwptfdy"))) - .withDescription("hhuao") - .withParameters(mapOf("lzdahzxctobgbkdm", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataeqx"), - "qjhhkxbpv", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datapostmgrcfbunrm"))) - .withAnnotations(Arrays.asList("datajhxxjyn")) - .withAdditionalProperties(mapOf("type", "LinkedService"))), - new LinkedServiceResourceInner().withId("qlfmmdnbb") - .withProperties(new LinkedService().withVersion("q") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("hxcr") - .withParameters(mapOf("cgjbirxbp", "dataovasrruvwbhsqfsu", "dtws", "databsrfbj"))) - .withDescription("t") - .withParameters(mapOf("mqtaruoujmkcjh", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datazbexilzznfqqnvw"), - "ervnaenqpehi", - new ParameterSpecification().withType(ParameterType.ARRAY) - .withDefaultValue("datatjrybnwjewgdr"))) - .withAnnotations(Arrays.asList("dataygmi", "datathnzd")) - .withAdditionalProperties(mapOf("type", "LinkedService"))))) - .withNextLink("zpswiydmc"); - model = BinaryData.fromObject(model).toObject(LinkedServiceListResponse.class); - Assertions.assertEquals("ewwwfbkrvrnsv", model.value().get(0).id()); - Assertions.assertEquals("o", model.value().get(0).properties().version()); - Assertions.assertEquals("bnxknalaulppg", model.value().get(0).properties().connectVia().referenceName()); - Assertions.assertEquals("hhuao", model.value().get(0).properties().description()); - Assertions.assertEquals(ParameterType.SECURE_STRING, - model.value().get(0).properties().parameters().get("lzdahzxctobgbkdm").type()); - Assertions.assertEquals("zpswiydmc", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java deleted file mode 100644 index c98ad5415feb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceReferenceTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceReference model = BinaryData.fromString( - "{\"referenceName\":\"inrfdwoyu\",\"parameters\":{\"mzqhoftrmaequi\":\"dataiuiefozbhdmsm\",\"iyylhalnswhccsp\":\"datahxicslfaoqz\",\"scywuggwoluhc\":\"datakaivwit\"}}") - .toObject(LinkedServiceReference.class); - Assertions.assertEquals("inrfdwoyu", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceReference model = new LinkedServiceReference().withReferenceName("inrfdwoyu") - .withParameters(mapOf("mzqhoftrmaequi", "dataiuiefozbhdmsm", "iyylhalnswhccsp", "datahxicslfaoqz", - "scywuggwoluhc", "datakaivwit")); - model = BinaryData.fromObject(model).toObject(LinkedServiceReference.class); - Assertions.assertEquals("inrfdwoyu", model.referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java deleted file mode 100644 index bd28f32a9b56..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceResourceInnerTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LinkedServiceResourceInner; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedServiceResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"hzdxssadbzm\",\"connectVia\":{\"referenceName\":\"dfznudaodv\",\"parameters\":{\"bhhxsrzdzuc\":\"datancblylpst\",\"ntnev\":\"datarsc\",\"tmweriofzpyq\":\"dataiwjmygtdssls\",\"hhszh\":\"dataemwabnet\"}},\"description\":\"plvwiwubmwmbes\",\"parameters\":{\"z\":{\"type\":\"Array\",\"defaultValue\":\"datawtppjflcxogaoko\"}},\"annotations\":[\"dataikvmkqzeqqk\",\"datal\",\"datafzxmhhvhgureodkw\",\"databdagxt\"],\"\":{\"akbogqxndlkzgxh\":\"datadxbx\",\"podxunkb\":\"dataripl\"}},\"name\":\"xmubyyntwlrbq\",\"type\":\"oievseotgqrlltm\",\"etag\":\"lauwzizxbmpgcjef\",\"id\":\"muvp\"}") - .toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("muvp", model.id()); - Assertions.assertEquals("hzdxssadbzm", model.properties().version()); - Assertions.assertEquals("dfznudaodv", model.properties().connectVia().referenceName()); - Assertions.assertEquals("plvwiwubmwmbes", model.properties().description()); - Assertions.assertEquals(ParameterType.ARRAY, model.properties().parameters().get("z").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceResourceInner model = new LinkedServiceResourceInner().withId("muvp") - .withProperties(new LinkedService().withVersion("hzdxssadbzm") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("dfznudaodv") - .withParameters(mapOf("bhhxsrzdzuc", "datancblylpst", "ntnev", "datarsc", "tmweriofzpyq", - "dataiwjmygtdssls", "hhszh", "dataemwabnet"))) - .withDescription("plvwiwubmwmbes") - .withParameters(mapOf("z", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datawtppjflcxogaoko"))) - .withAnnotations(Arrays.asList("dataikvmkqzeqqk", "datal", "datafzxmhhvhgureodkw", "databdagxt")) - .withAdditionalProperties(mapOf("type", "LinkedService"))); - model = BinaryData.fromObject(model).toObject(LinkedServiceResourceInner.class); - Assertions.assertEquals("muvp", model.id()); - Assertions.assertEquals("hzdxssadbzm", model.properties().version()); - Assertions.assertEquals("dfznudaodv", model.properties().connectVia().referenceName()); - Assertions.assertEquals("plvwiwubmwmbes", model.properties().description()); - Assertions.assertEquals(ParameterType.ARRAY, model.properties().parameters().get("z").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java deleted file mode 100644 index e5209d49bc30..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServiceTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedService model = BinaryData.fromString( - "{\"type\":\"LinkedService\",\"version\":\"tdum\",\"connectVia\":{\"referenceName\":\"p\",\"parameters\":{\"fgohdneuelfphs\":\"databmnzbtbhjpgl\",\"v\":\"datayhtozfikdowwqu\",\"lvithhqzonosgg\":\"datazx\",\"ljuti\":\"datahcohfwdsjnk\"}},\"description\":\"wacf\",\"parameters\":{\"vhqcrail\":{\"type\":\"Array\",\"defaultValue\":\"datazewk\"},\"wdmhdlxyjrxs\":{\"type\":\"String\",\"defaultValue\":\"datappfufl\"},\"pnedgf\":{\"type\":\"Float\",\"defaultValue\":\"datafcnihgwq\"},\"dcvd\":{\"type\":\"Bool\",\"defaultValue\":\"datakcvqvpke\"}},\"annotations\":[\"dataood\"],\"\":{\"d\":\"databobzdopcjwvnhd\",\"twuoegrpkhjwni\":\"datamgxcxrslpm\"}}") - .toObject(LinkedService.class); - Assertions.assertEquals("tdum", model.version()); - Assertions.assertEquals("p", model.connectVia().referenceName()); - Assertions.assertEquals("wacf", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vhqcrail").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedService model = new LinkedService().withVersion("tdum") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("p") - .withParameters(mapOf("fgohdneuelfphs", "databmnzbtbhjpgl", "v", "datayhtozfikdowwqu", "lvithhqzonosgg", - "datazx", "ljuti", "datahcohfwdsjnk"))) - .withDescription("wacf") - .withParameters(mapOf("vhqcrail", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazewk"), "wdmhdlxyjrxs", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datappfufl"), "pnedgf", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datafcnihgwq"), "dcvd", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datakcvqvpke"))) - .withAnnotations(Arrays.asList("dataood")) - .withAdditionalProperties(mapOf("type", "LinkedService")); - model = BinaryData.fromObject(model).toObject(LinkedService.class); - Assertions.assertEquals("tdum", model.version()); - Assertions.assertEquals("p", model.connectVia().referenceName()); - Assertions.assertEquals("wacf", model.description()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("vhqcrail").type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 5ae82f0c8be1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LinkedServicesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"vkcufwse\",\"connectVia\":{\"referenceName\":\"kalekneaho\",\"parameters\":{\"gtrnjzbvbwabily\":\"dataupxibu\",\"qpkskbidmz\":\"datamfaxepuvwahfnlks\",\"qf\":\"datajpbhcgesbt\"}},\"description\":\"hlitcydgesflnzi\",\"parameters\":{\"rjkinofwzci\":{\"type\":\"String\",\"defaultValue\":\"datadhxamjhpqfjpef\"}},\"annotations\":[\"dataqesyifdrbkprblw\",\"databjse\",\"dataqqts\",\"dataupogtrwkuwn\"],\"\":{\"wngtiyzzi\":\"datajeo\",\"nrky\":\"datauovgipqgtsgo\",\"qoiqonnvaybo\":\"datahtcrxcnuyfvrid\",\"pojbifixdgkvlze\":\"databigzlvqmy\"}},\"name\":\"qopwabrzrhdezlhs\",\"type\":\"pdbol\",\"etag\":\"hyqdvxqoajfoscd\",\"id\":\"fatf\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - LinkedServiceResource response - = manager.linkedServices() - .define("wdqojxyabv") - .withExistingFactory("yw", "raovqbnzrrkmanr") - .withProperties(new LinkedService().withVersion("silahsk") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("eazgfdy") - .withParameters(mapOf("uyrzidoyv", "dataiielbtgexiwcqei", "fplmpbvzbtrft", "datau", "rao", - "datatpvoehsf", "eyuillrrq", "dataqrxewdgzfqs"))) - .withDescription("phiqje") - .withParameters(mapOf("ljcblppnq", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataoqg"), - "bkz", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("datavcwjiwgakghva"), - "spnyutfhqighnun", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("databxau"))) - .withAnnotations(Arrays.asList("datamzbir", "datanddaovgi")) - .withAdditionalProperties(mapOf("type", "LinkedService"))) - .withIfMatch("hsv") - .create(); - - Assertions.assertEquals("fatf", response.id()); - Assertions.assertEquals("vkcufwse", response.properties().version()); - Assertions.assertEquals("kalekneaho", response.properties().connectVia().referenceName()); - Assertions.assertEquals("hlitcydgesflnzi", response.properties().description()); - Assertions.assertEquals(ParameterType.STRING, response.properties().parameters().get("rjkinofwzci").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 cb7796402a5e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.linkedServices() - .deleteWithResponse("f", "jrkueprpnzbfoldb", "liljgyrpvm", 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 d372c37e2319..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LinkedServicesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"LinkedService\",\"version\":\"iaot\",\"connectVia\":{\"referenceName\":\"xluovzmijirpwltb\",\"parameters\":{\"fcmsotudnkrwwchy\":\"datamb\",\"xixfeely\":\"dataeig\",\"mdn\":\"dataavin\",\"bobagaigtpjj\":\"dataqyvzzrnikan\"}},\"description\":\"qolmoifxli\",\"parameters\":{\"fjt\":{\"type\":\"Float\",\"defaultValue\":\"dataqxqjvjubjqjxobm\"},\"upkjyosqwcxedk\":{\"type\":\"Bool\",\"defaultValue\":\"datartarneug\"}},\"annotations\":[\"datakfrisrehg\",\"datafiflpiq\",\"dataisjboghjdihtc\"],\"\":{\"yu\":\"datafvdktbaexb\"}},\"name\":\"bycuuxgdadflil\",\"type\":\"ptvmtnougmf\",\"etag\":\"s\",\"id\":\"treihlszpus\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - LinkedServiceResource response = manager.linkedServices() - .getWithResponse("i", "xz", "niiudnm", "jjmimy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("treihlszpus", response.id()); - Assertions.assertEquals("iaot", response.properties().version()); - Assertions.assertEquals("xluovzmijirpwltb", response.properties().connectVia().referenceName()); - Assertions.assertEquals("qolmoifxli", response.properties().description()); - Assertions.assertEquals(ParameterType.FLOAT, response.properties().parameters().get("fjt").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 4c51f8b39d47..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LinkedServicesListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"LinkedService\",\"version\":\"jdwdaocwqkxwo\",\"connectVia\":{\"referenceName\":\"ffnojiqtpbfc\",\"parameters\":{\"tsdgnhlp\":\"datarencxo\",\"iafgbfkmqhzjsh\":\"datacctuxxytmxjpku\"}},\"description\":\"jnrjr\",\"parameters\":{\"jxc\":{\"type\":\"String\",\"defaultValue\":\"dataeurjynezpe\"},\"ugi\":{\"type\":\"Float\",\"defaultValue\":\"datanptmriqe\"},\"gvwhjfuoipstv\":{\"type\":\"Object\",\"defaultValue\":\"datagstqsrt\"},\"jrqhpzlvmxibp\":{\"type\":\"Object\",\"defaultValue\":\"datazejbrokhlopygrsv\"}},\"annotations\":[\"datapsyzkaentip\",\"datari\",\"datawftrjdyi\",\"datagrcjoycqndgbxtz\"],\"\":{\"wgyazppefsdoodc\":\"dataszohntchigubsi\",\"iey\":\"dataj\"}},\"name\":\"npqtwohfhscke\",\"type\":\"m\",\"etag\":\"goaxtwtkkmuir\",\"id\":\"oaxstqqjq\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataFactoryManager manager = DataFactoryManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.linkedServices().listByFactory("imnfvbfj", "vspxxbfqlfkwjiui", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("oaxstqqjq", response.iterator().next().id()); - Assertions.assertEquals("jdwdaocwqkxwo", response.iterator().next().properties().version()); - Assertions.assertEquals("ffnojiqtpbfc", response.iterator().next().properties().connectVia().referenceName()); - Assertions.assertEquals("jnrjr", response.iterator().next().properties().description()); - Assertions.assertEquals(ParameterType.STRING, - response.iterator().next().properties().parameters().get("jxc").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 96c2911d6ddb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogLocationSettingsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogLocationSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogLocationSettings model = BinaryData.fromString( - "{\"linkedServiceName\":{\"referenceName\":\"dmdpndouylf\",\"parameters\":{\"zassrs\":\"dataqinaokxouknzh\"}},\"path\":\"datauknbtxt\"}") - .toObject(LogLocationSettings.class); - Assertions.assertEquals("dmdpndouylf", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogLocationSettings model = new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dmdpndouylf") - .withParameters(mapOf("zassrs", "dataqinaokxouknzh"))) - .withPath("datauknbtxt"); - model = BinaryData.fromObject(model).toObject(LogLocationSettings.class); - Assertions.assertEquals("dmdpndouylf", 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 88d7db832be4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogSettingsTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CopyActivityLogSettings; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogSettings model = BinaryData.fromString( - "{\"enableCopyActivityLog\":\"datawnxry\",\"copyActivityLogSettings\":{\"logLevel\":\"datajcrpaxwx\",\"enableReliableLogging\":\"dataxsetvdzidldmxfqf\"},\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"ywbbanzhdciu\",\"parameters\":{\"hop\":\"databvflgkkiu\",\"rtaevq\":\"datafobpyeo\",\"owsmrvdtqhr\":\"datafdhpkiiunyrobcke\"}},\"path\":\"dataqs\"}}") - .toObject(LogSettings.class); - Assertions.assertEquals("ywbbanzhdciu", model.logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSettings model - = new LogSettings().withEnableCopyActivityLog("datawnxry") - .withCopyActivityLogSettings(new CopyActivityLogSettings().withLogLevel("datajcrpaxwx") - .withEnableReliableLogging("dataxsetvdzidldmxfqf")) - .withLogLocationSettings( - new LogLocationSettings() - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("ywbbanzhdciu") - .withParameters(mapOf("hop", "databvflgkkiu", "rtaevq", "datafobpyeo", "owsmrvdtqhr", - "datafdhpkiiunyrobcke"))) - .withPath("dataqs")); - model = BinaryData.fromObject(model).toObject(LogSettings.class); - Assertions.assertEquals("ywbbanzhdciu", 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 293e30d1f36f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LogStorageSettingsTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LogStorageSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogStorageSettings model = BinaryData.fromString( - "{\"linkedServiceName\":{\"referenceName\":\"hmjsqcubyj\",\"parameters\":{\"ecsft\":\"datalliteenah\",\"jh\":\"datasubzfuhjnmdcyrbz\"}},\"path\":\"datavtzdxtwyxpkww\",\"logLevel\":\"datakvdevdvkeyqx\",\"enableReliableLogging\":\"datahdnlxeiluexvm\",\"\":{\"jwtalbqkg\":\"dataqpsqpf\",\"iqtz\":\"datachdyxrjjdji\",\"ddkujvqzcuqc\":\"datab\"}}") - .toObject(LogStorageSettings.class); - Assertions.assertEquals("hmjsqcubyj", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogStorageSettings model = new LogStorageSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hmjsqcubyj") - .withParameters(mapOf("ecsft", "datalliteenah", "jh", "datasubzfuhjnmdcyrbz"))) - .withPath("datavtzdxtwyxpkww") - .withLogLevel("datakvdevdvkeyqx") - .withEnableReliableLogging("datahdnlxeiluexvm") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(LogStorageSettings.class); - Assertions.assertEquals("hmjsqcubyj", 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 190502fbddcc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTests.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LookupActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LookupActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LookupActivity model = BinaryData.fromString( - "{\"type\":\"Lookup\",\"typeProperties\":{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"datasmnelqlqnwv\",\"sourceRetryWait\":\"dataxzdimnfnrpq\",\"maxConcurrentConnections\":\"datazgncyksblre\",\"disableMetricsCollection\":\"datawak\",\"\":{\"lwqhzyrugst\":\"dataiylkfnedxdemcyr\",\"ugkttlpw\":\"datazpozqluu\",\"lqdotqe\":\"dataolajevww\",\"jbbwftcnz\":\"datauenteucao\"}},\"dataset\":{\"referenceName\":\"kdademqptxekmdk\",\"parameters\":{\"lppnevujkzb\":\"dataupmlayejocsqtibu\",\"fajygnhmoeoxs\":\"datakgvwkdgsrtm\",\"z\":\"databl\"}},\"firstRowOnly\":\"datacxygpmj\"},\"linkedServiceName\":{\"referenceName\":\"mtxfaucihqs\",\"parameters\":{\"oacnlyzi\":\"dataq\",\"xiwfkdblvbwuey\":\"datawtqvgpidrtb\"}},\"policy\":{\"timeout\":\"dataujvmnooagaqnekwe\",\"retry\":\"datampiql\",\"retryIntervalInSeconds\":1187162100,\"secureInput\":false,\"secureOutput\":true,\"\":{\"hcpsuf\":\"datamhvjogv\"}},\"name\":\"dgcvfxsvxk\",\"description\":\"hkhwqwvw\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"wlenrcovq\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"gzslnnc\":\"datactkrgagxzmrxx\",\"vni\":\"datawrhoma\"}},{\"activity\":\"up\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"kqvkdpnqcuprl\":\"datayetfxyx\",\"ovsqmzee\":\"datazfafekcu\",\"fgkbytzmnamesdcm\":\"dataitqvqyinifnmc\"}},{\"activity\":\"mv\",\"dependencyConditions\":[\"Failed\"],\"\":{\"vaap\":\"datahyrh\",\"uj\":\"datagyyufhcfeggy\"}}],\"userProperties\":[{\"name\":\"vazqsbrqspvl\",\"value\":\"datauxvujuxvl\"},{\"name\":\"x\",\"value\":\"dataftcinj\"},{\"name\":\"rayoask\",\"value\":\"datallqweoobbngym\"}],\"\":{\"wtzxq\":\"dataw\",\"pwvhiaxkm\":\"dataqzplzyjktc\",\"fhlwgka\":\"dataitczuscqobujfx\",\"kmbdhcc\":\"dataxp\"}}") - .toObject(LookupActivity.class); - Assertions.assertEquals("dgcvfxsvxk", model.name()); - Assertions.assertEquals("hkhwqwvw", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("wlenrcovq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vazqsbrqspvl", model.userProperties().get(0).name()); - Assertions.assertEquals("mtxfaucihqs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1187162100, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("kdademqptxekmdk", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivity model = new LookupActivity().withName("dgcvfxsvxk") - .withDescription("hkhwqwvw") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("wlenrcovq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("up") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mv") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("vazqsbrqspvl").withValue("datauxvujuxvl"), - new UserProperty().withName("x").withValue("dataftcinj"), - new UserProperty().withName("rayoask").withValue("datallqweoobbngym"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mtxfaucihqs") - .withParameters(mapOf("oacnlyzi", "dataq", "xiwfkdblvbwuey", "datawtqvgpidrtb"))) - .withPolicy(new ActivityPolicy().withTimeout("dataujvmnooagaqnekwe") - .withRetry("datampiql") - .withRetryIntervalInSeconds(1187162100) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withSource(new CopySource().withSourceRetryCount("datasmnelqlqnwv") - .withSourceRetryWait("dataxzdimnfnrpq") - .withMaxConcurrentConnections("datazgncyksblre") - .withDisableMetricsCollection("datawak") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withDataset( - new DatasetReference().withReferenceName("kdademqptxekmdk") - .withParameters(mapOf("lppnevujkzb", "dataupmlayejocsqtibu", "fajygnhmoeoxs", "datakgvwkdgsrtm", - "z", "databl"))) - .withFirstRowOnly("datacxygpmj"); - model = BinaryData.fromObject(model).toObject(LookupActivity.class); - Assertions.assertEquals("dgcvfxsvxk", model.name()); - Assertions.assertEquals("hkhwqwvw", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("wlenrcovq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vazqsbrqspvl", model.userProperties().get(0).name()); - Assertions.assertEquals("mtxfaucihqs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1187162100, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - Assertions.assertEquals("kdademqptxekmdk", 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 8d1e4bff598d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/LookupActivityTypePropertiesTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.LookupActivityTypeProperties; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class LookupActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LookupActivityTypeProperties model = BinaryData.fromString( - "{\"source\":{\"type\":\"CopySource\",\"sourceRetryCount\":\"dataotccbdu\",\"sourceRetryWait\":\"datawfbqycubmeihagm\",\"maxConcurrentConnections\":\"datadmlkxwc\",\"disableMetricsCollection\":\"datalbiptsf\",\"\":{\"o\":\"dataaobuimfdaqunje\",\"eablknqnqqcgi\":\"dataegmazd\"}},\"dataset\":{\"referenceName\":\"ffdeogm\",\"parameters\":{\"po\":\"dataopjlgtcswqxeva\",\"gn\":\"datamxtcnmocskpgn\",\"dezm\":\"dataguqfnhmmvedj\"}},\"firstRowOnly\":\"databezlucxbu\"}") - .toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("ffdeogm", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LookupActivityTypeProperties model = new LookupActivityTypeProperties() - .withSource(new CopySource().withSourceRetryCount("dataotccbdu") - .withSourceRetryWait("datawfbqycubmeihagm") - .withMaxConcurrentConnections("datadmlkxwc") - .withDisableMetricsCollection("datalbiptsf") - .withAdditionalProperties(mapOf("type", "CopySource"))) - .withDataset(new DatasetReference().withReferenceName("ffdeogm") - .withParameters( - mapOf("po", "dataopjlgtcswqxeva", "gn", "datamxtcnmocskpgn", "dezm", "dataguqfnhmmvedj"))) - .withFirstRowOnly("databezlucxbu"); - model = BinaryData.fromObject(model).toObject(LookupActivityTypeProperties.class); - Assertions.assertEquals("ffdeogm", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java deleted file mode 100644 index 9f371746a9ad..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoObjectDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MagentoObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MagentoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MagentoObjectDataset model = BinaryData.fromString( - "{\"type\":\"MagentoObject\",\"typeProperties\":{\"tableName\":\"datasvkllrz\"},\"description\":\"hhkbc\",\"structure\":\"dataazk\",\"schema\":\"datajthprgfwhfzhhr\",\"linkedServiceName\":{\"referenceName\":\"rmrfyyqjcni\",\"parameters\":{\"ztqe\":\"datarsddcuqddldaoyv\",\"zzw\":\"dataqjojesxjht\"}},\"parameters\":{\"guzlweoyxfoaf\":{\"type\":\"Array\",\"defaultValue\":\"dataoyineuaxpmezit\"}},\"annotations\":[\"datapzlx\"],\"folder\":{\"name\":\"dhgwhlbpjuaj\"},\"\":{\"svdtyydd\":\"dataavmitnwlyhbuj\"}}") - .toObject(MagentoObjectDataset.class); - Assertions.assertEquals("hhkbc", model.description()); - Assertions.assertEquals("rmrfyyqjcni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("guzlweoyxfoaf").type()); - Assertions.assertEquals("dhgwhlbpjuaj", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MagentoObjectDataset model = new MagentoObjectDataset().withDescription("hhkbc") - .withStructure("dataazk") - .withSchema("datajthprgfwhfzhhr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rmrfyyqjcni") - .withParameters(mapOf("ztqe", "datarsddcuqddldaoyv", "zzw", "dataqjojesxjht"))) - .withParameters(mapOf("guzlweoyxfoaf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataoyineuaxpmezit"))) - .withAnnotations(Arrays.asList("datapzlx")) - .withFolder(new DatasetFolder().withName("dhgwhlbpjuaj")) - .withTableName("datasvkllrz"); - model = BinaryData.fromObject(model).toObject(MagentoObjectDataset.class); - Assertions.assertEquals("hhkbc", model.description()); - Assertions.assertEquals("rmrfyyqjcni", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("guzlweoyxfoaf").type()); - Assertions.assertEquals("dhgwhlbpjuaj", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java deleted file mode 100644 index 8e9c64b9c508..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MagentoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MagentoSource; - -public final class MagentoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MagentoSource model = BinaryData.fromString( - "{\"type\":\"MagentoSource\",\"query\":\"datavheqzl\",\"queryTimeout\":\"datavaskrgoodfhpyue\",\"additionalColumns\":\"dataynyddpjlizl\",\"sourceRetryCount\":\"datahtcuglgmfz\",\"sourceRetryWait\":\"dataolaflsjwaw\",\"maxConcurrentConnections\":\"dataqmznkcwiok\",\"disableMetricsCollection\":\"datakrv\",\"\":{\"npxumgnjmskuv\":\"databnehbbchtcoelxr\",\"ow\":\"datauogj\",\"m\":\"datandefmebpalzpyptg\"}}") - .toObject(MagentoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MagentoSource model = new MagentoSource().withSourceRetryCount("datahtcuglgmfz") - .withSourceRetryWait("dataolaflsjwaw") - .withMaxConcurrentConnections("dataqmznkcwiok") - .withDisableMetricsCollection("datakrv") - .withQueryTimeout("datavaskrgoodfhpyue") - .withAdditionalColumns("dataynyddpjlizl") - .withQuery("datavheqzl"); - model = BinaryData.fromObject(model).toObject(MagentoSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedIdentityCredentialTests.java deleted file mode 100644 index 839867d62653..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\":\"ManagedIdentity\",\"typeProperties\":{\"resourceId\":\"vdbdllmutwmarfbs\"},\"description\":\"pgxsczrdmbebxmk\",\"annotations\":[\"datalrhcen\",\"datagutitjwvvvapdsh\",\"databfweezzrzfytq\"],\"\":{\"dphi\":\"dataxgofiphlwy\",\"ztsgklu\":\"datahkigslczkzl\",\"xbyedca\":\"dataaxcbfrnttlrumv\"}}") - .toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("pgxsczrdmbebxmk", model.description()); - Assertions.assertEquals("vdbdllmutwmarfbs", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityCredential model = new ManagedIdentityCredential().withDescription("pgxsczrdmbebxmk") - .withAnnotations(Arrays.asList("datalrhcen", "datagutitjwvvvapdsh", "databfweezzrzfytq")) - .withResourceId("vdbdllmutwmarfbs"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityCredential.class); - Assertions.assertEquals("pgxsczrdmbebxmk", model.description()); - Assertions.assertEquals("vdbdllmutwmarfbs", 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 bf996f481f68..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\":\"jpjnnh\"}").toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("jpjnnh", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentityTypeProperties model = new ManagedIdentityTypeProperties().withResourceId("jpjnnh"); - model = BinaryData.fromObject(model).toObject(ManagedIdentityTypeProperties.class); - Assertions.assertEquals("jpjnnh", model.resourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java deleted file mode 100644 index ee157a75cc6e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointListResponseTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpointListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpointListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"connectionState\":{\"actionsRequired\":\"dulontacn\",\"description\":\"w\",\"status\":\"htuevrhrljy\"},\"fqdns\":[\"wxhn\",\"duugwbsre\",\"rfqkfuar\",\"nlvhhtklnvnafvv\"],\"groupId\":\"f\",\"isReserved\":false,\"privateLinkResourceId\":\"jboslcqxypok\",\"provisioningState\":\"minqcym\",\"\":{\"dxxewuninv\":\"datagn\",\"h\":\"datadb\",\"tddmf\":\"dataqdtvqecrqctmxx\"}},\"name\":\"uytxzvtznapxban\",\"type\":\"vvoxczytprwnw\",\"etag\":\"oevytlyokr\",\"id\":\"o\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"vnsasbcrymodi\",\"description\":\"xkl\",\"status\":\"d\"},\"fqdns\":[\"zpmkmlmvev\",\"xzopjhbzxl\",\"ohrdddt\"],\"groupId\":\"xqbawpc\",\"isReserved\":false,\"privateLinkResourceId\":\"qcy\",\"provisioningState\":\"apqofyuicdhz\",\"\":{\"d\":\"databwwg\"}},\"name\":\"bid\",\"type\":\"m\",\"etag\":\"f\",\"id\":\"fmuvapckccr\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"eyoxoyyukphai\",\"description\":\"oir\",\"status\":\"boshbragapyyrmfs\"},\"fqdns\":[\"avbopfp\",\"dbwnu\"],\"groupId\":\"ahxku\",\"isReserved\":true,\"privateLinkResourceId\":\"caac\",\"provisioningState\":\"mmcpug\",\"\":{\"whoqhnlbqnbldxe\":\"dataqepvufhbzeh\",\"orim\":\"dataclgsc\",\"viyfcaabeolhbhlv\":\"datarsrrmoucsofldp\",\"bsxtkcudfbsfarfs\":\"datamxuq\"}},\"name\":\"wlkjxn\",\"type\":\"vwgf\",\"etag\":\"mhqykizmdksa\",\"id\":\"fcluqvo\"},{\"properties\":{\"connectionState\":{\"actionsRequired\":\"cjimryvwgcwwpbmz\",\"description\":\"esyds\",\"status\":\"efoh\"},\"fqdns\":[\"vopwndyqleallk\",\"mtkhlowkxxpvbr\",\"fjmzsyzfho\"],\"groupId\":\"h\",\"isReserved\":true,\"privateLinkResourceId\":\"ychunsjlpjrtwszh\",\"provisioningState\":\"uic\",\"\":{\"dpyflubhv\":\"datatrrmhwrb\",\"lw\":\"dataglrocuy\",\"ooclutnp\":\"datahmem\",\"ujxsglhsr\":\"datamemczjkmmyk\"}},\"name\":\"yejylmbkzudnigrf\",\"type\":\"otjewlpxuzzjgnre\",\"etag\":\"yhqotoihiqakydi\",\"id\":\"brkwpzdqt\"}],\"nextLink\":\"cspodaqax\"}") - .toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("o", model.value().get(0).id()); - Assertions.assertEquals("wxhn", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().groupId()); - Assertions.assertEquals("jboslcqxypok", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("cspodaqax", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointListResponse model = new ManagedPrivateEndpointListResponse() - .withValue(Arrays.asList( - new ManagedPrivateEndpointResourceInner().withId("o") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("wxhn", "duugwbsre", "rfqkfuar", "nlvhhtklnvnafvv")) - .withGroupId("f") - .withPrivateLinkResourceId("jboslcqxypok") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "minqcym"))), - new ManagedPrivateEndpointResourceInner().withId("fmuvapckccr") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("zpmkmlmvev", "xzopjhbzxl", "ohrdddt")) - .withGroupId("xqbawpc") - .withPrivateLinkResourceId("qcy") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "apqofyuicdhz"))), - new ManagedPrivateEndpointResourceInner().withId("fcluqvo") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("avbopfp", "dbwnu")) - .withGroupId("ahxku") - .withPrivateLinkResourceId("caac") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "mmcpug"))), - new ManagedPrivateEndpointResourceInner().withId("brkwpzdqt") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("vopwndyqleallk", "mtkhlowkxxpvbr", "fjmzsyzfho")) - .withGroupId("h") - .withPrivateLinkResourceId("ychunsjlpjrtwszh") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "uic"))))) - .withNextLink("cspodaqax"); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointListResponse.class); - Assertions.assertEquals("o", model.value().get(0).id()); - Assertions.assertEquals("wxhn", model.value().get(0).properties().fqdns().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().groupId()); - Assertions.assertEquals("jboslcqxypok", model.value().get(0).properties().privateLinkResourceId()); - Assertions.assertEquals("cspodaqax", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java deleted file mode 100644 index 773dbe7482fb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointResourceInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedPrivateEndpointResourceInner; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpointResourceInner model = BinaryData.fromString( - "{\"properties\":{\"connectionState\":{\"actionsRequired\":\"ietgbebjfu\",\"description\":\"moichdlpnfpubntn\",\"status\":\"tzviqsowsaaelcat\"},\"fqdns\":[\"uhplrvkmjcwmjv\"],\"groupId\":\"fggc\",\"isReserved\":false,\"privateLinkResourceId\":\"lizrzbjpsfxsfuz\",\"provisioningState\":\"vtmva\",\"\":{\"oveofizrvjfnmj\":\"dataidqlvhu\"}},\"name\":\"lwyzgib\",\"type\":\"ujr\",\"etag\":\"fojuidjpuuyj\",\"id\":\"ejikzoeovvtzejet\"}") - .toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("ejikzoeovvtzejet", model.id()); - Assertions.assertEquals("uhplrvkmjcwmjv", model.properties().fqdns().get(0)); - Assertions.assertEquals("fggc", model.properties().groupId()); - Assertions.assertEquals("lizrzbjpsfxsfuz", model.properties().privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpointResourceInner model = new ManagedPrivateEndpointResourceInner().withId("ejikzoeovvtzejet") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("uhplrvkmjcwmjv")) - .withGroupId("fggc") - .withPrivateLinkResourceId("lizrzbjpsfxsfuz") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "vtmva"))); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpointResourceInner.class); - Assertions.assertEquals("ejikzoeovvtzejet", model.id()); - Assertions.assertEquals("uhplrvkmjcwmjv", model.properties().fqdns().get(0)); - Assertions.assertEquals("fggc", model.properties().groupId()); - Assertions.assertEquals("lizrzbjpsfxsfuz", model.properties().privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java deleted file mode 100644 index 01bfe3b605d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionStateProperties; -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedPrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedPrivateEndpoint model = BinaryData.fromString( - "{\"connectionState\":{\"actionsRequired\":\"nt\",\"description\":\"yjuzkdb\",\"status\":\"o\"},\"fqdns\":[\"zvhqjwtrhtgvg\"],\"groupId\":\"c\",\"isReserved\":true,\"privateLinkResourceId\":\"lawjmjsmwrok\",\"provisioningState\":\"xfzzzwyjafitlhgu\",\"\":{\"mltx\":\"datachl\",\"fpafolpymwamxq\":\"datawhmozusgzvlnsnnj\",\"gdphtvdula\":\"datarag\"}}") - .toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("zvhqjwtrhtgvg", model.fqdns().get(0)); - Assertions.assertEquals("c", model.groupId()); - Assertions.assertEquals("lawjmjsmwrok", model.privateLinkResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedPrivateEndpoint model = new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("zvhqjwtrhtgvg")) - .withGroupId("c") - .withPrivateLinkResourceId("lawjmjsmwrok") - .withAdditionalProperties(mapOf("isReserved", true, "provisioningState", "xfzzzwyjafitlhgu")); - model = BinaryData.fromObject(model).toObject(ManagedPrivateEndpoint.class); - Assertions.assertEquals("zvhqjwtrhtgvg", model.fqdns().get(0)); - Assertions.assertEquals("c", model.groupId()); - Assertions.assertEquals("lawjmjsmwrok", model.privateLinkResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 5bf904303a6c..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"jyfiabhepxqtkynl\",\"description\":\"norhwdo\",\"status\":\"ythsl\"},\"fqdns\":[\"lvwbgbmpit\"],\"groupId\":\"xhiuhgvgnolusqfd\",\"isReserved\":true,\"privateLinkResourceId\":\"pwvieymkguvrd\",\"provisioningState\":\"proytd\",\"\":{\"vmvpp\":\"datalq\",\"is\":\"datatsolxnhlrpsign\"}},\"name\":\"obpxfgp\",\"type\":\"zdzswvfwiunjwqx\",\"etag\":\"tfzgdq\",\"id\":\"vbiryxsa\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ManagedPrivateEndpointResource response = manager.managedPrivateEndpoints() - .define("zbg") - .withExistingManagedVirtualNetwork("cwacchixdafrx", "rhqzjz", "onttfvjfwl") - .withProperties(new ManagedPrivateEndpoint().withConnectionState(new ConnectionStateProperties()) - .withFqdns(Arrays.asList("sayiivoixefncqf", "wqnz", "ctnmkitsvkuop", "vqsabopou")) - .withGroupId("gxnzpqegga") - .withPrivateLinkResourceId("zudysndiexb") - .withAdditionalProperties(mapOf("isReserved", false, "provisioningState", "wjmqn"))) - .withIfMatch("nfwijlvkrnsodohp") - .create(); - - Assertions.assertEquals("vbiryxsa", response.id()); - Assertions.assertEquals("lvwbgbmpit", response.properties().fqdns().get(0)); - Assertions.assertEquals("xhiuhgvgnolusqfd", response.properties().groupId()); - Assertions.assertEquals("pwvieymkguvrd", 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 47d866f79aa3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.managedPrivateEndpoints() - .deleteWithResponse("ebberydeoeyef", "nibhqieytup", "xahzjntoqfxoapw", "lvyxomugzbrygw", - 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 ca21e0244dee..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"ofvzpbd\",\"description\":\"qtruyzbrkzsax\",\"status\":\"nsepdwxflmk\"},\"fqdns\":[\"idripnut\"],\"groupId\":\"hzejkuszq\",\"isReserved\":false,\"privateLinkResourceId\":\"tgzrgmc\",\"provisioningState\":\"vvjamxgqxb\",\"\":{\"ju\":\"dataxe\",\"uvxvdu\":\"dataykommmygmit\"}},\"name\":\"bd\",\"type\":\"vx\",\"etag\":\"o\",\"id\":\"xu\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ManagedPrivateEndpointResource response = manager.managedPrivateEndpoints() - .getWithResponse("mlcenty", "d", "kvmft", "qaewu", "poltq", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xu", response.id()); - Assertions.assertEquals("idripnut", response.properties().fqdns().get(0)); - Assertions.assertEquals("hzejkuszq", response.properties().groupId()); - Assertions.assertEquals("tgzrgmc", 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 fadb8078ac59..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"zpupkebwsesblsb\",\"description\":\"dfoprdytsgypvi\",\"status\":\"ooqzdoytnpkjp\"},\"fqdns\":[\"gnhzufhw\",\"tjnvrptqxksid\",\"jfh\"],\"groupId\":\"gizzrlx\",\"isReserved\":true,\"privateLinkResourceId\":\"xjqqozxtnowv\",\"provisioningState\":\"fypdxsy\",\"\":{\"mwvdmwaamqfeq\":\"datauueeokvq\",\"tqaomihrtbksd\":\"databjygnckeq\"}},\"name\":\"pxwficzzoxnl\",\"type\":\"xndsiqxzaolzko\",\"etag\":\"iragbbiukmkmthio\",\"id\":\"oh\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.managedPrivateEndpoints() - .listByFactory("twt", "kkhuusr", "utonp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("oh", response.iterator().next().id()); - Assertions.assertEquals("gnhzufhw", response.iterator().next().properties().fqdns().get(0)); - Assertions.assertEquals("gizzrlx", response.iterator().next().properties().groupId()); - Assertions.assertEquals("xjqqozxtnowv", response.iterator().next().properties().privateLinkResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java deleted file mode 100644 index 8c78570170ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkListResponseTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"vNetId\":\"yjtcvuwk\",\"alias\":\"iziesfuughtuq\",\"\":{\"cbuewmrswnjlxuz\":\"datajxeygtuhxu\",\"aqehg\":\"datahwpusxj\"}},\"name\":\"ohzjqatucoigeb\",\"type\":\"cnwfepbnwgfmxjg\",\"etag\":\"bjb\",\"id\":\"lfgtdysnaquflqbc\"},{\"properties\":{\"vNetId\":\"hamzjrwdkqze\",\"alias\":\"jleziunjx\",\"\":{\"qa\":\"dataantkwcegyamlbns\",\"m\":\"datajjvpilguooqja\",\"hrtdtpdelq\":\"dataitgueiookjbs\"}},\"name\":\"slmot\",\"type\":\"bnfxofvc\",\"etag\":\"gdirazf\",\"id\":\"ejwabmdujtmvco\"},{\"properties\":{\"vNetId\":\"xcmjurbu\",\"alias\":\"lkyqltqsrog\",\"\":{\"dfvclglxnfu\":\"datakffdjktsys\",\"ians\":\"datajtkbusqogsfika\"}},\"name\":\"rujtjiqxfzyjq\",\"type\":\"vwkpqh\",\"etag\":\"enuygbq\",\"id\":\"qekewvnqvcd\"}],\"nextLink\":\"uaucmf\"}") - .toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("lfgtdysnaquflqbc", model.value().get(0).id()); - Assertions.assertEquals("uaucmf", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkListResponse model = new ManagedVirtualNetworkListResponse() - .withValue(Arrays.asList( - new ManagedVirtualNetworkResourceInner().withId("lfgtdysnaquflqbc") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "yjtcvuwk", "alias", "iziesfuughtuq"))), - new ManagedVirtualNetworkResourceInner().withId("ejwabmdujtmvco") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "hamzjrwdkqze", "alias", "jleziunjx"))), - new ManagedVirtualNetworkResourceInner().withId("qekewvnqvcd") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "xcmjurbu", "alias", "lkyqltqsrog"))))) - .withNextLink("uaucmf"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkListResponse.class); - Assertions.assertEquals("lfgtdysnaquflqbc", model.value().get(0).id()); - Assertions.assertEquals("uaucmf", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java deleted file mode 100644 index 9c1bfab001aa..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReference; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetworkReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkReference model - = BinaryData.fromString("{\"type\":\"ManagedVirtualNetworkReference\",\"referenceName\":\"pzeqacdldtz\"}") - .toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("pzeqacdldtz", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkReference model = new ManagedVirtualNetworkReference() - .withType(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE) - .withReferenceName("pzeqacdldtz"); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkReference.class); - Assertions.assertEquals(ManagedVirtualNetworkReferenceType.MANAGED_VIRTUAL_NETWORK_REFERENCE, model.type()); - Assertions.assertEquals("pzeqacdldtz", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java deleted file mode 100644 index 7b80da2b9c9e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkResourceInnerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedVirtualNetworkResourceInner; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"vNetId\":\"wnlaxpu\",\"alias\":\"qikczvvita\",\"\":{\"tvsoxhlwntsj\":\"datamfcsserx\",\"uuuybnchrsziz\":\"dataqrsxyp\",\"etndnbfqyggagf\":\"datayuel\"}},\"name\":\"lgmtrwahzjmucf\",\"type\":\"yrplrohkpigqfus\",\"etag\":\"kzmkwklsnoxaxmqe\",\"id\":\"lhhjnh\"}") - .toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("lhhjnh", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkResourceInner model = new ManagedVirtualNetworkResourceInner().withId("lhhjnh") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "wnlaxpu", "alias", "qikczvvita"))); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkResourceInner.class); - Assertions.assertEquals("lhhjnh", model.id()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java deleted file mode 100644 index 8d7e179715ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworkTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; - -public final class ManagedVirtualNetworkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetwork model = BinaryData.fromString( - "{\"vNetId\":\"ydyynfsvkh\",\"alias\":\"vqtanarfdlpuk\",\"\":{\"zjcpeogk\":\"datarne\",\"ro\":\"datanmg\",\"zoyw\":\"dataxddbhfhpfpaz\"}}") - .toObject(ManagedVirtualNetwork.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetwork model = new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "ydyynfsvkh", "alias", "vqtanarfdlpuk")); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetwork.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 922740515942..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"pbln\",\"alias\":\"ugecijrncv\",\"\":{\"bcjvvdafbt\":\"datauwurcxtyfbbomug\"}},\"name\":\"xvkoiebplyyxml\",\"type\":\"seaogqiybfskxu\",\"etag\":\"sddrye\",\"id\":\"lqqcwpgipttpse\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ManagedVirtualNetworkResource response = manager.managedVirtualNetworks() - .define("ipwkxf") - .withExistingFactory("gxohiwkkht", "eukclay") - .withProperties(new ManagedVirtualNetwork() - .withAdditionalProperties(mapOf("vNetId", "harsvai", "alias", "medioakprlajt"))) - .withIfMatch("mxlnt") - .create(); - - Assertions.assertEquals("lqqcwpgipttpse", 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 5106d9c643e6..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"bheiywmxsxl\",\"alias\":\"lqtnngw\",\"\":{\"bgaafttv\":\"datafrt\",\"afrwmxmd\":\"datamdnigajbxjnrlfdq\"}},\"name\":\"zhutcaqqdchmxr\",\"type\":\"ljqhoiqvk\",\"etag\":\"djlxzt\",\"id\":\"vawy\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ManagedVirtualNetworkResource response = manager.managedVirtualNetworks() - .getWithResponse("rxaww", "kgzsqrirlcjm", "aarkhlayercs", "iuwne", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vawy", 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 8ba1e6167109..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"jpkojykyt\",\"alias\":\"irctdaojhukwykik\",\"\":{\"obhaomaowpm\":\"datamlhszipihenvhlp\",\"ogboaimwxswfytn\":\"datajsvuz\",\"gtgc\":\"datacjhjrwn\"}},\"name\":\"p\",\"type\":\"rhxfgswyafdlfky\",\"etag\":\"j\",\"id\":\"wrqivibzoqgu\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.managedVirtualNetworks() - .listByFactory("rovrfdf", "dvifoxozqcy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wrqivibzoqgu", response.iterator().next().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java deleted file mode 100644 index c19ccc7de839..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeMapping model = BinaryData.fromString( - "{\"name\":\"ixlqfhefkwabsolr\",\"type\":\"Aggregate\",\"functionName\":\"lmgnlqxsjx\",\"expression\":\"lexhv\",\"attributeReference\":{\"name\":\"ozoolzq\",\"entity\":\"arkuzl\",\"entityConnectionReference\":{\"connectionName\":\"ndtsnxawqytll\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"ckze\",\"entity\":\"xak\",\"entityConnectionReference\":{\"connectionName\":\"wymxgaabjk\",\"type\":\"linkedservicetype\"}}]}") - .toObject(MapperAttributeMapping.class); - Assertions.assertEquals("ixlqfhefkwabsolr", model.name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.type()); - Assertions.assertEquals("lmgnlqxsjx", model.functionName()); - Assertions.assertEquals("lexhv", model.expression()); - Assertions.assertEquals("ozoolzq", model.attributeReference().name()); - Assertions.assertEquals("arkuzl", model.attributeReference().entity()); - Assertions.assertEquals("ndtsnxawqytll", - model.attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("ckze", model.attributeReferences().get(0).name()); - Assertions.assertEquals("xak", model.attributeReferences().get(0).entity()); - Assertions.assertEquals("wymxgaabjk", - model.attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReferences().get(0).entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeMapping model = new MapperAttributeMapping().withName("ixlqfhefkwabsolr") - .withType(MappingType.AGGREGATE) - .withFunctionName("lmgnlqxsjx") - .withExpression("lexhv") - .withAttributeReference(new MapperAttributeReference().withName("ozoolzq") - .withEntity("arkuzl") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("ndtsnxawqytll") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference().withName("ckze") - .withEntity("xak") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("wymxgaabjk") - .withType(ConnectionType.LINKEDSERVICETYPE)))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMapping.class); - Assertions.assertEquals("ixlqfhefkwabsolr", model.name()); - Assertions.assertEquals(MappingType.AGGREGATE, model.type()); - Assertions.assertEquals("lmgnlqxsjx", model.functionName()); - Assertions.assertEquals("lexhv", model.expression()); - Assertions.assertEquals("ozoolzq", model.attributeReference().name()); - Assertions.assertEquals("arkuzl", model.attributeReference().entity()); - Assertions.assertEquals("ndtsnxawqytll", - model.attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("ckze", model.attributeReferences().get(0).name()); - Assertions.assertEquals("xak", model.attributeReferences().get(0).entity()); - Assertions.assertEquals("wymxgaabjk", - model.attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeReferences().get(0).entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java deleted file mode 100644 index 7327a4b9823c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeMappingsTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeMappingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeMappings model = BinaryData.fromString( - "{\"attributeMappings\":[{\"name\":\"oepnxwdv\",\"type\":\"Direct\",\"functionName\":\"gv\",\"expression\":\"mxaursqftibtyi\",\"attributeReference\":{\"name\":\"vpi\",\"entity\":\"qjpnqnoowsbed\",\"entityConnectionReference\":{\"connectionName\":\"exkxbhx\",\"type\":\"linkedservicetype\"}},\"attributeReferences\":[{\"name\":\"gmnhjevd\",\"entity\":\"nfa\",\"entityConnectionReference\":{\"connectionName\":\"kskmqozzkivyhjrl\",\"type\":\"linkedservicetype\"}}]}]}") - .toObject(MapperAttributeMappings.class); - Assertions.assertEquals("oepnxwdv", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappings().get(0).type()); - Assertions.assertEquals("gv", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("mxaursqftibtyi", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("vpi", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("qjpnqnoowsbed", model.attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("exkxbhx", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("gmnhjevd", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("nfa", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions.assertEquals("kskmqozzkivyhjrl", - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeMappings model = new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList(new MapperAttributeMapping().withName("oepnxwdv") - .withType(MappingType.DIRECT) - .withFunctionName("gv") - .withExpression("mxaursqftibtyi") - .withAttributeReference(new MapperAttributeReference().withName("vpi") - .withEntity("qjpnqnoowsbed") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("exkxbhx") - .withType(ConnectionType.LINKEDSERVICETYPE))) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference().withName("gmnhjevd") - .withEntity("nfa") - .withEntityConnectionReference( - new MapperConnectionReference().withConnectionName("kskmqozzkivyhjrl") - .withType(ConnectionType.LINKEDSERVICETYPE)))))); - model = BinaryData.fromObject(model).toObject(MapperAttributeMappings.class); - Assertions.assertEquals("oepnxwdv", model.attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, model.attributeMappings().get(0).type()); - Assertions.assertEquals("gv", model.attributeMappings().get(0).functionName()); - Assertions.assertEquals("mxaursqftibtyi", model.attributeMappings().get(0).expression()); - Assertions.assertEquals("vpi", model.attributeMappings().get(0).attributeReference().name()); - Assertions.assertEquals("qjpnqnoowsbed", model.attributeMappings().get(0).attributeReference().entity()); - Assertions.assertEquals("exkxbhx", - model.attributeMappings().get(0).attributeReference().entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReference().entityConnectionReference().type()); - Assertions.assertEquals("gmnhjevd", model.attributeMappings().get(0).attributeReferences().get(0).name()); - Assertions.assertEquals("nfa", model.attributeMappings().get(0).attributeReferences().get(0).entity()); - Assertions.assertEquals("kskmqozzkivyhjrl", - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.attributeMappings().get(0).attributeReferences().get(0).entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java deleted file mode 100644 index 78efc80741b0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperAttributeReferenceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import org.junit.jupiter.api.Assertions; - -public final class MapperAttributeReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperAttributeReference model = BinaryData.fromString( - "{\"name\":\"hfaogzv\",\"entity\":\"wrsiwdyjqurykc\",\"entityConnectionReference\":{\"connectionName\":\"ueekcsue\",\"type\":\"linkedservicetype\"}}") - .toObject(MapperAttributeReference.class); - Assertions.assertEquals("hfaogzv", model.name()); - Assertions.assertEquals("wrsiwdyjqurykc", model.entity()); - Assertions.assertEquals("ueekcsue", model.entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.entityConnectionReference().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperAttributeReference model = new MapperAttributeReference().withName("hfaogzv") - .withEntity("wrsiwdyjqurykc") - .withEntityConnectionReference(new MapperConnectionReference().withConnectionName("ueekcsue") - .withType(ConnectionType.LINKEDSERVICETYPE)); - model = BinaryData.fromObject(model).toObject(MapperAttributeReference.class); - Assertions.assertEquals("hfaogzv", model.name()); - Assertions.assertEquals("wrsiwdyjqurykc", model.entity()); - Assertions.assertEquals("ueekcsue", model.entityConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.entityConnectionReference().type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java deleted file mode 100644 index 69a611286348..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionReferenceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import org.junit.jupiter.api.Assertions; - -public final class MapperConnectionReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperConnectionReference model - = BinaryData.fromString("{\"connectionName\":\"dcadwvpsozjiihjr\",\"type\":\"linkedservicetype\"}") - .toObject(MapperConnectionReference.class); - Assertions.assertEquals("dcadwvpsozjiihjr", model.connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnectionReference model = new MapperConnectionReference().withConnectionName("dcadwvpsozjiihjr") - .withType(ConnectionType.LINKEDSERVICETYPE); - model = BinaryData.fromObject(model).toObject(MapperConnectionReference.class); - Assertions.assertEquals("dcadwvpsozjiihjr", model.connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java deleted file mode 100644 index 3d195604fb27..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperConnectionTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperConnection model = BinaryData.fromString( - "{\"linkedService\":{\"referenceName\":\"ncn\",\"parameters\":{\"qodkadppyibngql\":\"dataehllizhceum\",\"wrxwhydtl\":\"datad\",\"uyem\":\"datavvadswzs\"}},\"linkedServiceType\":\"wuowhlxlnwy\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"gmokzkltrfowt\",\"value\":\"datarfmvlihcvjdrqcrj\"},{\"name\":\"h\",\"value\":\"dataukvhd\"},{\"name\":\"wyojbfqzdkfnjyi\",\"value\":\"dataafr\"},{\"name\":\"qxmbjroumzzn\",\"value\":\"datal\"}]}") - .toObject(MapperConnection.class); - Assertions.assertEquals("ncn", model.linkedService().referenceName()); - Assertions.assertEquals("wuowhlxlnwy", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("gmokzkltrfowt", model.commonDslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperConnection model = new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("ncn") - .withParameters( - mapOf("qodkadppyibngql", "dataehllizhceum", "wrxwhydtl", "datad", "uyem", "datavvadswzs"))) - .withLinkedServiceType("wuowhlxlnwy") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("gmokzkltrfowt").withValue("datarfmvlihcvjdrqcrj"), - new MapperDslConnectorProperties().withName("h").withValue("dataukvhd"), - new MapperDslConnectorProperties().withName("wyojbfqzdkfnjyi").withValue("dataafr"), - new MapperDslConnectorProperties().withName("qxmbjroumzzn").withValue("datal"))); - model = BinaryData.fromObject(model).toObject(MapperConnection.class); - Assertions.assertEquals("ncn", model.linkedService().referenceName()); - Assertions.assertEquals("wuowhlxlnwy", model.linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.type()); - Assertions.assertEquals(false, model.isInlineDataset()); - Assertions.assertEquals("gmokzkltrfowt", model.commonDslConnectorProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java deleted file mode 100644 index 94972e3b36c2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperDslConnectorPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import org.junit.jupiter.api.Assertions; - -public final class MapperDslConnectorPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperDslConnectorProperties model - = BinaryData.fromString("{\"name\":\"ybxawoijpodtblx\",\"value\":\"datakwjdjodqhy\"}") - .toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("ybxawoijpodtblx", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperDslConnectorProperties model - = new MapperDslConnectorProperties().withName("ybxawoijpodtblx").withValue("datakwjdjodqhy"); - model = BinaryData.fromObject(model).toObject(MapperDslConnectorProperties.class); - Assertions.assertEquals("ybxawoijpodtblx", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java deleted file mode 100644 index 2927245ca102..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyRecurrenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import org.junit.jupiter.api.Assertions; - -public final class MapperPolicyRecurrenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperPolicyRecurrence model = BinaryData.fromString("{\"frequency\":\"Minute\",\"interval\":30461773}") - .toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.MINUTE, model.frequency()); - Assertions.assertEquals(30461773, model.interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicyRecurrence model - = new MapperPolicyRecurrence().withFrequency(FrequencyType.MINUTE).withInterval(30461773); - model = BinaryData.fromObject(model).toObject(MapperPolicyRecurrence.class); - Assertions.assertEquals(FrequencyType.MINUTE, model.frequency()); - Assertions.assertEquals(30461773, model.interval()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java deleted file mode 100644 index 657b347d0033..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperPolicyTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.FrequencyType; -import com.azure.resourcemanager.datafactory.models.MapperPolicy; -import com.azure.resourcemanager.datafactory.models.MapperPolicyRecurrence; -import org.junit.jupiter.api.Assertions; - -public final class MapperPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperPolicy model - = BinaryData.fromString("{\"mode\":\"dac\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":778963300}}") - .toObject(MapperPolicy.class); - Assertions.assertEquals("dac", model.mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.recurrence().frequency()); - Assertions.assertEquals(778963300, model.recurrence().interval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperPolicy model = new MapperPolicy().withMode("dac") - .withRecurrence(new MapperPolicyRecurrence().withFrequency(FrequencyType.HOUR).withInterval(778963300)); - model = BinaryData.fromObject(model).toObject(MapperPolicy.class); - Assertions.assertEquals("dac", model.mode()); - Assertions.assertEquals(FrequencyType.HOUR, model.recurrence().frequency()); - Assertions.assertEquals(778963300, model.recurrence().interval()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java deleted file mode 100644 index 4db7d4bac401..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperSourceConnectionsInfoTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperSourceConnectionsInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperSourceConnectionsInfo model = BinaryData.fromString( - "{\"sourceEntities\":[{\"name\":\"gvmxnok\",\"properties\":{\"schema\":[{\"name\":\"bse\",\"dataType\":\"vcuartrhun\"},{\"name\":\"iryky\",\"dataType\":\"dzfqivjreuy\"}],\"dslConnectorProperties\":[{\"name\":\"nwagl\",\"value\":\"dataxoe\"},{\"name\":\"nqlnfwmyymvqd\",\"value\":\"databhfckdvezcrcssb\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"dubbnqfblhkale\",\"parameters\":{\"iqjtiogqgdmin\":\"datavawu\",\"gspnbonhpczykm\":\"datactteajohi\",\"wxqcsehchkhufmpq\":\"datatp\"}},\"linkedServiceType\":\"q\",\"type\":\"linkedservicetype\",\"isInlineDataset\":true,\"commonDslConnectorProperties\":[{\"name\":\"lod\",\"value\":\"dataeuzanhs\"}]}}") - .toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("gvmxnok", model.sourceEntities().get(0).name()); - Assertions.assertEquals("bse", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("vcuartrhun", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("nwagl", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("dubbnqfblhkale", model.connection().linkedService().referenceName()); - Assertions.assertEquals("q", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("lod", model.connection().commonDslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperSourceConnectionsInfo model = new MapperSourceConnectionsInfo() - .withSourceEntities(Arrays.asList(new MapperTable().withName("gvmxnok") - .withSchema(Arrays.asList(new MapperTableSchema().withName("bse").withDataType("vcuartrhun"), - new MapperTableSchema().withName("iryky").withDataType("dzfqivjreuy"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("nwagl").withValue("dataxoe"), - new MapperDslConnectorProperties().withName("nqlnfwmyymvqd") - .withValue("databhfckdvezcrcssb"))))) - .withConnection(new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("dubbnqfblhkale") - .withParameters(mapOf("iqjtiogqgdmin", "datavawu", "gspnbonhpczykm", "datactteajohi", - "wxqcsehchkhufmpq", "datatp"))) - .withLinkedServiceType("q") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(true) - .withCommonDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("lod").withValue("dataeuzanhs")))); - model = BinaryData.fromObject(model).toObject(MapperSourceConnectionsInfo.class); - Assertions.assertEquals("gvmxnok", model.sourceEntities().get(0).name()); - Assertions.assertEquals("bse", model.sourceEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("vcuartrhun", model.sourceEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("nwagl", model.sourceEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("dubbnqfblhkale", model.connection().linkedService().referenceName()); - Assertions.assertEquals("q", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(true, model.connection().isInlineDataset()); - Assertions.assertEquals("lod", model.connection().commonDslConnectorProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java deleted file mode 100644 index 6914f6d55e93..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTablePropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MapperTableProperties; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperTablePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTableProperties model = BinaryData.fromString( - "{\"schema\":[{\"name\":\"ii\",\"dataType\":\"spxlzde\"},{\"name\":\"grijwaiufanrayb\",\"dataType\":\"eqfrojs\"}],\"dslConnectorProperties\":[{\"name\":\"h\",\"value\":\"datak\"},{\"name\":\"ywezskiecafyg\",\"value\":\"dataxieqv\"}]}") - .toObject(MapperTableProperties.class); - Assertions.assertEquals("ii", model.schema().get(0).name()); - Assertions.assertEquals("spxlzde", model.schema().get(0).dataType()); - Assertions.assertEquals("h", model.dslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTableProperties model = new MapperTableProperties() - .withSchema(Arrays.asList(new MapperTableSchema().withName("ii").withDataType("spxlzde"), - new MapperTableSchema().withName("grijwaiufanrayb").withDataType("eqfrojs"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("h").withValue("datak"), - new MapperDslConnectorProperties().withName("ywezskiecafyg").withValue("dataxieqv"))); - model = BinaryData.fromObject(model).toObject(MapperTableProperties.class); - Assertions.assertEquals("ii", model.schema().get(0).name()); - Assertions.assertEquals("spxlzde", model.schema().get(0).dataType()); - Assertions.assertEquals("h", model.dslConnectorProperties().get(0).name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java deleted file mode 100644 index 30b5c34e1199..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableSchemaTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import org.junit.jupiter.api.Assertions; - -public final class MapperTableSchemaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTableSchema model - = BinaryData.fromString("{\"name\":\"makli\",\"dataType\":\"cahyhx\"}").toObject(MapperTableSchema.class); - Assertions.assertEquals("makli", model.name()); - Assertions.assertEquals("cahyhx", model.dataType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTableSchema model = new MapperTableSchema().withName("makli").withDataType("cahyhx"); - model = BinaryData.fromObject(model).toObject(MapperTableSchema.class); - Assertions.assertEquals("makli", model.name()); - Assertions.assertEquals("cahyhx", model.dataType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java deleted file mode 100644 index 2a9b57603f3f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTableTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MapperTableTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTable model = BinaryData.fromString( - "{\"name\":\"hse\",\"properties\":{\"schema\":[{\"name\":\"zf\",\"dataType\":\"qjcli\"},{\"name\":\"tujwjju\",\"dataType\":\"beqrkuorh\"}],\"dslConnectorProperties\":[{\"name\":\"uqnmdvhazcvj\",\"value\":\"dataiqswbqer\"},{\"name\":\"xiytxtdgukvl\",\"value\":\"dataktg\"},{\"name\":\"tyouambewreswmow\",\"value\":\"datammuteyxeyguq\"}]}}") - .toObject(MapperTable.class); - Assertions.assertEquals("hse", model.name()); - Assertions.assertEquals("zf", model.schema().get(0).name()); - Assertions.assertEquals("qjcli", model.schema().get(0).dataType()); - Assertions.assertEquals("uqnmdvhazcvj", model.dslConnectorProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTable model = new MapperTable().withName("hse") - .withSchema(Arrays.asList(new MapperTableSchema().withName("zf").withDataType("qjcli"), - new MapperTableSchema().withName("tujwjju").withDataType("beqrkuorh"))) - .withDslConnectorProperties( - Arrays.asList(new MapperDslConnectorProperties().withName("uqnmdvhazcvj").withValue("dataiqswbqer"), - new MapperDslConnectorProperties().withName("xiytxtdgukvl").withValue("dataktg"), - new MapperDslConnectorProperties().withName("tyouambewreswmow").withValue("datammuteyxeyguq"))); - model = BinaryData.fromObject(model).toObject(MapperTable.class); - Assertions.assertEquals("hse", model.name()); - Assertions.assertEquals("zf", model.schema().get(0).name()); - Assertions.assertEquals("qjcli", model.schema().get(0).dataType()); - Assertions.assertEquals("uqnmdvhazcvj", model.dslConnectorProperties().get(0).name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java deleted file mode 100644 index 6e9e8c45cd3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MapperTargetConnectionsInfoTests.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ConnectionType; -import com.azure.resourcemanager.datafactory.models.DataMapperMapping; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMapping; -import com.azure.resourcemanager.datafactory.models.MapperAttributeMappings; -import com.azure.resourcemanager.datafactory.models.MapperAttributeReference; -import com.azure.resourcemanager.datafactory.models.MapperConnection; -import com.azure.resourcemanager.datafactory.models.MapperConnectionReference; -import com.azure.resourcemanager.datafactory.models.MapperDslConnectorProperties; -import com.azure.resourcemanager.datafactory.models.MapperTable; -import com.azure.resourcemanager.datafactory.models.MapperTableSchema; -import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo; -import com.azure.resourcemanager.datafactory.models.MappingType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MapperTargetConnectionsInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MapperTargetConnectionsInfo model = BinaryData.fromString( - "{\"targetEntities\":[{\"name\":\"uzgfxonjtpusl\",\"properties\":{\"schema\":[{\"name\":\"tiotzb\",\"dataType\":\"bollgryfqiuasig\"}],\"dslConnectorProperties\":[{\"name\":\"ocnequygdjboqgrm\",\"value\":\"datajkqev\"},{\"name\":\"rmmwiuawvcmj\",\"value\":\"dataxiid\"},{\"name\":\"czskoswoqiqazu\",\"value\":\"datamxzkr\"},{\"name\":\"oiisbamnppcce\",\"value\":\"dataztdsbeza\"}]}},{\"name\":\"f\",\"properties\":{\"schema\":[{\"name\":\"izhyhnep\",\"dataType\":\"etiarxqiubxdukec\"},{\"name\":\"dazvdhctm\",\"dataType\":\"os\"},{\"name\":\"dblnsntrp\",\"dataType\":\"qkio\"},{\"name\":\"btfmhklbnldpvcbh\",\"dataType\":\"zyqu\"}],\"dslConnectorProperties\":[{\"name\":\"xut\",\"value\":\"databrruyuuatv\"},{\"name\":\"bjwcolbmx\",\"value\":\"datanwtpcpahprz\"}]}},{\"name\":\"xhmtfhocnxzc\",\"properties\":{\"schema\":[{\"name\":\"xnoqrxtdisn\",\"dataType\":\"vhdl\"},{\"name\":\"did\",\"dataType\":\"epfwwt\"}],\"dslConnectorProperties\":[{\"name\":\"esxxhmwcdbckyoi\",\"value\":\"datakxhnegknj\"},{\"name\":\"bhtmeplvuk\",\"value\":\"databrlbpgs\"},{\"name\":\"agnchjhgemuowaky\",\"value\":\"datalhjym\"}]}},{\"name\":\"gqtagd\",\"properties\":{\"schema\":[{\"name\":\"ol\",\"dataType\":\"mevtfycnlbvgjc\"},{\"name\":\"kk\",\"dataType\":\"iiy\"}],\"dslConnectorProperties\":[{\"name\":\"k\",\"value\":\"databcufqbvntn\"}]}}],\"connection\":{\"linkedService\":{\"referenceName\":\"qsorh\",\"parameters\":{\"pwzvmdoksqdti\":\"dataxgnlykmx\",\"cqchygtvxbyjane\":\"datalwxlboncqbazq\",\"od\":\"dataubdpkxyqvgxi\",\"kxdxuwsaifmcwn\":\"datatvo\"}},\"linkedServiceType\":\"bzlehgc\",\"type\":\"linkedservicetype\",\"isInlineDataset\":false,\"commonDslConnectorProperties\":[{\"name\":\"olg\",\"value\":\"datayxpvelszerqze\"},{\"name\":\"o\",\"value\":\"dataintxwa\"},{\"name\":\"glzoblqwa\",\"value\":\"datar\"}]},\"dataMapperMappings\":[{\"targetEntityName\":\"mz\",\"sourceEntityName\":\"bhdvafjrqpjiy\",\"sourceConnectionReference\":{\"connectionName\":\"crgaxwmzwdf\",\"type\":\"linkedservicetype\"},\"attributeMappingInfo\":{\"attributeMappings\":[{\"name\":\"pdltbq\",\"type\":\"Direct\",\"functionName\":\"fg\",\"expression\":\"saetgzdgvpyig\",\"attributeReference\":{},\"attributeReferences\":[{},{}]},{\"name\":\"lzdcduwjoedxng\",\"type\":\"Aggregate\",\"functionName\":\"fpaurw\",\"expression\":\"ilfjqqacdmk\",\"attributeReference\":{},\"attributeReferences\":[{},{}]},{\"name\":\"vjw\",\"type\":\"Direct\",\"functionName\":\"akeciqchx\",\"expression\":\"uicdsiwdfmmpzhzz\",\"attributeReference\":{},\"attributeReferences\":[{},{}]}]},\"sourceDenormalizeInfo\":\"datagyngydgrpxncak\"}],\"relationships\":[\"dataondjrkclam\",\"dataglvlmfejdoqeyk\",\"dataltygxhqfgqkayej\",\"dataxtlgflwfg\"]}") - .toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("uzgfxonjtpusl", model.targetEntities().get(0).name()); - Assertions.assertEquals("tiotzb", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("bollgryfqiuasig", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("ocnequygdjboqgrm", - model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("qsorh", model.connection().linkedService().referenceName()); - Assertions.assertEquals("bzlehgc", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("olg", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("mz", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("bhdvafjrqpjiy", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("crgaxwmzwdf", - model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("pdltbq", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("fg", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("saetgzdgvpyig", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).expression()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MapperTargetConnectionsInfo model - = new MapperTargetConnectionsInfo() - .withTargetEntities(Arrays.asList( - new MapperTable().withName("uzgfxonjtpusl") - .withSchema( - Arrays.asList(new MapperTableSchema().withName("tiotzb").withDataType("bollgryfqiuasig"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("ocnequygdjboqgrm").withValue("datajkqev"), - new MapperDslConnectorProperties().withName("rmmwiuawvcmj").withValue("dataxiid"), - new MapperDslConnectorProperties().withName("czskoswoqiqazu") - .withValue("datamxzkr"), - new MapperDslConnectorProperties().withName("oiisbamnppcce").withValue("dataztdsbeza"))), - new MapperTable().withName("f") - .withSchema( - Arrays.asList(new MapperTableSchema().withName("izhyhnep").withDataType("etiarxqiubxdukec"), - new MapperTableSchema().withName("dazvdhctm").withDataType("os"), - new MapperTableSchema().withName("dblnsntrp").withDataType("qkio"), - new MapperTableSchema().withName("btfmhklbnldpvcbh").withDataType("zyqu"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("xut").withValue("databrruyuuatv"), - new MapperDslConnectorProperties().withName("bjwcolbmx").withValue("datanwtpcpahprz"))), - new MapperTable().withName("xhmtfhocnxzc") - .withSchema(Arrays.asList(new MapperTableSchema().withName("xnoqrxtdisn").withDataType("vhdl"), - new MapperTableSchema().withName("did").withDataType("epfwwt"))) - .withDslConnectorProperties(Arrays.asList( - new MapperDslConnectorProperties().withName("esxxhmwcdbckyoi").withValue("datakxhnegknj"), - new MapperDslConnectorProperties().withName("bhtmeplvuk").withValue("databrlbpgs"), - new MapperDslConnectorProperties().withName("agnchjhgemuowaky").withValue("datalhjym"))), - new MapperTable().withName("gqtagd") - .withSchema(Arrays.asList(new MapperTableSchema().withName("ol").withDataType("mevtfycnlbvgjc"), - new MapperTableSchema().withName("kk").withDataType("iiy"))) - .withDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("k").withValue("databcufqbvntn"))))) - .withConnection( - new MapperConnection() - .withLinkedService(new LinkedServiceReference().withReferenceName("qsorh") - .withParameters(mapOf("pwzvmdoksqdti", "dataxgnlykmx", "cqchygtvxbyjane", - "datalwxlboncqbazq", "od", "dataubdpkxyqvgxi", "kxdxuwsaifmcwn", "datatvo"))) - .withLinkedServiceType("bzlehgc") - .withType(ConnectionType.LINKEDSERVICETYPE) - .withIsInlineDataset(false) - .withCommonDslConnectorProperties(Arrays - .asList(new MapperDslConnectorProperties().withName("olg").withValue("datayxpvelszerqze"), - new MapperDslConnectorProperties().withName("o").withValue("dataintxwa"), - new MapperDslConnectorProperties().withName("glzoblqwa").withValue("datar")))) - .withDataMapperMappings( - Arrays.asList(new DataMapperMapping().withTargetEntityName("mz") - .withSourceEntityName("bhdvafjrqpjiy") - .withSourceConnectionReference(new MapperConnectionReference().withConnectionName("crgaxwmzwdf") - .withType(ConnectionType.LINKEDSERVICETYPE)) - .withAttributeMappingInfo( - new MapperAttributeMappings() - .withAttributeMappings(Arrays.asList( - new MapperAttributeMapping().withName("pdltbq") - .withType(MappingType.DIRECT) - .withFunctionName("fg") - .withExpression("saetgzdgvpyig") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping().withName("lzdcduwjoedxng") - .withType(MappingType.AGGREGATE) - .withFunctionName("fpaurw") - .withExpression("ilfjqqacdmk") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference())), - new MapperAttributeMapping().withName("vjw") - .withType(MappingType.DIRECT) - .withFunctionName("akeciqchx") - .withExpression("uicdsiwdfmmpzhzz") - .withAttributeReference(new MapperAttributeReference()) - .withAttributeReferences(Arrays.asList(new MapperAttributeReference(), - new MapperAttributeReference()))))) - .withSourceDenormalizeInfo("datagyngydgrpxncak"))) - .withRelationships( - Arrays.asList("dataondjrkclam", "dataglvlmfejdoqeyk", "dataltygxhqfgqkayej", "dataxtlgflwfg")); - model = BinaryData.fromObject(model).toObject(MapperTargetConnectionsInfo.class); - Assertions.assertEquals("uzgfxonjtpusl", model.targetEntities().get(0).name()); - Assertions.assertEquals("tiotzb", model.targetEntities().get(0).schema().get(0).name()); - Assertions.assertEquals("bollgryfqiuasig", model.targetEntities().get(0).schema().get(0).dataType()); - Assertions.assertEquals("ocnequygdjboqgrm", - model.targetEntities().get(0).dslConnectorProperties().get(0).name()); - Assertions.assertEquals("qsorh", model.connection().linkedService().referenceName()); - Assertions.assertEquals("bzlehgc", model.connection().linkedServiceType()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, model.connection().type()); - Assertions.assertEquals(false, model.connection().isInlineDataset()); - Assertions.assertEquals("olg", model.connection().commonDslConnectorProperties().get(0).name()); - Assertions.assertEquals("mz", model.dataMapperMappings().get(0).targetEntityName()); - Assertions.assertEquals("bhdvafjrqpjiy", model.dataMapperMappings().get(0).sourceEntityName()); - Assertions.assertEquals("crgaxwmzwdf", - model.dataMapperMappings().get(0).sourceConnectionReference().connectionName()); - Assertions.assertEquals(ConnectionType.LINKEDSERVICETYPE, - model.dataMapperMappings().get(0).sourceConnectionReference().type()); - Assertions.assertEquals("pdltbq", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).name()); - Assertions.assertEquals(MappingType.DIRECT, - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).type()); - Assertions.assertEquals("fg", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).functionName()); - Assertions.assertEquals("saetgzdgvpyig", - model.dataMapperMappings().get(0).attributeMappingInfo().attributeMappings().get(0).expression()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java deleted file mode 100644 index 9d8f7695590d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTests.java +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MappingDataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MappingDataFlow model = BinaryData.fromString( - "{\"type\":\"MappingDataFlow\",\"typeProperties\":{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"xyio\",\"parameters\":{\"pcbbprtugav\":\"dataninbdbzsxcwqqrs\",\"fogdrtbfcm\":\"datazbcyksiv\",\"mb\":\"datarftsjcwjjxs\"}},\"name\":\"wvif\",\"description\":\"kecifhocjxwklo\",\"dataset\":{\"referenceName\":\"rvtxvcmufunlc\",\"parameters\":{\"eyngjg\":\"datavir\"}},\"linkedService\":{\"referenceName\":\"quv\",\"parameters\":{\"rdcueljtiahx\":\"dataglpm\",\"qbglcjkaysp\":\"datafqryarvsx\",\"dubtlmj\":\"datahz\",\"djxyxgbkkqvjcteo\":\"datagblioskkfmkm\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rslskkzp\",\"datasetParameters\":\"datajnzdpvocojhpcna\",\"parameters\":{\"iv\":\"datafsnggytexvzilm\"},\"\":{\"cknrzda\":\"dataww\",\"eucyrth\":\"datalskzptjxul\"}}},{\"schemaLinkedService\":{\"referenceName\":\"lehmcgcjeinueho\",\"parameters\":{\"zfivfokpysthhzag\":\"datavfejvqnttmbqda\",\"rlhgenuze\":\"datafwy\",\"zlsmmdqgmihzpim\":\"datagvkvebaqszll\",\"gxsvtza\":\"dataqrhnxtminkl\"}},\"name\":\"hzvqnsqktcmbjwz\",\"description\":\"slpkybtg\",\"dataset\":{\"referenceName\":\"kzpgaj\",\"parameters\":{\"uqrebluimmbwx\":\"datacemqbmfuvqarwz\",\"kraokq\":\"datafgtdmbvx\",\"aokbavlyttaaknwf\":\"databudbt\",\"sm\":\"datake\"}},\"linkedService\":{\"referenceName\":\"dujdigatoleksc\",\"parameters\":{\"awnsnlaimou\":\"datananqimwbzxpdcldp\",\"sqmu\":\"dataw\",\"iuswswj\":\"datamfcoibic\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qsj\",\"datasetParameters\":\"datatqqvy\",\"parameters\":{\"ogfuyzwvbhlim\":\"datayrfwbivq\",\"r\":\"datayqe\",\"obsmf\":\"dataodlikcdrdaasax\"},\"\":{\"awn\":\"datayjvzukosr\",\"n\":\"datazm\"}}},{\"schemaLinkedService\":{\"referenceName\":\"ywsxvjabjqqaxu\",\"parameters\":{\"udndoabhjxw\":\"datamc\"}},\"name\":\"qweuip\",\"description\":\"vk\",\"dataset\":{\"referenceName\":\"itnsqxtltc\",\"parameters\":{\"kkld\":\"datadpqgfhyrfr\",\"atxjtiel\":\"datarcwfcmfcnrjajq\"}},\"linkedService\":{\"referenceName\":\"qgxxgfbb\",\"parameters\":{\"calincryqxz\":\"datapqagynoiprn\",\"mqimiymqru\":\"dataaqzi\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"hfupetasvvoqsbpk\",\"datasetParameters\":\"dataanfkgxsyaowuzow\",\"parameters\":{\"xrztiochlu\":\"datahdkcprgu\",\"mcrunfhiucn\":\"dataixmqrudjizcbf\",\"dkyzbfvxov\":\"datafbcpaqktkrumzu\"},\"\":{\"hyhlwcjsqg\":\"dataiuxqggvqr\",\"euqlsdxeqztv\":\"datajhffbxrqrkij\",\"wwa\":\"datawmwwmjswen\",\"ojhtollhs\":\"dataecleqioulndhzyo\"}}},{\"schemaLinkedService\":{\"referenceName\":\"dm\",\"parameters\":{\"glxpnovyoanfbcsw\":\"datal\"}},\"name\":\"agyw\",\"description\":\"xigvjrktpgaeuk\",\"dataset\":{\"referenceName\":\"wohpmwhqnucs\",\"parameters\":{\"pbninjgazlsvbzfc\":\"datasidsjtd\",\"lhsyekrdrenxolr\":\"datauoeedwjcci\",\"bfgrlpunytjlkes\":\"datayehqbeivdlhydwb\",\"e\":\"datampathubtah\"}},\"linkedService\":{\"referenceName\":\"iiwllbvgwzsf\",\"parameters\":{\"jtgr\":\"datadousnk\",\"btxxwpfhnjzud\":\"datavaqogfkbebauzl\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"zkg\",\"datasetParameters\":\"databoy\",\"parameters\":{\"isrz\":\"datazzqrhmngqbedy\",\"jch\":\"datanykdi\",\"eacdhztx\":\"datarmpwctofld\",\"ewhfjsrwqrxetf\":\"databrfgdrwji\"},\"\":{\"wthv\":\"datavrrmdqntycn\",\"nuyeamcmhud\":\"dataax\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"ehok\",\"parameters\":{\"rg\":\"dataqtwloes\",\"ciduwjle\":\"datavrbnyrukoil\",\"yxpzruzythqk\":\"datapjlh\",\"xdm\":\"datawhbgxvellvul\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"tmujdtvmc\",\"parameters\":{\"zmzqmzjqrb\":\"datamffhmjpddnyxfzuv\",\"mdyfoebojtj\":\"datapv\",\"qk\":\"datapglaoh\",\"ywkdcwmqsy\":\"datajtnqjil\"}},\"name\":\"ilm\",\"description\":\"dqaolfylnkk\",\"dataset\":{\"referenceName\":\"pjvlywltmfwo\",\"parameters\":{\"fnqzocr\":\"datawhlwy\"}},\"linkedService\":{\"referenceName\":\"gczeuntgx\",\"parameters\":{\"i\":\"dataaqttiek\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nyttzgix\",\"datasetParameters\":\"datarihl\",\"parameters\":{\"lkndrndpgfjodh\":\"databehlqtxnr\",\"ipowza\":\"dataaqotwfhipxwgsabv\",\"pefyc\":\"dataczuumljcir\"},\"\":{\"lnsjhw\":\"dataititjnsxza\"}}},{\"schemaLinkedService\":{\"referenceName\":\"yxxbxqvmvuayt\",\"parameters\":{\"tghyksarcdr\":\"dataxkxeqbwp\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"sluvlzladltxkpb\",\"parameters\":{\"anojisgglmvokat\":\"datafdqqjwkrhwz\"}},\"name\":\"ztjctibpvbkae\",\"description\":\"smz\",\"dataset\":{\"referenceName\":\"dfwakwseivmak\",\"parameters\":{\"ljuxl\":\"dataso\",\"aiubavlzwpvgmfa\":\"databectvtfjmskdch\"}},\"linkedService\":{\"referenceName\":\"zazmg\",\"parameters\":{\"zrthqet\":\"datadgjqafkmkro\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rtvaoznqni\",\"datasetParameters\":\"dataezeagmceituuge\",\"parameters\":{\"tlzm\":\"datapj\",\"eolctaebf\":\"datalsyj\",\"jcustbvtq\":\"datayrle\"},\"\":{\"sehxlzsxezp\":\"dataxzvsgeafgf\"}}}],\"transformations\":[{\"name\":\"waaeskyfjl\",\"description\":\"eqtoyrpl\",\"dataset\":{\"referenceName\":\"lajmllp\",\"parameters\":{\"mfowgwbtmkek\":\"datavh\",\"xofqovchi\":\"datapkzwa\",\"ztekxbyjgmsfep\":\"databplvfidu\"}},\"linkedService\":{\"referenceName\":\"ihpq\",\"parameters\":{\"dw\":\"datagrhrdic\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"owxwyovcxjsgbip\",\"datasetParameters\":\"datakdveksb\",\"parameters\":{\"rdpibfd\":\"dataduchvls\",\"wlkaaggkrehbfrnu\":\"datajdusspyszekb\",\"qtaadusrexxfavsq\":\"databffljfiimreoag\"},\"\":{\"psimsf\":\"dataohzilfmnli\"}}},{\"name\":\"ypofqpmbhyqgs\",\"description\":\"mmttjxophge\",\"dataset\":{\"referenceName\":\"smv\",\"parameters\":{\"qywwwmhk\":\"datatwzmqilrixysfnim\",\"hzdue\":\"datauwaedrympmlqoi\",\"liejhpc\":\"dataihapfjiiknjdiq\"}},\"linkedService\":{\"referenceName\":\"iedfsbwcei\",\"parameters\":{\"admskx\":\"datazipbwxgoooxzp\",\"zigjsugswhgsaodk\":\"datanpd\",\"ctohzhaquvwsxbgn\":\"datawnbaf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"rvqchoadhrsxqvzv\",\"datasetParameters\":\"dataabdsr\",\"parameters\":{\"cetjdvq\":\"datajglzrsubklrxhjnl\",\"kw\":\"datadieq\",\"bibanbau\":\"dataruwdxvqzxoebwgj\"},\"\":{\"lssan\":\"datazvpaklozkxbzrpej\"}}}],\"script\":\"ttkgsux\",\"scriptLines\":[\"swgkpjhboyikebh\",\"hkslgwlokhueoij\",\"zcqypzqzufgsyf\",\"jyvdwtfxptpqayam\"]},\"description\":\"cf\",\"annotations\":[\"datamxsnxocuul\",\"dataojkpoyh\"],\"folder\":{\"name\":\"djuxdbdljzgd\"}}") - .toObject(MappingDataFlow.class); - Assertions.assertEquals("cf", model.description()); - Assertions.assertEquals("djuxdbdljzgd", model.folder().name()); - Assertions.assertEquals("wvif", model.sources().get(0).name()); - Assertions.assertEquals("kecifhocjxwklo", model.sources().get(0).description()); - Assertions.assertEquals("rvtxvcmufunlc", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("quv", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("rslskkzp", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("xyio", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ilm", model.sinks().get(0).name()); - Assertions.assertEquals("dqaolfylnkk", model.sinks().get(0).description()); - Assertions.assertEquals("pjvlywltmfwo", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("gczeuntgx", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("nyttzgix", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ehok", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("tmujdtvmc", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("waaeskyfjl", model.transformations().get(0).name()); - Assertions.assertEquals("eqtoyrpl", model.transformations().get(0).description()); - Assertions.assertEquals("lajmllp", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("ihpq", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("owxwyovcxjsgbip", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("ttkgsux", model.script()); - Assertions.assertEquals("swgkpjhboyikebh", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlow model = new MappingDataFlow().withDescription("cf") - .withAnnotations(Arrays.asList("datamxsnxocuul", "dataojkpoyh")) - .withFolder(new DataFlowFolder().withName("djuxdbdljzgd")) - .withSources(Arrays.asList( - new DataFlowSource().withName("wvif") - .withDescription("kecifhocjxwklo") - .withDataset(new DatasetReference().withReferenceName("rvtxvcmufunlc") - .withParameters(mapOf("eyngjg", "datavir"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("quv") - .withParameters(mapOf("rdcueljtiahx", "dataglpm", "qbglcjkaysp", "datafqryarvsx", "dubtlmj", - "datahz", "djxyxgbkkqvjcteo", "datagblioskkfmkm"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rslskkzp") - .withDatasetParameters("datajnzdpvocojhpcna") - .withParameters(mapOf("iv", "datafsnggytexvzilm")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("xyio") - .withParameters(mapOf("pcbbprtugav", "dataninbdbzsxcwqqrs", "fogdrtbfcm", "datazbcyksiv", "mb", - "datarftsjcwjjxs"))), - new DataFlowSource().withName("hzvqnsqktcmbjwz") - .withDescription("slpkybtg") - .withDataset(new DatasetReference().withReferenceName("kzpgaj") - .withParameters(mapOf("uqrebluimmbwx", "datacemqbmfuvqarwz", "kraokq", "datafgtdmbvx", - "aokbavlyttaaknwf", "databudbt", "sm", "datake"))) - .withLinkedService( - new LinkedServiceReference().withReferenceName("dujdigatoleksc") - .withParameters(mapOf("awnsnlaimou", "datananqimwbzxpdcldp", "sqmu", "dataw", "iuswswj", - "datamfcoibic"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qsj") - .withDatasetParameters("datatqqvy") - .withParameters( - mapOf("ogfuyzwvbhlim", "datayrfwbivq", "r", "datayqe", "obsmf", "dataodlikcdrdaasax")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("lehmcgcjeinueho") - .withParameters(mapOf("zfivfokpysthhzag", "datavfejvqnttmbqda", "rlhgenuze", "datafwy", - "zlsmmdqgmihzpim", "datagvkvebaqszll", "gxsvtza", "dataqrhnxtminkl"))), - new DataFlowSource().withName("qweuip") - .withDescription("vk") - .withDataset(new DatasetReference().withReferenceName("itnsqxtltc") - .withParameters(mapOf("kkld", "datadpqgfhyrfr", "atxjtiel", "datarcwfcmfcnrjajq"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("qgxxgfbb") - .withParameters(mapOf("calincryqxz", "datapqagynoiprn", "mqimiymqru", "dataaqzi"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("hfupetasvvoqsbpk") - .withDatasetParameters("dataanfkgxsyaowuzow") - .withParameters(mapOf("xrztiochlu", "datahdkcprgu", "mcrunfhiucn", "dataixmqrudjizcbf", - "dkyzbfvxov", "datafbcpaqktkrumzu")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ywsxvjabjqqaxu") - .withParameters(mapOf("udndoabhjxw", "datamc"))), - new DataFlowSource().withName("agyw") - .withDescription("xigvjrktpgaeuk") - .withDataset(new DatasetReference().withReferenceName("wohpmwhqnucs") - .withParameters(mapOf("pbninjgazlsvbzfc", "datasidsjtd", "lhsyekrdrenxolr", "datauoeedwjcci", - "bfgrlpunytjlkes", "datayehqbeivdlhydwb", "e", "datampathubtah"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("iiwllbvgwzsf") - .withParameters(mapOf("jtgr", "datadousnk", "btxxwpfhnjzud", "datavaqogfkbebauzl"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("zkg") - .withDatasetParameters("databoy") - .withParameters(mapOf("isrz", "datazzqrhmngqbedy", "jch", "datanykdi", "eacdhztx", - "datarmpwctofld", "ewhfjsrwqrxetf", "databrfgdrwji")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("dm") - .withParameters(mapOf("glxpnovyoanfbcsw", "datal"))))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("ilm") - .withDescription("dqaolfylnkk") - .withDataset(new DatasetReference().withReferenceName("pjvlywltmfwo") - .withParameters(mapOf("fnqzocr", "datawhlwy"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("gczeuntgx") - .withParameters(mapOf("i", "dataaqttiek"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nyttzgix") - .withDatasetParameters("datarihl") - .withParameters(mapOf("lkndrndpgfjodh", "databehlqtxnr", "ipowza", "dataaqotwfhipxwgsabv", - "pefyc", "dataczuumljcir")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ehok") - .withParameters(mapOf("rg", "dataqtwloes", "ciduwjle", "datavrbnyrukoil", "yxpzruzythqk", - "datapjlh", "xdm", "datawhbgxvellvul"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("tmujdtvmc") - .withParameters(mapOf("zmzqmzjqrb", "datamffhmjpddnyxfzuv", "mdyfoebojtj", "datapv", "qk", - "datapglaoh", "ywkdcwmqsy", "datajtnqjil"))), - new DataFlowSink().withName("ztjctibpvbkae") - .withDescription("smz") - .withDataset(new DatasetReference().withReferenceName("dfwakwseivmak") - .withParameters(mapOf("ljuxl", "dataso", "aiubavlzwpvgmfa", "databectvtfjmskdch"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("zazmg") - .withParameters(mapOf("zrthqet", "datadgjqafkmkro"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rtvaoznqni") - .withDatasetParameters("dataezeagmceituuge") - .withParameters(mapOf("tlzm", "datapj", "eolctaebf", "datalsyj", "jcustbvtq", "datayrle")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("yxxbxqvmvuayt") - .withParameters(mapOf("tghyksarcdr", "dataxkxeqbwp"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("sluvlzladltxkpb") - .withParameters(mapOf("anojisgglmvokat", "datafdqqjwkrhwz"))))) - .withTransformations(Arrays.asList( - new Transformation().withName("waaeskyfjl") - .withDescription("eqtoyrpl") - .withDataset(new DatasetReference().withReferenceName("lajmllp") - .withParameters(mapOf("mfowgwbtmkek", "datavh", "xofqovchi", "datapkzwa", "ztekxbyjgmsfep", - "databplvfidu"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ihpq") - .withParameters(mapOf("dw", "datagrhrdic"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("owxwyovcxjsgbip") - .withDatasetParameters("datakdveksb") - .withParameters(mapOf("rdpibfd", "dataduchvls", "wlkaaggkrehbfrnu", "datajdusspyszekb", - "qtaadusrexxfavsq", "databffljfiimreoag")) - .withAdditionalProperties(mapOf())), - new Transformation().withName("ypofqpmbhyqgs") - .withDescription("mmttjxophge") - .withDataset(new DatasetReference().withReferenceName("smv") - .withParameters(mapOf("qywwwmhk", "datatwzmqilrixysfnim", "hzdue", "datauwaedrympmlqoi", - "liejhpc", "dataihapfjiiknjdiq"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("iedfsbwcei") - .withParameters(mapOf("admskx", "datazipbwxgoooxzp", "zigjsugswhgsaodk", "datanpd", - "ctohzhaquvwsxbgn", "datawnbaf"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("rvqchoadhrsxqvzv") - .withDatasetParameters("dataabdsr") - .withParameters(mapOf("cetjdvq", "datajglzrsubklrxhjnl", "kw", "datadieq", "bibanbau", - "dataruwdxvqzxoebwgj")) - .withAdditionalProperties(mapOf())))) - .withScript("ttkgsux") - .withScriptLines(Arrays.asList("swgkpjhboyikebh", "hkslgwlokhueoij", "zcqypzqzufgsyf", "jyvdwtfxptpqayam")); - model = BinaryData.fromObject(model).toObject(MappingDataFlow.class); - Assertions.assertEquals("cf", model.description()); - Assertions.assertEquals("djuxdbdljzgd", model.folder().name()); - Assertions.assertEquals("wvif", model.sources().get(0).name()); - Assertions.assertEquals("kecifhocjxwklo", model.sources().get(0).description()); - Assertions.assertEquals("rvtxvcmufunlc", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("quv", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("rslskkzp", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("xyio", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("ilm", model.sinks().get(0).name()); - Assertions.assertEquals("dqaolfylnkk", model.sinks().get(0).description()); - Assertions.assertEquals("pjvlywltmfwo", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("gczeuntgx", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("nyttzgix", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("ehok", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("tmujdtvmc", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("waaeskyfjl", model.transformations().get(0).name()); - Assertions.assertEquals("eqtoyrpl", model.transformations().get(0).description()); - Assertions.assertEquals("lajmllp", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("ihpq", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("owxwyovcxjsgbip", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("ttkgsux", model.script()); - Assertions.assertEquals("swgkpjhboyikebh", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java deleted file mode 100644 index b749f6a4d122..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MappingDataFlowTypePropertiesTests.java +++ /dev/null @@ -1,197 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MappingDataFlowTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MappingDataFlowTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MappingDataFlowTypeProperties model = BinaryData.fromString( - "{\"sources\":[{\"schemaLinkedService\":{\"referenceName\":\"uqbsgzlrqhb\",\"parameters\":{\"ecominxojjluxxd\":\"dataogdxwbsfpyxxtjlf\",\"dzzqjmu\":\"datailz\"}},\"name\":\"za\",\"description\":\"vribqlotokht\",\"dataset\":{\"referenceName\":\"taznkcqwwxwjyof\",\"parameters\":{\"ctsnldkpwol\":\"datankbtlwljss\",\"gfii\":\"dataisubxbteog\",\"xqceazfpxgn\":\"datarykwlefk\",\"q\":\"dataqvzvlu\"}},\"linkedService\":{\"referenceName\":\"ios\",\"parameters\":{\"acvfyeowps\":\"datayvaifpp\",\"jdhsoy\":\"datax\",\"pboujs\":\"datahpvtyqftteh\",\"suenyg\":\"datakfvvdshxcde\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"g\",\"datasetParameters\":\"datafrn\",\"parameters\":{\"rwntfm\":\"datatrfnslnlrxsmyl\"},\"\":{\"az\":\"datawjdxw\"}}}],\"sinks\":[{\"schemaLinkedService\":{\"referenceName\":\"drey\",\"parameters\":{\"z\":\"datafop\",\"qzzdcykeyste\":\"dataqseuzuukykcyqhy\",\"q\":\"dataazgbsqgpe\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"utmdpvozg\",\"parameters\":{\"tzeyowmndcovd\":\"databknlzcl\"}},\"name\":\"zqauxzan\",\"description\":\"kvfruwkudr\",\"dataset\":{\"referenceName\":\"pftxudqyeme\",\"parameters\":{\"mjauwcgx\":\"dataaucmcirtnee\",\"zerwgudas\":\"datafnohaitran\",\"ngfcocefhpriyl\":\"dataxubvf\"}},\"linkedService\":{\"referenceName\":\"pztraudsvhl\",\"parameters\":{\"egpqtmo\":\"dataul\",\"shqrdgrt\":\"datahvrztnvg\",\"fa\":\"datamewjzlpyk\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"jcayerzrransyby\",\"datasetParameters\":\"dataol\",\"parameters\":{\"jwvuag\":\"dataghsrleinkfscjfn\",\"klzmijajw\":\"dataqwtltngvmreupt\",\"fsvagh\":\"datal\",\"xqlaps\":\"datapynwlslrcigtzjcv\"},\"\":{\"wffcvvye\":\"dataovyxpavidnie\",\"pnptw\":\"dataslpuxgcbdsva\",\"bfe\":\"datarkxgpazwugxyqvnj\",\"aewzgiudjp\":\"datahldiuhzzgqlm\"}}},{\"schemaLinkedService\":{\"referenceName\":\"qhttqhnmhkre\",\"parameters\":{\"heqdgcru\":\"datasu\",\"m\":\"dataspiny\",\"jipfdvh\":\"datagwokmikpazfbmjxu\",\"ehpphthdklmveta\":\"dataxdvwz\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"akfqoixwgiksb\",\"parameters\":{\"ogwp\":\"dataooxr\",\"bfntumeezbxvq\":\"datachgjtnhtukfacih\"}},\"name\":\"bnuvwcg\",\"description\":\"gomtm\",\"dataset\":{\"referenceName\":\"wxuq\",\"parameters\":{\"gfredmlscg\":\"datasxpwwztjfmkkh\"}},\"linkedService\":{\"referenceName\":\"lccnaovjowaz\",\"parameters\":{\"yotgkwsxnsrqorc\":\"databacom\",\"jxcxxq\":\"dataenmvcebxeetq\",\"ojmrvvxwjongzse\":\"datadcqjkedwqurc\",\"chskxxka\":\"dataqqrsil\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"vri\",\"datasetParameters\":\"datagv\",\"parameters\":{\"jrthcfjzhx\":\"datarulfuct\",\"stvrjeqmt\":\"datayubqjr\",\"xrd\":\"datazbeqrztrxa\"},\"\":{\"kkvyanxk\":\"datasrwrsnrhpqati\",\"qxetqmmlivrjjx\":\"datavcsemsvuvdj\",\"gfquwz\":\"datawxdchpojxlehzlx\",\"ibelwcerwkw\":\"dataw\"}}},{\"schemaLinkedService\":{\"referenceName\":\"jxljtxbusq\",\"parameters\":{\"sdzhgbdgzpagsec\":\"dataxniu\",\"ezoell\":\"dataadbuwqrgxfllmqiy\",\"w\":\"datakki\",\"pymdjfuax\":\"datamtum\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"qvqpilrg\",\"parameters\":{\"x\":\"dataanlduwzorxsb\",\"xym\":\"dataqk\",\"qepdx\":\"datakqv\"}},\"name\":\"ltuubw\",\"description\":\"pjbowcpj\",\"dataset\":{\"referenceName\":\"uqgixex\",\"parameters\":{\"r\":\"datafbwljavhuerkjdd\",\"ftksd\":\"dataliegftcvbi\"}},\"linkedService\":{\"referenceName\":\"dnkefgm\",\"parameters\":{\"buvczldbglzoutb\":\"datac\",\"orbjg\":\"dataaqgzekajclyzgs\",\"khlobvvjbhvhdi\":\"datanzjotvmr\",\"dtelvhyibdrqrs\":\"dataayfluiyuosnu\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"uubpyrow\",\"datasetParameters\":\"dataoxztfwfqch\",\"parameters\":{\"agfyvrtpqpe\":\"dataevjnnc\",\"e\":\"datahzcgkrepdqhqyhwq\",\"abckmzeoxinhgre\":\"datavx\"},\"\":{\"angp\":\"datawhlpuzjpceezn\",\"phmsexroq\":\"databfaxyxzlbc\",\"nfee\":\"datandktxfv\"}}},{\"schemaLinkedService\":{\"referenceName\":\"pkrietbgni\",\"parameters\":{\"nwpiwxeiicrm\":\"datawwzkyf\",\"kldmaxxijv\":\"datae\",\"yacwrasekwefc\":\"datakwsdgkj\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"inwoqartwyxq\",\"parameters\":{\"msfobjlquvj\":\"dataadvatdavuqmcb\"}},\"name\":\"zcjumvpsimioyoig\",\"description\":\"miqwnnrac\",\"dataset\":{\"referenceName\":\"bbfqpspklady\",\"parameters\":{\"kexzgpmnmabeddqi\":\"datahautw\",\"fpfqf\":\"datawg\",\"xbsmtbljje\":\"datacvstclgqrvwerf\",\"kwdvbtb\":\"datahci\"}},\"linkedService\":{\"referenceName\":\"kqhs\",\"parameters\":{\"igmghginztx\":\"datafpwpqbyejuwyqwd\",\"qtwmlmhjnqtqeahj\":\"dataujkhnjcmrnkfmkh\",\"vgua\":\"datadvragpokddxejhh\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"tbkewkqynspg\",\"datasetParameters\":\"dataoffbkkwvdxaexqok\",\"parameters\":{\"brqlpbcjtrpz\":\"dataljialzbn\"},\"\":{\"bxnhsqeaeo\":\"datadi\",\"ogatmoljiy\":\"dataqelwgdhuruzytza\",\"knsjulugd\":\"datampinmzvfkneerzzt\",\"pihtdmiwjekpt\":\"databnhrxlelfjhkeiz\"}}}],\"transformations\":[{\"name\":\"ydbjzcqymlcf\",\"description\":\"hmhsurlgwqkpm\",\"dataset\":{\"referenceName\":\"pstauol\",\"parameters\":{\"vlrlohewjjmajn\":\"dataubmomsgvvjh\",\"ionsw\":\"datadfl\"}},\"linkedService\":{\"referenceName\":\"qkzfz\",\"parameters\":{\"pkhx\":\"dataoshohtotrye\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"xznlwkbfokxk\",\"datasetParameters\":\"datap\",\"parameters\":{\"yfcemftz\":\"dataufgjblcdr\",\"ekdfqnhttwd\":\"datayykyalu\",\"mhmnulwemp\":\"datawrczfjjnnuxxrk\",\"usnaw\":\"datacifrhjulrsulwzpf\"},\"\":{\"xxyxhighctxbxm\":\"datagzotfriyrgkoekvz\"}}}],\"script\":\"pcqydeykvsk\",\"scriptLines\":[\"dfrjeizik\",\"qaboohxbms\",\"ycqsxr\"]}") - .toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("za", model.sources().get(0).name()); - Assertions.assertEquals("vribqlotokht", model.sources().get(0).description()); - Assertions.assertEquals("taznkcqwwxwjyof", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ios", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("g", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("uqbsgzlrqhb", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zqauxzan", model.sinks().get(0).name()); - Assertions.assertEquals("kvfruwkudr", model.sinks().get(0).description()); - Assertions.assertEquals("pftxudqyeme", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("pztraudsvhl", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("jcayerzrransyby", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("drey", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("utmdpvozg", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ydbjzcqymlcf", model.transformations().get(0).name()); - Assertions.assertEquals("hmhsurlgwqkpm", model.transformations().get(0).description()); - Assertions.assertEquals("pstauol", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("qkzfz", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("xznlwkbfokxk", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("pcqydeykvsk", model.script()); - Assertions.assertEquals("dfrjeizik", model.scriptLines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MappingDataFlowTypeProperties model = new MappingDataFlowTypeProperties() - .withSources(Arrays.asList(new DataFlowSource().withName("za") - .withDescription("vribqlotokht") - .withDataset(new DatasetReference().withReferenceName("taznkcqwwxwjyof") - .withParameters(mapOf("ctsnldkpwol", "datankbtlwljss", "gfii", "dataisubxbteog", "xqceazfpxgn", - "datarykwlefk", "q", "dataqvzvlu"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("ios") - .withParameters(mapOf("acvfyeowps", "datayvaifpp", "jdhsoy", "datax", "pboujs", "datahpvtyqftteh", - "suenyg", "datakfvvdshxcde"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("g") - .withDatasetParameters("datafrn") - .withParameters(mapOf("rwntfm", "datatrfnslnlrxsmyl")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("uqbsgzlrqhb") - .withParameters(mapOf("ecominxojjluxxd", "dataogdxwbsfpyxxtjlf", "dzzqjmu", "datailz"))))) - .withSinks(Arrays.asList( - new DataFlowSink().withName("zqauxzan") - .withDescription("kvfruwkudr") - .withDataset(new DatasetReference().withReferenceName("pftxudqyeme") - .withParameters(mapOf("mjauwcgx", "dataaucmcirtnee", "zerwgudas", "datafnohaitran", - "ngfcocefhpriyl", "dataxubvf"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("pztraudsvhl") - .withParameters(mapOf("egpqtmo", "dataul", "shqrdgrt", "datahvrztnvg", "fa", "datamewjzlpyk"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("jcayerzrransyby") - .withDatasetParameters("dataol") - .withParameters(mapOf("jwvuag", "dataghsrleinkfscjfn", "klzmijajw", "dataqwtltngvmreupt", - "fsvagh", "datal", "xqlaps", "datapynwlslrcigtzjcv")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("drey") - .withParameters( - mapOf("z", "datafop", "qzzdcykeyste", "dataqseuzuukykcyqhy", "q", "dataazgbsqgpe"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("utmdpvozg") - .withParameters(mapOf("tzeyowmndcovd", "databknlzcl"))), - new DataFlowSink().withName("bnuvwcg") - .withDescription("gomtm") - .withDataset(new DatasetReference().withReferenceName("wxuq") - .withParameters(mapOf("gfredmlscg", "datasxpwwztjfmkkh"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("lccnaovjowaz") - .withParameters(mapOf("yotgkwsxnsrqorc", "databacom", "jxcxxq", "dataenmvcebxeetq", - "ojmrvvxwjongzse", "datadcqjkedwqurc", "chskxxka", "dataqqrsil"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("vri") - .withDatasetParameters("datagv") - .withParameters( - mapOf("jrthcfjzhx", "datarulfuct", "stvrjeqmt", "datayubqjr", "xrd", "datazbeqrztrxa")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("qhttqhnmhkre") - .withParameters(mapOf("heqdgcru", "datasu", "m", "dataspiny", "jipfdvh", "datagwokmikpazfbmjxu", - "ehpphthdklmveta", "dataxdvwz"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("akfqoixwgiksb") - .withParameters(mapOf("ogwp", "dataooxr", "bfntumeezbxvq", "datachgjtnhtukfacih"))), - new DataFlowSink().withName("ltuubw") - .withDescription("pjbowcpj") - .withDataset(new DatasetReference().withReferenceName("uqgixex") - .withParameters(mapOf("r", "datafbwljavhuerkjdd", "ftksd", "dataliegftcvbi"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("dnkefgm") - .withParameters(mapOf("buvczldbglzoutb", "datac", "orbjg", "dataaqgzekajclyzgs", - "khlobvvjbhvhdi", "datanzjotvmr", "dtelvhyibdrqrs", "dataayfluiyuosnu"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("uubpyrow") - .withDatasetParameters("dataoxztfwfqch") - .withParameters(mapOf("agfyvrtpqpe", "dataevjnnc", "e", "datahzcgkrepdqhqyhwq", - "abckmzeoxinhgre", "datavx")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("jxljtxbusq") - .withParameters(mapOf("sdzhgbdgzpagsec", "dataxniu", "ezoell", "dataadbuwqrgxfllmqiy", "w", - "datakki", "pymdjfuax", "datamtum"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("qvqpilrg") - .withParameters(mapOf("x", "dataanlduwzorxsb", "xym", "dataqk", "qepdx", "datakqv"))), - new DataFlowSink().withName("zcjumvpsimioyoig") - .withDescription("miqwnnrac") - .withDataset(new DatasetReference().withReferenceName("bbfqpspklady") - .withParameters(mapOf("kexzgpmnmabeddqi", "datahautw", "fpfqf", "datawg", "xbsmtbljje", - "datacvstclgqrvwerf", "kwdvbtb", "datahci"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("kqhs") - .withParameters(mapOf("igmghginztx", "datafpwpqbyejuwyqwd", "qtwmlmhjnqtqeahj", - "dataujkhnjcmrnkfmkh", "vgua", "datadvragpokddxejhh"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("tbkewkqynspg") - .withDatasetParameters("dataoffbkkwvdxaexqok") - .withParameters(mapOf("brqlpbcjtrpz", "dataljialzbn")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("pkrietbgni") - .withParameters(mapOf("nwpiwxeiicrm", "datawwzkyf", "kldmaxxijv", "datae", "yacwrasekwefc", - "datakwsdgkj"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("inwoqartwyxq") - .withParameters(mapOf("msfobjlquvj", "dataadvatdavuqmcb"))))) - .withTransformations(Arrays.asList(new Transformation().withName("ydbjzcqymlcf") - .withDescription("hmhsurlgwqkpm") - .withDataset(new DatasetReference().withReferenceName("pstauol") - .withParameters(mapOf("vlrlohewjjmajn", "dataubmomsgvvjh", "ionsw", "datadfl"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("qkzfz") - .withParameters(mapOf("pkhx", "dataoshohtotrye"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("xznlwkbfokxk") - .withDatasetParameters("datap") - .withParameters(mapOf("yfcemftz", "dataufgjblcdr", "ekdfqnhttwd", "datayykyalu", "mhmnulwemp", - "datawrczfjjnnuxxrk", "usnaw", "datacifrhjulrsulwzpf")) - .withAdditionalProperties(mapOf())))) - .withScript("pcqydeykvsk") - .withScriptLines(Arrays.asList("dfrjeizik", "qaboohxbms", "ycqsxr")); - model = BinaryData.fromObject(model).toObject(MappingDataFlowTypeProperties.class); - Assertions.assertEquals("za", model.sources().get(0).name()); - Assertions.assertEquals("vribqlotokht", model.sources().get(0).description()); - Assertions.assertEquals("taznkcqwwxwjyof", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("ios", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("g", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("uqbsgzlrqhb", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("zqauxzan", model.sinks().get(0).name()); - Assertions.assertEquals("kvfruwkudr", model.sinks().get(0).description()); - Assertions.assertEquals("pftxudqyeme", model.sinks().get(0).dataset().referenceName()); - Assertions.assertEquals("pztraudsvhl", model.sinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sinks().get(0).flowlet().type()); - Assertions.assertEquals("jcayerzrransyby", model.sinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("drey", model.sinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("utmdpvozg", model.sinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("ydbjzcqymlcf", model.transformations().get(0).name()); - Assertions.assertEquals("hmhsurlgwqkpm", model.transformations().get(0).description()); - Assertions.assertEquals("pstauol", model.transformations().get(0).dataset().referenceName()); - Assertions.assertEquals("qkzfz", model.transformations().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.transformations().get(0).flowlet().type()); - Assertions.assertEquals("xznlwkbfokxk", model.transformations().get(0).flowlet().referenceName()); - Assertions.assertEquals("pcqydeykvsk", model.script()); - Assertions.assertEquals("dfrjeizik", model.scriptLines().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java deleted file mode 100644 index c83e4e5d7710..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MariaDBSource; - -public final class MariaDBSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MariaDBSource model = BinaryData.fromString( - "{\"type\":\"MariaDBSource\",\"query\":\"datarhc\",\"queryTimeout\":\"datasvmp\",\"additionalColumns\":\"datarzilvcncdazw\",\"sourceRetryCount\":\"datagoravovqpn\",\"sourceRetryWait\":\"dataufvggv\",\"maxConcurrentConnections\":\"datamezfyelf\",\"disableMetricsCollection\":\"databkbhjdkqfj\",\"\":{\"ynkihbfix\":\"datazjtmakhga\"}}") - .toObject(MariaDBSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBSource model = new MariaDBSource().withSourceRetryCount("datagoravovqpn") - .withSourceRetryWait("dataufvggv") - .withMaxConcurrentConnections("datamezfyelf") - .withDisableMetricsCollection("databkbhjdkqfj") - .withQueryTimeout("datasvmp") - .withAdditionalColumns("datarzilvcncdazw") - .withQuery("datarhc"); - model = BinaryData.fromObject(model).toObject(MariaDBSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java deleted file mode 100644 index 6e44e2bdb1a1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MariaDBTableDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MariaDBTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MariaDBTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MariaDBTableDataset model = BinaryData.fromString( - "{\"type\":\"MariaDBTable\",\"typeProperties\":{\"tableName\":\"datatmabtpgn\"},\"description\":\"jtn\",\"structure\":\"datajewihcigaahm\",\"schema\":\"dataspkdnx\",\"linkedServiceName\":{\"referenceName\":\"xzxtertn\",\"parameters\":{\"olzjyf\":\"datawsciclhdwienv\",\"aknk\":\"dataryxsg\"}},\"parameters\":{\"vihbmwrv\":{\"type\":\"SecureString\",\"defaultValue\":\"datap\"}},\"annotations\":[\"datarohulobkabhvxjua\",\"datavxznirnygtixkg\"],\"folder\":{\"name\":\"mkphvdl\"},\"\":{\"cltfcieileem\":\"datazpqditu\",\"sgikkmibnmdpid\":\"datatkehldopjsxvbb\",\"styzavkyjjlu\":\"datapwtgzwmzhcmrloqa\",\"bngzldvvd\":\"datanmbj\"}}") - .toObject(MariaDBTableDataset.class); - Assertions.assertEquals("jtn", model.description()); - Assertions.assertEquals("xzxtertn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("vihbmwrv").type()); - Assertions.assertEquals("mkphvdl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MariaDBTableDataset model = new MariaDBTableDataset().withDescription("jtn") - .withStructure("datajewihcigaahm") - .withSchema("dataspkdnx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xzxtertn") - .withParameters(mapOf("olzjyf", "datawsciclhdwienv", "aknk", "dataryxsg"))) - .withParameters(mapOf("vihbmwrv", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datap"))) - .withAnnotations(Arrays.asList("datarohulobkabhvxjua", "datavxznirnygtixkg")) - .withFolder(new DatasetFolder().withName("mkphvdl")) - .withTableName("datatmabtpgn"); - model = BinaryData.fromObject(model).toObject(MariaDBTableDataset.class); - Assertions.assertEquals("jtn", model.description()); - Assertions.assertEquals("xzxtertn", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("vihbmwrv").type()); - Assertions.assertEquals("mkphvdl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java deleted file mode 100644 index 82fdbd56b3e4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MarketoObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MarketoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketoObjectDataset model = BinaryData.fromString( - "{\"type\":\"MarketoObject\",\"typeProperties\":{\"tableName\":\"dataickzovguzprpxhhb\"},\"description\":\"gzxkopqlrzhtocjz\",\"structure\":\"datapexuvat\",\"schema\":\"datankjwgiitvjcmimb\",\"linkedServiceName\":{\"referenceName\":\"swskbbbj\",\"parameters\":{\"sobggva\":\"dataplodaqrbkpozf\",\"p\":\"datacrqaxlmbrtvtgolm\",\"yxhxj\":\"datagtla\"}},\"parameters\":{\"fhfaobqnjcsb\":{\"type\":\"Float\",\"defaultValue\":\"dataaqqjh\"}},\"annotations\":[\"datacdqwssydvwryb\",\"datavywotjnjuvtzij\"],\"folder\":{\"name\":\"xbaeyocpkvlt\"},\"\":{\"oztnhvd\":\"datazfmnpbdrcibjxnn\"}}") - .toObject(MarketoObjectDataset.class); - Assertions.assertEquals("gzxkopqlrzhtocjz", model.description()); - Assertions.assertEquals("swskbbbj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fhfaobqnjcsb").type()); - Assertions.assertEquals("xbaeyocpkvlt", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoObjectDataset model = new MarketoObjectDataset().withDescription("gzxkopqlrzhtocjz") - .withStructure("datapexuvat") - .withSchema("datankjwgiitvjcmimb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("swskbbbj") - .withParameters( - mapOf("sobggva", "dataplodaqrbkpozf", "p", "datacrqaxlmbrtvtgolm", "yxhxj", "datagtla"))) - .withParameters(mapOf("fhfaobqnjcsb", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataaqqjh"))) - .withAnnotations(Arrays.asList("datacdqwssydvwryb", "datavywotjnjuvtzij")) - .withFolder(new DatasetFolder().withName("xbaeyocpkvlt")) - .withTableName("dataickzovguzprpxhhb"); - model = BinaryData.fromObject(model).toObject(MarketoObjectDataset.class); - Assertions.assertEquals("gzxkopqlrzhtocjz", model.description()); - Assertions.assertEquals("swskbbbj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fhfaobqnjcsb").type()); - Assertions.assertEquals("xbaeyocpkvlt", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java deleted file mode 100644 index 65df98e77d72..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MarketoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MarketoSource; - -public final class MarketoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketoSource model = BinaryData.fromString( - "{\"type\":\"MarketoSource\",\"query\":\"dataquqzepgvjmllzyka\",\"queryTimeout\":\"dataaummddwqiucpjp\",\"additionalColumns\":\"databssjtjwzelx\",\"sourceRetryCount\":\"datatt\",\"sourceRetryWait\":\"dataylvrofhhitjhh\",\"maxConcurrentConnections\":\"datavwrc\",\"disableMetricsCollection\":\"datahllmblls\",\"\":{\"ornuoqpo\":\"datadrimoopfrdfjjrh\",\"kwmqevx\":\"datawarsd\",\"olseoixqpn\":\"dataqyavcx\"}}") - .toObject(MarketoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketoSource model = new MarketoSource().withSourceRetryCount("datatt") - .withSourceRetryWait("dataylvrofhhitjhh") - .withMaxConcurrentConnections("datavwrc") - .withDisableMetricsCollection("datahllmblls") - .withQueryTimeout("dataaummddwqiucpjp") - .withAdditionalColumns("databssjtjwzelx") - .withQuery("dataquqzepgvjmllzyka"); - 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 42067d0e8757..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\":\"datapx\",\"value\":\"dataerqgxnh\"}").toObject(MetadataItem.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetadataItem model = new MetadataItem().withName("datapx").withValue("dataerqgxnh"); - 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 c0682bfec84a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessSink; - -public final class MicrosoftAccessSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessSink model = BinaryData.fromString( - "{\"type\":\"MicrosoftAccessSink\",\"preCopyScript\":\"dataufdxpwj\",\"writeBatchSize\":\"datajvskpbuo\",\"writeBatchTimeout\":\"datacuk\",\"sinkRetryCount\":\"datacuvww\",\"sinkRetryWait\":\"datajjcaaoce\",\"maxConcurrentConnections\":\"datawwilyxpq\",\"disableMetricsCollection\":\"datalifhjym\",\"\":{\"jphozymcypdbuoqn\":\"dataliivyatyzwybgay\",\"gidgwscosmhgza\":\"datatlz\",\"yavfc\":\"datacgdk\"}}") - .toObject(MicrosoftAccessSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSink model = new MicrosoftAccessSink().withWriteBatchSize("datajvskpbuo") - .withWriteBatchTimeout("datacuk") - .withSinkRetryCount("datacuvww") - .withSinkRetryWait("datajjcaaoce") - .withMaxConcurrentConnections("datawwilyxpq") - .withDisableMetricsCollection("datalifhjym") - .withPreCopyScript("dataufdxpwj"); - 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 574127e0d05c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessSource; - -public final class MicrosoftAccessSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessSource model = BinaryData.fromString( - "{\"type\":\"MicrosoftAccessSource\",\"query\":\"databgljcy\",\"additionalColumns\":\"datarzxipxhlxxkviyj\",\"sourceRetryCount\":\"dataqyejyavxgm\",\"sourceRetryWait\":\"datacnwxkqqxpnj\",\"maxConcurrentConnections\":\"datazdahvethn\",\"disableMetricsCollection\":\"dataeggyqlvnhmuut\",\"\":{\"k\":\"datatymbccmwsyfsg\"}}") - .toObject(MicrosoftAccessSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessSource model = new MicrosoftAccessSource().withSourceRetryCount("dataqyejyavxgm") - .withSourceRetryWait("datacnwxkqqxpnj") - .withMaxConcurrentConnections("datazdahvethn") - .withDisableMetricsCollection("dataeggyqlvnhmuut") - .withQuery("databgljcy") - .withAdditionalColumns("datarzxipxhlxxkviyj"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java deleted file mode 100644 index 60acbfebc3ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MicrosoftAccessTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MicrosoftAccessTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessTableDataset model = BinaryData.fromString( - "{\"type\":\"MicrosoftAccessTable\",\"typeProperties\":{\"tableName\":\"databydlgfaphwu\"},\"description\":\"wtsaynrtvj\",\"structure\":\"datareeoxvq\",\"schema\":\"datarnbli\",\"linkedServiceName\":{\"referenceName\":\"sdbfbmdiv\",\"parameters\":{\"jg\":\"datah\",\"aub\":\"datazmiaoaweacf\"}},\"parameters\":{\"dckhsq\":{\"type\":\"Float\",\"defaultValue\":\"datatcnxriqz\"},\"okohlsfj\":{\"type\":\"Array\",\"defaultValue\":\"datajsurnowobwxrxm\"}},\"annotations\":[\"dataqjpzhe\",\"datahuv\"],\"folder\":{\"name\":\"qkvadmjhymud\"},\"\":{\"rmclyqwwu\":\"dataajzdebhs\",\"svkb\":\"datayqkaaptb\",\"bloccu\":\"databptw\",\"uybutcdzjfjt\":\"dataplxzbnsshvqnpszb\"}}") - .toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("wtsaynrtvj", model.description()); - Assertions.assertEquals("sdbfbmdiv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("dckhsq").type()); - Assertions.assertEquals("qkvadmjhymud", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDataset model = new MicrosoftAccessTableDataset().withDescription("wtsaynrtvj") - .withStructure("datareeoxvq") - .withSchema("datarnbli") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("sdbfbmdiv") - .withParameters(mapOf("jg", "datah", "aub", "datazmiaoaweacf"))) - .withParameters(mapOf("dckhsq", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatcnxriqz"), "okohlsfj", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajsurnowobwxrxm"))) - .withAnnotations(Arrays.asList("dataqjpzhe", "datahuv")) - .withFolder(new DatasetFolder().withName("qkvadmjhymud")) - .withTableName("databydlgfaphwu"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessTableDataset.class); - Assertions.assertEquals("wtsaynrtvj", model.description()); - Assertions.assertEquals("sdbfbmdiv", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("dckhsq").type()); - Assertions.assertEquals("qkvadmjhymud", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java deleted file mode 100644 index a2667a3e40e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MicrosoftAccessTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessTableDatasetTypeProperties; - -public final class MicrosoftAccessTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MicrosoftAccessTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"dataeyxdyu\"}") - .toObject(MicrosoftAccessTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MicrosoftAccessTableDatasetTypeProperties model - = new MicrosoftAccessTableDatasetTypeProperties().withTableName("dataeyxdyu"); - model = BinaryData.fromObject(model).toObject(MicrosoftAccessTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java deleted file mode 100644 index e65f0f3f2cdb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasCollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbAtlasCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasCollectionDataset model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlasCollection\",\"typeProperties\":{\"collection\":\"datadwhslxebaj\"},\"description\":\"knmstbdoprwkamp\",\"structure\":\"datawpbldz\",\"schema\":\"dataudrcycm\",\"linkedServiceName\":{\"referenceName\":\"huzymhlhihqk\",\"parameters\":{\"aiildcpud\":\"datakmnbzko\",\"drobujnjgy\":\"datahquxsyjofpgv\",\"njgcp\":\"datauxmqxigidul\",\"ghxhkyqzjsdkpvn\":\"datakgrhnytslgsazuqz\"}},\"parameters\":{\"hflyuvbgtz\":{\"type\":\"Array\",\"defaultValue\":\"dataffxsfybntmveh\"}},\"annotations\":[\"dataweuydyb\",\"dataairvhpqsv\"],\"folder\":{\"name\":\"ogeatrcnqnvn\"},\"\":{\"iznzs\":\"datafcsjvjnk\"}}") - .toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("knmstbdoprwkamp", model.description()); - Assertions.assertEquals("huzymhlhihqk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hflyuvbgtz").type()); - Assertions.assertEquals("ogeatrcnqnvn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDataset model = new MongoDbAtlasCollectionDataset().withDescription("knmstbdoprwkamp") - .withStructure("datawpbldz") - .withSchema("dataudrcycm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("huzymhlhihqk") - .withParameters(mapOf("aiildcpud", "datakmnbzko", "drobujnjgy", "datahquxsyjofpgv", "njgcp", - "datauxmqxigidul", "ghxhkyqzjsdkpvn", "datakgrhnytslgsazuqz"))) - .withParameters(mapOf("hflyuvbgtz", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataffxsfybntmveh"))) - .withAnnotations(Arrays.asList("dataweuydyb", "dataairvhpqsv")) - .withFolder(new DatasetFolder().withName("ogeatrcnqnvn")) - .withCollection("datadwhslxebaj"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasCollectionDataset.class); - Assertions.assertEquals("knmstbdoprwkamp", model.description()); - Assertions.assertEquals("huzymhlhihqk", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("hflyuvbgtz").type()); - Assertions.assertEquals("ogeatrcnqnvn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index bf1e75e37d03..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasCollectionDatasetTypeProperties; - -public final class MongoDbAtlasCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model = BinaryData.fromString("{\"collection\":\"databiba\"}") - .toObject(MongoDbAtlasCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasCollectionDatasetTypeProperties model - = new MongoDbAtlasCollectionDatasetTypeProperties().withCollection("databiba"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.java deleted file mode 100644 index 9fccab1bc616..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasLinkedServiceTests.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.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasLinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbAtlasLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasLinkedService model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlas\",\"typeProperties\":{\"connectionString\":\"datazxkflz\",\"database\":\"datawkxxboauvkkco\",\"driverVersion\":\"datanwhld\"},\"version\":\"n\",\"connectVia\":{\"referenceName\":\"huqmdyn\",\"parameters\":{\"yag\":\"datalcvlmrvhedrbzzb\",\"alz\":\"dataxwcndkdlxdlh\",\"wkyxowno\":\"dataj\"}},\"description\":\"qus\",\"parameters\":{\"tjxlopncca\":{\"type\":\"Bool\",\"defaultValue\":\"dataicrsd\"},\"zjpghjmgpc\":{\"type\":\"SecureString\",\"defaultValue\":\"dataprszehijlwrfea\"},\"xlrx\":{\"type\":\"Int\",\"defaultValue\":\"datakls\"},\"sbjxpuokkdpts\":{\"type\":\"SecureString\",\"defaultValue\":\"datamfqmvnhsfjxt\"}},\"annotations\":[\"datatplonalpwaulkwu\",\"dataasjwnwnj\",\"datarnfgtmupblhnxq\",\"datazzikxufuwcajy\"],\"\":{\"mbpn\":\"datakuiveftugiwsvlf\",\"xwrf\":\"datag\",\"fzuvuoxzy\":\"datafzay\"}}") - .toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("n", model.version()); - Assertions.assertEquals("huqmdyn", model.connectVia().referenceName()); - Assertions.assertEquals("qus", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("tjxlopncca").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedService model = new MongoDbAtlasLinkedService().withVersion("n") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("huqmdyn") - .withParameters(mapOf("yag", "datalcvlmrvhedrbzzb", "alz", "dataxwcndkdlxdlh", "wkyxowno", "dataj"))) - .withDescription("qus") - .withParameters(mapOf("tjxlopncca", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataicrsd"), "zjpghjmgpc", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataprszehijlwrfea"), - "xlrx", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datakls"), - "sbjxpuokkdpts", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datamfqmvnhsfjxt"))) - .withAnnotations( - Arrays.asList("datatplonalpwaulkwu", "dataasjwnwnj", "datarnfgtmupblhnxq", "datazzikxufuwcajy")) - .withConnectionString("datazxkflz") - .withDatabase("datawkxxboauvkkco") - .withDriverVersion("datanwhld"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasLinkedService.class); - Assertions.assertEquals("n", model.version()); - Assertions.assertEquals("huqmdyn", model.connectVia().referenceName()); - Assertions.assertEquals("qus", model.description()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("tjxlopncca").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 fe9d6b7c1be6..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\":\"dataqcjclvbqovkz\",\"database\":\"dataeytphnazpgvfcubx\",\"driverVersion\":\"dataqhedbqrl\"}") - .toObject(MongoDbAtlasLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasLinkedServiceTypeProperties model - = new MongoDbAtlasLinkedServiceTypeProperties().withConnectionString("dataqcjclvbqovkz") - .withDatabase("dataeytphnazpgvfcubx") - .withDriverVersion("dataqhedbqrl"); - 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 db949a853675..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasSink; - -public final class MongoDbAtlasSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasSink model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlasSink\",\"writeBehavior\":\"datahq\",\"writeBatchSize\":\"datamptjsixawip\",\"writeBatchTimeout\":\"dataacyxnzadflv\",\"sinkRetryCount\":\"datahgdzrcqdvapo\",\"sinkRetryWait\":\"dataminerejrdxh\",\"maxConcurrentConnections\":\"datavmxhztdcadbm\",\"disableMetricsCollection\":\"datagqmitrpa\",\"\":{\"mtcihupoelj\":\"datahwcyasziu\"}}") - .toObject(MongoDbAtlasSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSink model = new MongoDbAtlasSink().withWriteBatchSize("datamptjsixawip") - .withWriteBatchTimeout("dataacyxnzadflv") - .withSinkRetryCount("datahgdzrcqdvapo") - .withSinkRetryWait("dataminerejrdxh") - .withMaxConcurrentConnections("datavmxhztdcadbm") - .withDisableMetricsCollection("datagqmitrpa") - .withWriteBehavior("datahq"); - 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 5a7c6a3c0c1f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbAtlasSourceTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbAtlasSource; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbAtlasSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbAtlasSource model = BinaryData.fromString( - "{\"type\":\"MongoDbAtlasSource\",\"filter\":\"datazjwj\",\"cursorMethods\":{\"project\":\"datalihanawipdqoz\",\"sort\":\"datalqzopvhwmtdbfrj\",\"skip\":\"datavu\",\"limit\":\"dataps\",\"\":{\"jxkxl\":\"dataagordbsascntdw\",\"feqnmb\":\"dataowdwiffa\",\"tthsuzxyl\":\"datagcb\"}},\"batchSize\":\"dataf\",\"queryTimeout\":\"datas\",\"additionalColumns\":\"datanscobhhbljsvpok\",\"sourceRetryCount\":\"dataobygff\",\"sourceRetryWait\":\"datahnusrfffago\",\"maxConcurrentConnections\":\"datafwzysvnvrfjgbxup\",\"disableMetricsCollection\":\"datag\",\"\":{\"rowrmesziubkyvc\":\"datavwuje\",\"wdjbyaav\":\"datakoufwkaomytlx\",\"xyhuetztorhu\":\"datamsxamncuhxznma\"}}") - .toObject(MongoDbAtlasSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbAtlasSource model = new MongoDbAtlasSource().withSourceRetryCount("dataobygff") - .withSourceRetryWait("datahnusrfffago") - .withMaxConcurrentConnections("datafwzysvnvrfjgbxup") - .withDisableMetricsCollection("datag") - .withFilter("datazjwj") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("datalihanawipdqoz") - .withSort("datalqzopvhwmtdbfrj") - .withSkip("datavu") - .withLimit("dataps") - .withAdditionalProperties(mapOf())) - .withBatchSize("dataf") - .withQueryTimeout("datas") - .withAdditionalColumns("datanscobhhbljsvpok"); - model = BinaryData.fromObject(model).toObject(MongoDbAtlasSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java deleted file mode 100644 index 22db504fda02..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbCollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbCollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCollectionDataset model = BinaryData.fromString( - "{\"type\":\"MongoDbCollection\",\"typeProperties\":{\"collectionName\":\"datab\"},\"description\":\"wxs\",\"structure\":\"datajgg\",\"schema\":\"datagaef\",\"linkedServiceName\":{\"referenceName\":\"awkmibu\",\"parameters\":{\"updyttqm\":\"dataiurni\"}},\"parameters\":{\"s\":{\"type\":\"Array\",\"defaultValue\":\"datal\"}},\"annotations\":[\"datahhtuqmtxynof\",\"dataqobfixngxebihe\"],\"folder\":{\"name\":\"kingiqcdolrpgu\"},\"\":{\"dafbncuy\":\"datalbsm\",\"fzxjzi\":\"dataeykcnhpplzh\",\"wnuwkkfzzetl\":\"dataucrln\",\"vwywjvrlgqpwwlzp\":\"datahdyxz\"}}") - .toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("wxs", model.description()); - Assertions.assertEquals("awkmibu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("s").type()); - Assertions.assertEquals("kingiqcdolrpgu", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDataset model = new MongoDbCollectionDataset().withDescription("wxs") - .withStructure("datajgg") - .withSchema("datagaef") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("awkmibu") - .withParameters(mapOf("updyttqm", "dataiurni"))) - .withParameters( - mapOf("s", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datal"))) - .withAnnotations(Arrays.asList("datahhtuqmtxynof", "dataqobfixngxebihe")) - .withFolder(new DatasetFolder().withName("kingiqcdolrpgu")) - .withCollectionName("datab"); - model = BinaryData.fromObject(model).toObject(MongoDbCollectionDataset.class); - Assertions.assertEquals("wxs", model.description()); - Assertions.assertEquals("awkmibu", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("s").type()); - Assertions.assertEquals("kingiqcdolrpgu", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java deleted file mode 100644 index 8a84eb09b942..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbCollectionDatasetTypeProperties; - -public final class MongoDbCollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbCollectionDatasetTypeProperties model = BinaryData.fromString("{\"collectionName\":\"datadarcb\"}") - .toObject(MongoDbCollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCollectionDatasetTypeProperties model - = new MongoDbCollectionDatasetTypeProperties().withCollectionName("datadarcb"); - model = BinaryData.fromObject(model).toObject(MongoDbCollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbCursorMethodsPropertiesTests.java deleted file mode 100644 index 96597240faf5..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\":\"datauysszhsewjqg\",\"sort\":\"datao\",\"skip\":\"datahxd\",\"limit\":\"dataegljqpyxi\",\"\":{\"dkqwgoomapcaxnoq\":\"datagdkanmhvwgchgp\",\"vectooxjztt\":\"datajfvj\"}}") - .toObject(MongoDbCursorMethodsProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbCursorMethodsProperties model = new MongoDbCursorMethodsProperties().withProject("datauysszhsewjqg") - .withSort("datao") - .withSkip("datahxd") - .withLimit("dataegljqpyxi") - .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 576dc1fdaf91..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbSource; - -public final class MongoDbSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbSource model = BinaryData.fromString( - "{\"type\":\"MongoDbSource\",\"query\":\"datawdw\",\"additionalColumns\":\"dataxxehndcpiwcgc\",\"sourceRetryCount\":\"datashlpqxjxhdwj\",\"sourceRetryWait\":\"dataopzclkatpuomg\",\"maxConcurrentConnections\":\"datavcqnjjfm\",\"disableMetricsCollection\":\"datacfbflyzcq\",\"\":{\"vbfpu\":\"dataybsyjoonv\",\"td\":\"datalo\",\"oet\":\"dataumuuqwcka\"}}") - .toObject(MongoDbSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbSource model = new MongoDbSource().withSourceRetryCount("datashlpqxjxhdwj") - .withSourceRetryWait("dataopzclkatpuomg") - .withMaxConcurrentConnections("datavcqnjjfm") - .withDisableMetricsCollection("datacfbflyzcq") - .withQuery("datawdw") - .withAdditionalColumns("dataxxehndcpiwcgc"); - model = BinaryData.fromObject(model).toObject(MongoDbSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java deleted file mode 100644 index a0fcaca01d7d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MongoDbV2CollectionDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbV2CollectionDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2CollectionDataset model = BinaryData.fromString( - "{\"type\":\"MongoDbV2Collection\",\"typeProperties\":{\"collection\":\"dataugico\"},\"description\":\"tmvwrmjxyvuodnx\",\"structure\":\"databassqfyylwpp\",\"schema\":\"datagkbzbloas\",\"linkedServiceName\":{\"referenceName\":\"bxhqvovdp\",\"parameters\":{\"aqg\":\"datatuvsqjsrvjnq\",\"wevsfgdrmnszdosm\":\"dataqbfkceincnrecjbi\"}},\"parameters\":{\"hgsulwvgs\":{\"type\":\"Object\",\"defaultValue\":\"datazvmxtcwghndae\"},\"wuhyzekypy\":{\"type\":\"Array\",\"defaultValue\":\"dataigvfjjuzkilmc\"},\"bp\":{\"type\":\"Bool\",\"defaultValue\":\"datajlbzdlb\"}},\"annotations\":[\"datapzy\",\"dataov\",\"datanwbhanzgesfhshag\"],\"folder\":{\"name\":\"nezpby\"},\"\":{\"qbugihcdv\":\"dataynpmggqgagen\",\"zsaxzgkqwvdepp\":\"dataoizorbloe\"}}") - .toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("tmvwrmjxyvuodnx", model.description()); - Assertions.assertEquals("bxhqvovdp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("hgsulwvgs").type()); - Assertions.assertEquals("nezpby", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDataset model = new MongoDbV2CollectionDataset().withDescription("tmvwrmjxyvuodnx") - .withStructure("databassqfyylwpp") - .withSchema("datagkbzbloas") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bxhqvovdp") - .withParameters(mapOf("aqg", "datatuvsqjsrvjnq", "wevsfgdrmnszdosm", "dataqbfkceincnrecjbi"))) - .withParameters(mapOf("hgsulwvgs", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datazvmxtcwghndae"), - "wuhyzekypy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataigvfjjuzkilmc"), "bp", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datajlbzdlb"))) - .withAnnotations(Arrays.asList("datapzy", "dataov", "datanwbhanzgesfhshag")) - .withFolder(new DatasetFolder().withName("nezpby")) - .withCollection("dataugico"); - model = BinaryData.fromObject(model).toObject(MongoDbV2CollectionDataset.class); - Assertions.assertEquals("tmvwrmjxyvuodnx", model.description()); - Assertions.assertEquals("bxhqvovdp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("hgsulwvgs").type()); - Assertions.assertEquals("nezpby", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java deleted file mode 100644 index db1b0c6ec4e2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2CollectionDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2CollectionDatasetTypeProperties; - -public final class MongoDbV2CollectionDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model = BinaryData.fromString("{\"collection\":\"datanaphifkfrpmpl\"}") - .toObject(MongoDbV2CollectionDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2CollectionDatasetTypeProperties model - = new MongoDbV2CollectionDatasetTypeProperties().withCollection("datanaphifkfrpmpl"); - model = BinaryData.fromObject(model).toObject(MongoDbV2CollectionDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java deleted file mode 100644 index 00fe368c84f6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.MongoDbV2LinkedService; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MongoDbV2LinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2LinkedService model = BinaryData.fromString( - "{\"type\":\"MongoDbV2\",\"typeProperties\":{\"connectionString\":\"datayhzyf\",\"database\":\"datau\"},\"version\":\"krzvd\",\"connectVia\":{\"referenceName\":\"cevbkk\",\"parameters\":{\"gphhpwxghwwfqzw\":\"dataj\",\"xftyifadsliifdr\":\"datasmsqqmdajsqe\"}},\"description\":\"rpjspbi\",\"parameters\":{\"wgkm\":{\"type\":\"String\",\"defaultValue\":\"datafooinpnrfvqgc\"}},\"annotations\":[\"datarewtfu\",\"datakts\",\"datanikcgittfmlpihte\",\"dataasjebrinv\"],\"\":{\"in\":\"datasij\",\"kqtkrjuc\":\"databntlxwayxujzoxg\",\"hulxgce\":\"datazwedm\",\"anudvqannenxg\":\"datax\"}}") - .toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("krzvd", model.version()); - Assertions.assertEquals("cevbkk", model.connectVia().referenceName()); - Assertions.assertEquals("rpjspbi", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("wgkm").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedService model = new MongoDbV2LinkedService().withVersion("krzvd") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("cevbkk") - .withParameters(mapOf("gphhpwxghwwfqzw", "dataj", "xftyifadsliifdr", "datasmsqqmdajsqe"))) - .withDescription("rpjspbi") - .withParameters(mapOf("wgkm", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafooinpnrfvqgc"))) - .withAnnotations(Arrays.asList("datarewtfu", "datakts", "datanikcgittfmlpihte", "dataasjebrinv")) - .withConnectionString("datayhzyf") - .withDatabase("datau"); - model = BinaryData.fromObject(model).toObject(MongoDbV2LinkedService.class); - Assertions.assertEquals("krzvd", model.version()); - Assertions.assertEquals("cevbkk", model.connectVia().referenceName()); - Assertions.assertEquals("rpjspbi", model.description()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("wgkm").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 0bd1b9cd4aa2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2LinkedServiceTypePropertiesTests.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.MongoDbV2LinkedServiceTypeProperties; - -public final class MongoDbV2LinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2LinkedServiceTypeProperties model - = BinaryData.fromString("{\"connectionString\":\"datahmmgblqyfg\",\"database\":\"datab\"}") - .toObject(MongoDbV2LinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2LinkedServiceTypeProperties model - = new MongoDbV2LinkedServiceTypeProperties().withConnectionString("datahmmgblqyfg").withDatabase("datab"); - 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 790efe1172fd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbV2Sink; - -public final class MongoDbV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2Sink model = BinaryData.fromString( - "{\"type\":\"MongoDbV2Sink\",\"writeBehavior\":\"dataiwyox\",\"writeBatchSize\":\"dataitaawbsdeqqbdcbn\",\"writeBatchTimeout\":\"datarpnorymtgtnbm\",\"sinkRetryCount\":\"datapuwes\",\"sinkRetryWait\":\"dataod\",\"maxConcurrentConnections\":\"dataotrwldeinhn\",\"disableMetricsCollection\":\"datagmu\",\"\":{\"jukenkuyombkgk\":\"dataqnqmsiptzgom\",\"kzxrmmoy\":\"dataobuihprvokodrpy\",\"xoubekafdxgtgcfk\":\"dataufkxy\"}}") - .toObject(MongoDbV2Sink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Sink model = new MongoDbV2Sink().withWriteBatchSize("dataitaawbsdeqqbdcbn") - .withWriteBatchTimeout("datarpnorymtgtnbm") - .withSinkRetryCount("datapuwes") - .withSinkRetryWait("dataod") - .withMaxConcurrentConnections("dataotrwldeinhn") - .withDisableMetricsCollection("datagmu") - .withWriteBehavior("dataiwyox"); - 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 21fbc07dbb78..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MongoDbV2SourceTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MongoDbCursorMethodsProperties; -import com.azure.resourcemanager.datafactory.models.MongoDbV2Source; -import java.util.HashMap; -import java.util.Map; - -public final class MongoDbV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MongoDbV2Source model = BinaryData.fromString( - "{\"type\":\"MongoDbV2Source\",\"filter\":\"datasnmxvsrvkzvxlez\",\"cursorMethods\":{\"project\":\"dataybxehjkqog\",\"sort\":\"datafl\",\"skip\":\"dataspghfv\",\"limit\":\"dataijmyqosrsfaoc\",\"\":{\"dpyohnmru\":\"datarr\",\"eywbhxhawkwcf\":\"datavlwhtfscoups\"}},\"batchSize\":\"dataqexd\",\"queryTimeout\":\"datacvkwwjjotfun\",\"additionalColumns\":\"datauejxvrwalekqedof\",\"sourceRetryCount\":\"databxmlai\",\"sourceRetryWait\":\"datavhlpfjibblm\",\"maxConcurrentConnections\":\"datavzdaycmene\",\"disableMetricsCollection\":\"datayzlslvgqle\",\"\":{\"t\":\"datawbbellcjd\",\"dpmy\":\"datacvddfmflwfxdkp\"}}") - .toObject(MongoDbV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MongoDbV2Source model = new MongoDbV2Source().withSourceRetryCount("databxmlai") - .withSourceRetryWait("datavhlpfjibblm") - .withMaxConcurrentConnections("datavzdaycmene") - .withDisableMetricsCollection("datayzlslvgqle") - .withFilter("datasnmxvsrvkzvxlez") - .withCursorMethods(new MongoDbCursorMethodsProperties().withProject("dataybxehjkqog") - .withSort("datafl") - .withSkip("dataspghfv") - .withLimit("dataijmyqosrsfaoc") - .withAdditionalProperties(mapOf())) - .withBatchSize("dataqexd") - .withQueryTimeout("datacvkwwjjotfun") - .withAdditionalColumns("datauejxvrwalekqedof"); - 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 391e4ff47850..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MultiplePipelineTriggerTests.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.MultiplePipelineTrigger; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MultiplePipelineTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MultiplePipelineTrigger model = BinaryData.fromString( - "{\"type\":\"MultiplePipelineTrigger\",\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"pvnkhggaz\",\"name\":\"psypgmmieheqmte\"},\"parameters\":{\"eiihabojargetncf\":\"datawg\",\"aeefzlwo\":\"datajwjrpljkcqed\",\"lcno\":\"dataobaaccglvix\"}},{\"pipelineReference\":{\"referenceName\":\"qhbrdcgmyj\",\"name\":\"w\"},\"parameters\":{\"rvbzvi\":\"datab\",\"blrnur\":\"datakkt\",\"joshmmzotcpf\":\"dataandmusud\"}},{\"pipelineReference\":{\"referenceName\":\"ik\",\"name\":\"ifbeottvioone\"},\"parameters\":{\"wvatfa\":\"datazqbdutvnl\",\"ixobdqobngjbeihc\":\"datah\"}},{\"pipelineReference\":{\"referenceName\":\"kivryv\",\"name\":\"xnnirnfuvesmepq\"},\"parameters\":{\"wbtexigm\":\"datayptsvnotbenfshf\",\"isggn\":\"datadtjcyvmsduodpm\",\"pqwucprpw\":\"dataocqaejlebcy\",\"zdkcike\":\"datag\"}}],\"description\":\"mqialebct\",\"runtimeState\":\"Disabled\",\"annotations\":[\"dataepjsfhxh\",\"datalrekroyjdnzrcjok\"],\"\":{\"aoryefgwovyce\":\"dataydyzrrwlguesoi\"}}") - .toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("mqialebct", model.description()); - Assertions.assertEquals("pvnkhggaz", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("psypgmmieheqmte", model.pipelines().get(0).pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MultiplePipelineTrigger model = new MultiplePipelineTrigger().withDescription("mqialebct") - .withAnnotations(Arrays.asList("dataepjsfhxh", "datalrekroyjdnzrcjok")) - .withPipelines(Arrays.asList( - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("pvnkhggaz").withName("psypgmmieheqmte")) - .withParameters( - mapOf("eiihabojargetncf", "datawg", "aeefzlwo", "datajwjrpljkcqed", "lcno", "dataobaaccglvix")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("qhbrdcgmyj").withName("w")) - .withParameters(mapOf("rvbzvi", "datab", "blrnur", "datakkt", "joshmmzotcpf", "dataandmusud")), - new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("ik").withName("ifbeottvioone")) - .withParameters(mapOf("wvatfa", "datazqbdutvnl", "ixobdqobngjbeihc", "datah")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("kivryv").withName("xnnirnfuvesmepq")) - .withParameters(mapOf("wbtexigm", "datayptsvnotbenfshf", "isggn", "datadtjcyvmsduodpm", "pqwucprpw", - "dataocqaejlebcy", "zdkcike", "datag")))); - model = BinaryData.fromObject(model).toObject(MultiplePipelineTrigger.class); - Assertions.assertEquals("mqialebct", model.description()); - Assertions.assertEquals("pvnkhggaz", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("psypgmmieheqmte", 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 227805e0c743..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MySqlSource; - -public final class MySqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlSource model = BinaryData.fromString( - "{\"type\":\"MySqlSource\",\"query\":\"datajwgejakuz\",\"queryTimeout\":\"datawn\",\"additionalColumns\":\"datac\",\"sourceRetryCount\":\"datajgsyszdtgwmqcutk\",\"sourceRetryWait\":\"datarourtmccdejtoypl\",\"maxConcurrentConnections\":\"datavjutckfhmdcvlb\",\"disableMetricsCollection\":\"dataezvujpbmz\",\"\":{\"zpfoispchhvvmvs\":\"datagmuhxwkkbnhmdtj\"}}") - .toObject(MySqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlSource model = new MySqlSource().withSourceRetryCount("datajgsyszdtgwmqcutk") - .withSourceRetryWait("datarourtmccdejtoypl") - .withMaxConcurrentConnections("datavjutckfhmdcvlb") - .withDisableMetricsCollection("dataezvujpbmz") - .withQueryTimeout("datawn") - .withAdditionalColumns("datac") - .withQuery("datajwgejakuz"); - model = BinaryData.fromObject(model).toObject(MySqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java deleted file mode 100644 index 9c7f49e6fa34..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MySqlTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class MySqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlTableDataset model = BinaryData.fromString( - "{\"type\":\"MySqlTable\",\"typeProperties\":{\"tableName\":\"databgwzhbhflj\"},\"description\":\"od\",\"structure\":\"dataovnlhrwya\",\"schema\":\"datauafapwxsvdeatjio\",\"linkedServiceName\":{\"referenceName\":\"nirgoext\",\"parameters\":{\"tbsetko\":\"datawtgntimznupb\",\"aakghcrzmmmjyvdh\":\"datasqvhe\",\"etqjisjm\":\"datagdiwmlgstm\"}},\"parameters\":{\"kakhgkrv\":{\"type\":\"SecureString\",\"defaultValue\":\"dataq\"},\"ejqaw\":{\"type\":\"Object\",\"defaultValue\":\"datacvytv\"},\"pbbimh\":{\"type\":\"Float\",\"defaultValue\":\"dataqpfzxkczbd\"}},\"annotations\":[\"datazvoortc\",\"datanh\"],\"folder\":{\"name\":\"yuzly\"},\"\":{\"lkv\":\"datacibv\",\"nviulbylmgjzr\":\"datakcafnwqhawv\"}}") - .toObject(MySqlTableDataset.class); - Assertions.assertEquals("od", model.description()); - Assertions.assertEquals("nirgoext", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("kakhgkrv").type()); - Assertions.assertEquals("yuzly", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDataset model = new MySqlTableDataset().withDescription("od") - .withStructure("dataovnlhrwya") - .withSchema("datauafapwxsvdeatjio") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("nirgoext") - .withParameters(mapOf("tbsetko", "datawtgntimznupb", "aakghcrzmmmjyvdh", "datasqvhe", "etqjisjm", - "datagdiwmlgstm"))) - .withParameters(mapOf("kakhgkrv", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataq"), "ejqaw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacvytv"), "pbbimh", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqpfzxkczbd"))) - .withAnnotations(Arrays.asList("datazvoortc", "datanh")) - .withFolder(new DatasetFolder().withName("yuzly")) - .withTableName("databgwzhbhflj"); - model = BinaryData.fromObject(model).toObject(MySqlTableDataset.class); - Assertions.assertEquals("od", model.description()); - Assertions.assertEquals("nirgoext", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("kakhgkrv").type()); - Assertions.assertEquals("yuzly", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 0d791f816bda..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/MySqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.MySqlTableDatasetTypeProperties; - -public final class MySqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MySqlTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datawpbgumwhmxp\"}") - .toObject(MySqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MySqlTableDatasetTypeProperties model = new MySqlTableDatasetTypeProperties().withTableName("datawpbgumwhmxp"); - model = BinaryData.fromObject(model).toObject(MySqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaPartitionSettingsTests.java deleted file mode 100644 index f16538618560..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\":\"datavkdnfg\",\"partitionUpperBound\":\"dataxultxhqqvdhdyy\",\"partitionLowerBound\":\"datatx\"}") - .toObject(NetezzaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaPartitionSettings model = new NetezzaPartitionSettings().withPartitionColumnName("datavkdnfg") - .withPartitionUpperBound("dataxultxhqqvdhdyy") - .withPartitionLowerBound("datatx"); - 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 63a44930732d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.NetezzaPartitionSettings; -import com.azure.resourcemanager.datafactory.models.NetezzaSource; - -public final class NetezzaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaSource model = BinaryData.fromString( - "{\"type\":\"NetezzaSource\",\"query\":\"databuwauytq\",\"partitionOption\":\"datagaxloafws\",\"partitionSettings\":{\"partitionColumnName\":\"dataqr\",\"partitionUpperBound\":\"dataw\",\"partitionLowerBound\":\"dataipn\"},\"queryTimeout\":\"dataql\",\"additionalColumns\":\"datarhctbrvegdamoy\",\"sourceRetryCount\":\"datafjpkezqjizbyczme\",\"sourceRetryWait\":\"dataacgvlnpjjb\",\"maxConcurrentConnections\":\"datayrktuvdestarulnh\",\"disableMetricsCollection\":\"datatvyhsxhcrf\",\"\":{\"svzhlkeot\":\"dataexupcuizvx\",\"iy\":\"datascqkxzrfloqzmvem\",\"zhanvcf\":\"datadfqfnftrrhhgwaw\"}}") - .toObject(NetezzaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaSource model = new NetezzaSource().withSourceRetryCount("datafjpkezqjizbyczme") - .withSourceRetryWait("dataacgvlnpjjb") - .withMaxConcurrentConnections("datayrktuvdestarulnh") - .withDisableMetricsCollection("datatvyhsxhcrf") - .withQueryTimeout("dataql") - .withAdditionalColumns("datarhctbrvegdamoy") - .withQuery("databuwauytq") - .withPartitionOption("datagaxloafws") - .withPartitionSettings(new NetezzaPartitionSettings().withPartitionColumnName("dataqr") - .withPartitionUpperBound("dataw") - .withPartitionLowerBound("dataipn")); - model = BinaryData.fromObject(model).toObject(NetezzaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java deleted file mode 100644 index ac5a5da15eed..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.NetezzaTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class NetezzaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaTableDataset model = BinaryData.fromString( - "{\"type\":\"NetezzaTable\",\"typeProperties\":{\"tableName\":\"datamblmfcleuov\",\"table\":\"datavspr\",\"schema\":\"datajtez\"},\"description\":\"toudodexwmvs\",\"structure\":\"datajciexuwemtgtgeb\",\"schema\":\"datamcgsks\",\"linkedServiceName\":{\"referenceName\":\"bsxehaxicjojxol\",\"parameters\":{\"mbglmnlbnatln\":\"datahgwakptb\",\"jk\":\"datahzzcdkxortdzzvhb\",\"dzccqtwsrbfbsd\":\"datahophqwo\",\"vexrvnhhmfsnq\":\"dataicdzf\"}},\"parameters\":{\"sdzmhwtsyppwf\":{\"type\":\"String\",\"defaultValue\":\"datahlwvrs\"},\"aypxsazbxs\":{\"type\":\"Object\",\"defaultValue\":\"dataetxizrfwxhflgdun\"},\"tmprvgrandz\":{\"type\":\"Array\",\"defaultValue\":\"dataksznf\"},\"lhsfddkhxvev\":{\"type\":\"Array\",\"defaultValue\":\"dataomlpczlqboomzgmr\"}},\"annotations\":[\"datanbwaxadxgnp\",\"datahtuhalpq\",\"datald\"],\"folder\":{\"name\":\"kexznpnytkqjarl\"},\"\":{\"rmzoujfgt\":\"datatgtzpca\"}}") - .toObject(NetezzaTableDataset.class); - Assertions.assertEquals("toudodexwmvs", model.description()); - Assertions.assertEquals("bsxehaxicjojxol", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("sdzmhwtsyppwf").type()); - Assertions.assertEquals("kexznpnytkqjarl", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDataset model = new NetezzaTableDataset().withDescription("toudodexwmvs") - .withStructure("datajciexuwemtgtgeb") - .withSchema("datamcgsks") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bsxehaxicjojxol") - .withParameters(mapOf("mbglmnlbnatln", "datahgwakptb", "jk", "datahzzcdkxortdzzvhb", "dzccqtwsrbfbsd", - "datahophqwo", "vexrvnhhmfsnq", "dataicdzf"))) - .withParameters(mapOf("sdzmhwtsyppwf", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahlwvrs"), - "aypxsazbxs", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataetxizrfwxhflgdun"), - "tmprvgrandz", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataksznf"), - "lhsfddkhxvev", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataomlpczlqboomzgmr"))) - .withAnnotations(Arrays.asList("datanbwaxadxgnp", "datahtuhalpq", "datald")) - .withFolder(new DatasetFolder().withName("kexznpnytkqjarl")) - .withTableName("datamblmfcleuov") - .withTable("datavspr") - .withSchemaTypePropertiesSchema("datajtez"); - model = BinaryData.fromObject(model).toObject(NetezzaTableDataset.class); - Assertions.assertEquals("toudodexwmvs", model.description()); - Assertions.assertEquals("bsxehaxicjojxol", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("sdzmhwtsyppwf").type()); - Assertions.assertEquals("kexznpnytkqjarl", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java deleted file mode 100644 index 0fc9fe850e13..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NetezzaTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.NetezzaTableDatasetTypeProperties; - -public final class NetezzaTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetezzaTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datauupcze\",\"table\":\"datanaidvssv\",\"schema\":\"dataoggkztzttjnknpb\"}") - .toObject(NetezzaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetezzaTableDatasetTypeProperties model = new NetezzaTableDatasetTypeProperties().withTableName("datauupcze") - .withTable("datanaidvssv") - .withSchema("dataoggkztzttjnknpb"); - model = BinaryData.fromObject(model).toObject(NetezzaTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/NotebookParameterTests.java deleted file mode 100644 index c77ed368ff3a..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\":\"datavkmfkm\",\"type\":\"string\"}").toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.STRING, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NotebookParameter model - = new NotebookParameter().withValue("datavkmfkm").withType(NotebookParameterType.STRING); - model = BinaryData.fromObject(model).toObject(NotebookParameter.class); - Assertions.assertEquals(NotebookParameterType.STRING, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java deleted file mode 100644 index e024fed25a84..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ODataResourceDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ODataResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataResourceDataset model = BinaryData.fromString( - "{\"type\":\"ODataResource\",\"typeProperties\":{\"path\":\"dataepkwzzzkueruwcj\"},\"description\":\"ipvwkauj\",\"structure\":\"dataw\",\"schema\":\"dataox\",\"linkedServiceName\":{\"referenceName\":\"bwofxxdplr\",\"parameters\":{\"lbpxrhrfjenrazwe\":\"datakvgahcbtu\"}},\"parameters\":{\"jixy\":{\"type\":\"SecureString\",\"defaultValue\":\"datahqashtos\"},\"dwjtacfvvtd\":{\"type\":\"Object\",\"defaultValue\":\"datacigz\"}},\"annotations\":[\"datapzfomcsaugbr\",\"datafiwltkfysu\",\"datate\",\"datahkl\"],\"folder\":{\"name\":\"cvasyyh\"},\"\":{\"bmsrkix\":\"datak\",\"aqsy\":\"dataxxhwrlqo\"}}") - .toObject(ODataResourceDataset.class); - Assertions.assertEquals("ipvwkauj", model.description()); - Assertions.assertEquals("bwofxxdplr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("jixy").type()); - Assertions.assertEquals("cvasyyh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDataset model - = new ODataResourceDataset().withDescription("ipvwkauj") - .withStructure("dataw") - .withSchema("dataox") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bwofxxdplr") - .withParameters(mapOf("lbpxrhrfjenrazwe", "datakvgahcbtu"))) - .withParameters( - mapOf("jixy", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datahqashtos"), - "dwjtacfvvtd", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datacigz"))) - .withAnnotations(Arrays.asList("datapzfomcsaugbr", "datafiwltkfysu", "datate", "datahkl")) - .withFolder(new DatasetFolder().withName("cvasyyh")) - .withPath("dataepkwzzzkueruwcj"); - model = BinaryData.fromObject(model).toObject(ODataResourceDataset.class); - Assertions.assertEquals("ipvwkauj", model.description()); - Assertions.assertEquals("bwofxxdplr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("jixy").type()); - Assertions.assertEquals("cvasyyh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 2413c45ec4de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.ODataResourceDatasetTypeProperties; - -public final class ODataResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataResourceDatasetTypeProperties model - = BinaryData.fromString("{\"path\":\"datapzzbrwn\"}").toObject(ODataResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataResourceDatasetTypeProperties model = new ODataResourceDatasetTypeProperties().withPath("datapzzbrwn"); - model = BinaryData.fromObject(model).toObject(ODataResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java deleted file mode 100644 index ff4ed70d2a14..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ODataSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ODataSource; - -public final class ODataSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ODataSource model = BinaryData.fromString( - "{\"type\":\"ODataSource\",\"query\":\"datadgem\",\"httpRequestTimeout\":\"datayddzjtxlvgsl\",\"additionalColumns\":\"datalys\",\"sourceRetryCount\":\"datav\",\"sourceRetryWait\":\"dataak\",\"maxConcurrentConnections\":\"datapaexllt\",\"disableMetricsCollection\":\"datakkaei\",\"\":{\"vsrtqltawjkra\":\"datardns\"}}") - .toObject(ODataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ODataSource model = new ODataSource().withSourceRetryCount("datav") - .withSourceRetryWait("dataak") - .withMaxConcurrentConnections("datapaexllt") - .withDisableMetricsCollection("datakkaei") - .withQuery("datadgem") - .withHttpRequestTimeout("datayddzjtxlvgsl") - .withAdditionalColumns("datalys"); - 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 873c8610e2d6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OdbcSink; - -public final class OdbcSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcSink model = BinaryData.fromString( - "{\"type\":\"OdbcSink\",\"preCopyScript\":\"dataazy\",\"writeBatchSize\":\"datajbvqaey\",\"writeBatchTimeout\":\"datazb\",\"sinkRetryCount\":\"dataflxdwliitaieledm\",\"sinkRetryWait\":\"datapddletjiud\",\"maxConcurrentConnections\":\"dataktsgcypjlmsta\",\"disableMetricsCollection\":\"datarebecxuu\",\"\":{\"vtjxkttx\":\"datakluukxejamychwwr\",\"bfzaaiihyl\":\"datambedvvmrtnmg\",\"hlbpmplethek\":\"dataw\",\"oaac\":\"databnamtv\"}}") - .toObject(OdbcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSink model = new OdbcSink().withWriteBatchSize("datajbvqaey") - .withWriteBatchTimeout("datazb") - .withSinkRetryCount("dataflxdwliitaieledm") - .withSinkRetryWait("datapddletjiud") - .withMaxConcurrentConnections("dataktsgcypjlmsta") - .withDisableMetricsCollection("datarebecxuu") - .withPreCopyScript("dataazy"); - 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 ff0a850d7240..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OdbcSource; - -public final class OdbcSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcSource model = BinaryData.fromString( - "{\"type\":\"OdbcSource\",\"query\":\"dataejyavkyjvctq\",\"queryTimeout\":\"datacz\",\"additionalColumns\":\"datapaeyklxsvcbr\",\"sourceRetryCount\":\"datalt\",\"sourceRetryWait\":\"datamdsngoaofmrph\",\"maxConcurrentConnections\":\"datas\",\"disableMetricsCollection\":\"dataunkcgdnhacex\",\"\":{\"ffxan\":\"datamrrjooepfbas\",\"yp\":\"datagntjmnlpklrjd\",\"gnjatjbldgik\":\"datakvi\"}}") - .toObject(OdbcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcSource model = new OdbcSource().withSourceRetryCount("datalt") - .withSourceRetryWait("datamdsngoaofmrph") - .withMaxConcurrentConnections("datas") - .withDisableMetricsCollection("dataunkcgdnhacex") - .withQueryTimeout("datacz") - .withAdditionalColumns("datapaeyklxsvcbr") - .withQuery("dataejyavkyjvctq"); - model = BinaryData.fromObject(model).toObject(OdbcSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java deleted file mode 100644 index cdf63329b486..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OdbcTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OdbcTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcTableDataset model = BinaryData.fromString( - "{\"type\":\"OdbcTable\",\"typeProperties\":{\"tableName\":\"databfb\"},\"description\":\"ow\",\"structure\":\"dataljdkxhmewyaolc\",\"schema\":\"datax\",\"linkedServiceName\":{\"referenceName\":\"rdpuyytbpkrp\",\"parameters\":{\"nefnoafp\":\"dataetpo\"}},\"parameters\":{\"ufcmuajwblxp\":{\"type\":\"String\",\"defaultValue\":\"datayrxowv\"}},\"annotations\":[\"datazfrfaw\",\"datannsvrfajynihti\",\"dataufgzq\"],\"folder\":{\"name\":\"uctblfehbgcgyoh\"},\"\":{\"xonebldxagmd\":\"dataeqljxdumhy\",\"xjsjqu\":\"datajwcngk\",\"crzhnsbylg\":\"dataohufzdtsrpjuvgz\",\"nbfulv\":\"datagbhuqczou\"}}") - .toObject(OdbcTableDataset.class); - Assertions.assertEquals("ow", model.description()); - Assertions.assertEquals("rdpuyytbpkrp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ufcmuajwblxp").type()); - Assertions.assertEquals("uctblfehbgcgyoh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDataset model = new OdbcTableDataset().withDescription("ow") - .withStructure("dataljdkxhmewyaolc") - .withSchema("datax") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rdpuyytbpkrp") - .withParameters(mapOf("nefnoafp", "dataetpo"))) - .withParameters(mapOf("ufcmuajwblxp", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datayrxowv"))) - .withAnnotations(Arrays.asList("datazfrfaw", "datannsvrfajynihti", "dataufgzq")) - .withFolder(new DatasetFolder().withName("uctblfehbgcgyoh")) - .withTableName("databfb"); - model = BinaryData.fromObject(model).toObject(OdbcTableDataset.class); - Assertions.assertEquals("ow", model.description()); - Assertions.assertEquals("rdpuyytbpkrp", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ufcmuajwblxp").type()); - Assertions.assertEquals("uctblfehbgcgyoh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java deleted file mode 100644 index 468732663645..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OdbcTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OdbcTableDatasetTypeProperties; - -public final class OdbcTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OdbcTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"dataglxoqwbztilqb\"}") - .toObject(OdbcTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OdbcTableDatasetTypeProperties model = new OdbcTableDatasetTypeProperties().withTableName("dataglxoqwbztilqb"); - model = BinaryData.fromObject(model).toObject(OdbcTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java deleted file mode 100644 index b4ade61d499a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Office365Dataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class Office365DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365Dataset model = BinaryData.fromString( - "{\"type\":\"Office365Table\",\"typeProperties\":{\"tableName\":\"datactsmwpgweoqhbjq\",\"predicate\":\"datafblerufol\"},\"description\":\"shjucihbymjjvt\",\"structure\":\"dataerx\",\"schema\":\"dataeazr\",\"linkedServiceName\":{\"referenceName\":\"helhbimyi\",\"parameters\":{\"cthtpq\":\"dataa\",\"zkdiuvflgzhcw\":\"datafzdos\",\"g\":\"datagwahcrxo\"}},\"parameters\":{\"pmhz\":{\"type\":\"Float\",\"defaultValue\":\"datapccxziv\"},\"tujqzvhnjvpmxnh\":{\"type\":\"Float\",\"defaultValue\":\"datahkvnnj\"},\"lgxyf\":{\"type\":\"Array\",\"defaultValue\":\"datastqlfxolrwv\"},\"lzyyopoaytw\":{\"type\":\"SecureString\",\"defaultValue\":\"dataequ\"}},\"annotations\":[\"dataqubotbvuf\",\"datakwjiemimdtnpowe\"],\"folder\":{\"name\":\"kreeeddd\"},\"\":{\"igeeuwbr\":\"datafquulpclhs\",\"netdqw\":\"dataqyxfed\"}}") - .toObject(Office365Dataset.class); - Assertions.assertEquals("shjucihbymjjvt", model.description()); - Assertions.assertEquals("helhbimyi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("pmhz").type()); - Assertions.assertEquals("kreeeddd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Dataset model = new Office365Dataset().withDescription("shjucihbymjjvt") - .withStructure("dataerx") - .withSchema("dataeazr") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("helhbimyi") - .withParameters(mapOf("cthtpq", "dataa", "zkdiuvflgzhcw", "datafzdos", "g", "datagwahcrxo"))) - .withParameters(mapOf("pmhz", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datapccxziv"), - "tujqzvhnjvpmxnh", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datahkvnnj"), "lgxyf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datastqlfxolrwv"), - "lzyyopoaytw", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataequ"))) - .withAnnotations(Arrays.asList("dataqubotbvuf", "datakwjiemimdtnpowe")) - .withFolder(new DatasetFolder().withName("kreeeddd")) - .withTableName("datactsmwpgweoqhbjq") - .withPredicate("datafblerufol"); - model = BinaryData.fromObject(model).toObject(Office365Dataset.class); - Assertions.assertEquals("shjucihbymjjvt", model.description()); - Assertions.assertEquals("helhbimyi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("pmhz").type()); - Assertions.assertEquals("kreeeddd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java deleted file mode 100644 index 757ef6e4bf24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365DatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Office365DatasetTypeProperties; - -public final class Office365DatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365DatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datanxoqgv\",\"predicate\":\"datapgg\"}") - .toObject(Office365DatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365DatasetTypeProperties model - = new Office365DatasetTypeProperties().withTableName("datanxoqgv").withPredicate("datapgg"); - model = BinaryData.fromObject(model).toObject(Office365DatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java deleted file mode 100644 index f9f7de8a75e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/Office365SourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Office365Source; - -public final class Office365SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Office365Source model = BinaryData.fromString( - "{\"type\":\"Office365Source\",\"allowedGroups\":\"dataqttfqgdoowgqooip\",\"userScopeFilterUri\":\"datasvsnedhkj\",\"dateFilterColumn\":\"datafvetwfreqvfl\",\"startTime\":\"datatjuuikqzdcwqal\",\"endTime\":\"datamiytpjiscisol\",\"outputColumns\":\"dataipvlsljutawgyl\",\"sourceRetryCount\":\"datadrfclehlop\",\"sourceRetryWait\":\"datavpeaeyjl\",\"maxConcurrentConnections\":\"dataduxhopyavcb\",\"disableMetricsCollection\":\"dataembvfa\",\"\":{\"xzrycvacspzj\":\"datajoazyxmumfbk\"}}") - .toObject(Office365Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Office365Source model = new Office365Source().withSourceRetryCount("datadrfclehlop") - .withSourceRetryWait("datavpeaeyjl") - .withMaxConcurrentConnections("dataduxhopyavcb") - .withDisableMetricsCollection("dataembvfa") - .withAllowedGroups("dataqttfqgdoowgqooip") - .withUserScopeFilterUri("datasvsnedhkj") - .withDateFilterColumn("datafvetwfreqvfl") - .withStartTime("datatjuuikqzdcwqal") - .withEndTime("datamiytpjiscisol") - .withOutputColumns("dataipvlsljutawgyl"); - 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 76c940f7a3ec..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"ednmqxba\",\"origin\":\"vxejicpmglcvmuqx\",\"display\":{\"description\":\"nkjrtcifxled\",\"provider\":\"ugai\",\"resource\":\"vsj\",\"operation\":\"mnvtpbohzc\"},\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"aqfvplfy\",\"displayName\":\"b\",\"blobDuration\":\"zshmqnnbbvq\"},{\"name\":\"wuwxtqdtvejilq\",\"displayName\":\"jxpro\",\"blobDuration\":\"yddrs\"},{\"name\":\"rxnweiytkeqjviaw\",\"displayName\":\"vbc\",\"blobDuration\":\"heelmiuprfqyrwtd\"},{\"name\":\"xr\",\"displayName\":\"ewdfualgkfoj\",\"blobDuration\":\"mdtuyimdoprkpdg\"}],\"metricSpecifications\":[{\"name\":\"tbebxjedy\",\"displayName\":\"ngnhoxbpq\",\"displayDescription\":\"aavxxv\",\"unit\":\"spptxdra\",\"aggregationType\":\"hqwfrtbvqtog\",\"enableRegionalMdmAccount\":\"devkntyguqsq\",\"sourceMdmAccount\":\"rentjyamijg\",\"sourceMdmNamespace\":\"izvvwyhszewhzaiu\",\"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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ednmqxba", response.iterator().next().name()); - Assertions.assertEquals("vxejicpmglcvmuqx", response.iterator().next().origin()); - Assertions.assertEquals("nkjrtcifxled", response.iterator().next().display().description()); - Assertions.assertEquals("ugai", response.iterator().next().display().provider()); - Assertions.assertEquals("vsj", response.iterator().next().display().resource()); - Assertions.assertEquals("mnvtpbohzc", response.iterator().next().display().operation()); - Assertions.assertEquals("aqfvplfy", - response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("b", - response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("zshmqnnbbvq", - response.iterator().next().serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("tbebxjedy", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("ngnhoxbpq", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("aavxxv", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("spptxdra", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("hqwfrtbvqtog", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("devkntyguqsq", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("rentjyamijg", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("izvvwyhszewhzaiu", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java deleted file mode 100644 index 941c291e749b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageLocationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleCloudStorageLocation; - -public final class OracleCloudStorageLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleCloudStorageLocation model = BinaryData.fromString( - "{\"type\":\"OracleCloudStorageLocation\",\"bucketName\":\"datajcxfno\",\"version\":\"dataegjdydhqkk\",\"folderPath\":\"datajuck\",\"fileName\":\"datatuqbhp\",\"\":{\"tpzdlyseidto\":\"datan\",\"d\":\"datakatprytgrhzbq\",\"rptvcshtkutzcttb\":\"datafa\"}}") - .toObject(OracleCloudStorageLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageLocation model = new OracleCloudStorageLocation().withFolderPath("datajuck") - .withFileName("datatuqbhp") - .withBucketName("datajcxfno") - .withVersion("dataegjdydhqkk"); - model = BinaryData.fromObject(model).toObject(OracleCloudStorageLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java deleted file mode 100644 index 4633c462c2b2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleCloudStorageReadSettingsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleCloudStorageReadSettings; - -public final class OracleCloudStorageReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleCloudStorageReadSettings model = BinaryData.fromString( - "{\"type\":\"OracleCloudStorageReadSettings\",\"recursive\":\"datacoeb\",\"wildcardFolderPath\":\"dataxx\",\"wildcardFileName\":\"datalqrvbcgsaa\",\"prefix\":\"dataypxeqedftkig\",\"fileListPath\":\"datan\",\"enablePartitionDiscovery\":\"datatvzyvzixmusiidi\",\"partitionRootPath\":\"databrtzfliqntnoeg\",\"deleteFilesAfterCompletion\":\"dataqpuclid\",\"modifiedDatetimeStart\":\"datawdaiexisapygii\",\"modifiedDatetimeEnd\":\"datakaffzz\",\"maxConcurrentConnections\":\"dataivfiypfvwyzjsi\",\"disableMetricsCollection\":\"datarvigrxmptufde\",\"\":{\"mlyx\":\"dataqghxdpgihf\",\"oucmfuvuslvbujwp\":\"datamixjudbiacu\",\"ruhqymwdsthktsal\":\"datazijpyyve\",\"vthiva\":\"datakhlpgtpgxkkoypxw\"}}") - .toObject(OracleCloudStorageReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleCloudStorageReadSettings model - = new OracleCloudStorageReadSettings().withMaxConcurrentConnections("dataivfiypfvwyzjsi") - .withDisableMetricsCollection("datarvigrxmptufde") - .withRecursive("datacoeb") - .withWildcardFolderPath("dataxx") - .withWildcardFileName("datalqrvbcgsaa") - .withPrefix("dataypxeqedftkig") - .withFileListPath("datan") - .withEnablePartitionDiscovery("datatvzyvzixmusiidi") - .withPartitionRootPath("databrtzfliqntnoeg") - .withDeleteFilesAfterCompletion("dataqpuclid") - .withModifiedDatetimeStart("datawdaiexisapygii") - .withModifiedDatetimeEnd("datakaffzz"); - 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 4d5d31a18808..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\":\"dataihgk\",\"partitionColumnName\":\"datawzuo\",\"partitionUpperBound\":\"datayxlrd\",\"partitionLowerBound\":\"dataudfar\"}") - .toObject(OraclePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OraclePartitionSettings model = new OraclePartitionSettings().withPartitionNames("dataihgk") - .withPartitionColumnName("datawzuo") - .withPartitionUpperBound("datayxlrd") - .withPartitionLowerBound("dataudfar"); - model = BinaryData.fromObject(model).toObject(OraclePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java deleted file mode 100644 index 49996a3a61e0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudObjectDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OracleServiceCloudObjectDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OracleServiceCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleServiceCloudObjectDataset model = BinaryData.fromString( - "{\"type\":\"OracleServiceCloudObject\",\"typeProperties\":{\"tableName\":\"datasyajmmczupd\"},\"description\":\"grufsdbkuxkdi\",\"structure\":\"datagsivxwkscwbsh\",\"schema\":\"datahvlms\",\"linkedServiceName\":{\"referenceName\":\"eylaulpuexy\",\"parameters\":{\"lspgnndefyhsb\":\"dataztyecxd\",\"ltaprq\":\"datahwlvsvs\",\"cuhbgftfvqukkmvz\":\"datafkmvzrkpmonxdw\",\"dqrjylwqqsemjhh\":\"dataneg\"}},\"parameters\":{\"tdpfz\":{\"type\":\"String\",\"defaultValue\":\"dataehztbejrdzwy\"},\"mjkykqflkm\":{\"type\":\"Bool\",\"defaultValue\":\"dataifnjwj\"},\"hc\":{\"type\":\"Bool\",\"defaultValue\":\"dataxmysmkbndnrihpja\"},\"ig\":{\"type\":\"Object\",\"defaultValue\":\"datajn\"}},\"annotations\":[\"datalkrnpsbnmrmhkip\"],\"folder\":{\"name\":\"dvdpfgwdxm\"},\"\":{\"unddvjlpbjszqj\":\"datalnpbiec\",\"ypbrzwi\":\"dataskjvaycxrwknsbg\",\"cebtpgvut\":\"datapzcyhk\"}}") - .toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("grufsdbkuxkdi", model.description()); - Assertions.assertEquals("eylaulpuexy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tdpfz").type()); - Assertions.assertEquals("dvdpfgwdxm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudObjectDataset model = new OracleServiceCloudObjectDataset().withDescription("grufsdbkuxkdi") - .withStructure("datagsivxwkscwbsh") - .withSchema("datahvlms") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("eylaulpuexy") - .withParameters(mapOf("lspgnndefyhsb", "dataztyecxd", "ltaprq", "datahwlvsvs", "cuhbgftfvqukkmvz", - "datafkmvzrkpmonxdw", "dqrjylwqqsemjhh", "dataneg"))) - .withParameters(mapOf("tdpfz", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataehztbejrdzwy"), - "mjkykqflkm", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataifnjwj"), - "hc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataxmysmkbndnrihpja"), - "ig", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datajn"))) - .withAnnotations(Arrays.asList("datalkrnpsbnmrmhkip")) - .withFolder(new DatasetFolder().withName("dvdpfgwdxm")) - .withTableName("datasyajmmczupd"); - model = BinaryData.fromObject(model).toObject(OracleServiceCloudObjectDataset.class); - Assertions.assertEquals("grufsdbkuxkdi", model.description()); - Assertions.assertEquals("eylaulpuexy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("tdpfz").type()); - Assertions.assertEquals("dvdpfgwdxm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java deleted file mode 100644 index a5e49c02c6db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleServiceCloudSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleServiceCloudSource; - -public final class OracleServiceCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleServiceCloudSource model = BinaryData.fromString( - "{\"type\":\"OracleServiceCloudSource\",\"query\":\"datanazjvyiiezdnez\",\"queryTimeout\":\"dataqzd\",\"additionalColumns\":\"datamyutzttroymi\",\"sourceRetryCount\":\"datakuz\",\"sourceRetryWait\":\"datacegyztzhcfuwm\",\"maxConcurrentConnections\":\"dataz\",\"disableMetricsCollection\":\"datamklroogflh\",\"\":{\"yokjwsszyetwoukd\":\"datapxb\",\"jihnzvoeh\":\"datanferdg\",\"kghg\":\"datawgqgc\",\"hvnexnwxqwcx\":\"datazjxouxigdwpgmh\"}}") - .toObject(OracleServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleServiceCloudSource model = new OracleServiceCloudSource().withSourceRetryCount("datakuz") - .withSourceRetryWait("datacegyztzhcfuwm") - .withMaxConcurrentConnections("dataz") - .withDisableMetricsCollection("datamklroogflh") - .withQueryTimeout("dataqzd") - .withAdditionalColumns("datamyutzttroymi") - .withQuery("datanazjvyiiezdnez"); - 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 dd7341d5db0e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSinkTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OracleSink; - -public final class OracleSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleSink model = BinaryData.fromString( - "{\"type\":\"OracleSink\",\"preCopyScript\":\"datawvmsfnsyx\",\"writeBatchSize\":\"datadfqqzhqgmoexgnyu\",\"writeBatchTimeout\":\"dataasgheicexdxhxpq\",\"sinkRetryCount\":\"datastynjx\",\"sinkRetryWait\":\"datadxrofwct\",\"maxConcurrentConnections\":\"datadbi\",\"disableMetricsCollection\":\"datadktio\",\"\":{\"rwtakn\":\"datafaekpxvetdrcmts\",\"oskwujhskxx\":\"datalxrrf\"}}") - .toObject(OracleSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSink model = new OracleSink().withWriteBatchSize("datadfqqzhqgmoexgnyu") - .withWriteBatchTimeout("dataasgheicexdxhxpq") - .withSinkRetryCount("datastynjx") - .withSinkRetryWait("datadxrofwct") - .withMaxConcurrentConnections("datadbi") - .withDisableMetricsCollection("datadktio") - .withPreCopyScript("datawvmsfnsyx"); - 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 baa338584bdd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleSourceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OraclePartitionSettings; -import com.azure.resourcemanager.datafactory.models.OracleSource; - -public final class OracleSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleSource model = BinaryData.fromString( - "{\"type\":\"OracleSource\",\"oracleReaderQuery\":\"datarnknnql\",\"queryTimeout\":\"datagyeyxmuwgnwxtm\",\"partitionOption\":\"datagencmoswcxlg\",\"partitionSettings\":{\"partitionNames\":\"dataqxewsvqpifza\",\"partitionColumnName\":\"datatywap\",\"partitionUpperBound\":\"dataczprzrsqcu\",\"partitionLowerBound\":\"datanp\"},\"additionalColumns\":\"dataqlanuhmsrnp\",\"sourceRetryCount\":\"dataaghoeqiwpdxpd\",\"sourceRetryWait\":\"dataoajqxyplhsto\",\"maxConcurrentConnections\":\"datayb\",\"disableMetricsCollection\":\"dataysvpikgqjdog\",\"\":{\"qpsiniidaxbesb\":\"datajfgyivsiirxcxp\",\"zyjchduasjrseqp\":\"datac\"}}") - .toObject(OracleSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleSource model = new OracleSource().withSourceRetryCount("dataaghoeqiwpdxpd") - .withSourceRetryWait("dataoajqxyplhsto") - .withMaxConcurrentConnections("datayb") - .withDisableMetricsCollection("dataysvpikgqjdog") - .withOracleReaderQuery("datarnknnql") - .withQueryTimeout("datagyeyxmuwgnwxtm") - .withPartitionOption("datagencmoswcxlg") - .withPartitionSettings(new OraclePartitionSettings().withPartitionNames("dataqxewsvqpifza") - .withPartitionColumnName("datatywap") - .withPartitionUpperBound("dataczprzrsqcu") - .withPartitionLowerBound("datanp")) - .withAdditionalColumns("dataqlanuhmsrnp"); - model = BinaryData.fromObject(model).toObject(OracleSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java deleted file mode 100644 index bc57c556c7eb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.OracleTableDataset; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OracleTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleTableDataset model = BinaryData.fromString( - "{\"type\":\"OracleTable\",\"typeProperties\":{\"tableName\":\"datazsxagysokli\",\"schema\":\"datas\",\"table\":\"datavrrbnhy\"},\"description\":\"bhujcydyl\",\"structure\":\"dataxvpstizsyqagqll\",\"schema\":\"datar\",\"linkedServiceName\":{\"referenceName\":\"aidyl\",\"parameters\":{\"jrnogykugdl\":\"datatrrqwfyybptm\",\"gthkslgeu\":\"datavsa\"}},\"parameters\":{\"lajybdnb\":{\"type\":\"String\",\"defaultValue\":\"databfbxj\"},\"zdjmofsvpzxgny\":{\"type\":\"String\",\"defaultValue\":\"databtois\"},\"ymg\":{\"type\":\"String\",\"defaultValue\":\"dataymlf\"}},\"annotations\":[\"dataszcfyzqpeqreg\",\"dataurd\"],\"folder\":{\"name\":\"knxmaovrgihlnz\"},\"\":{\"yafwtyd\":\"datawvqkycjcgeipqxxs\",\"hg\":\"datamma\",\"adj\":\"datalejqzhpvhxp\",\"qscjpvqerqxk\":\"dataeullgfyog\"}}") - .toObject(OracleTableDataset.class); - Assertions.assertEquals("bhujcydyl", model.description()); - Assertions.assertEquals("aidyl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("lajybdnb").type()); - Assertions.assertEquals("knxmaovrgihlnz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDataset model = new OracleTableDataset().withDescription("bhujcydyl") - .withStructure("dataxvpstizsyqagqll") - .withSchema("datar") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("aidyl") - .withParameters(mapOf("jrnogykugdl", "datatrrqwfyybptm", "gthkslgeu", "datavsa"))) - .withParameters(mapOf("lajybdnb", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databfbxj"), - "zdjmofsvpzxgny", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databtois"), "ymg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataymlf"))) - .withAnnotations(Arrays.asList("dataszcfyzqpeqreg", "dataurd")) - .withFolder(new DatasetFolder().withName("knxmaovrgihlnz")) - .withTableName("datazsxagysokli") - .withSchemaTypePropertiesSchema("datas") - .withTable("datavrrbnhy"); - model = BinaryData.fromObject(model).toObject(OracleTableDataset.class); - Assertions.assertEquals("bhujcydyl", model.description()); - Assertions.assertEquals("aidyl", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("lajybdnb").type()); - Assertions.assertEquals("knxmaovrgihlnz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java deleted file mode 100644 index ca938b621ded..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OracleTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.OracleTableDatasetTypeProperties; - -public final class OracleTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OracleTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datawdzpzl\",\"schema\":\"datauexlqpww\",\"table\":\"databjecfwl\"}") - .toObject(OracleTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OracleTableDatasetTypeProperties model = new OracleTableDatasetTypeProperties().withTableName("datawdzpzl") - .withSchema("datauexlqpww") - .withTable("databjecfwl"); - model = BinaryData.fromObject(model).toObject(OracleTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java deleted file mode 100644 index e0cf01cbcfb3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcFormatTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcFormat; - -public final class OrcFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcFormat model = BinaryData.fromString( - "{\"type\":\"OrcFormat\",\"serializer\":\"dataanzbjekwuyckyvn\",\"deserializer\":\"datasmuffiwjb\",\"\":{\"scsl\":\"databpzujqjtotdxp\"}}") - .toObject(OrcFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcFormat model = new OrcFormat().withSerializer("dataanzbjekwuyckyvn").withDeserializer("datasmuffiwjb"); - model = BinaryData.fromObject(model).toObject(OrcFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java deleted file mode 100644 index 296d6f27d912..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSinkTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.MetadataItem; -import com.azure.resourcemanager.datafactory.models.OrcSink; -import com.azure.resourcemanager.datafactory.models.OrcWriteSettings; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class OrcSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcSink model = BinaryData.fromString( - "{\"type\":\"OrcSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datayrsfjjsoyusrbu\",\"disableMetricsCollection\":\"dataeyhknttkdrbleh\",\"copyBehavior\":\"datajsti\",\"metadata\":[{\"name\":\"datasbijikjf\",\"value\":\"databuwhbpojuj\"}],\"\":{\"viwxola\":\"dataxtgrxavfj\"}},\"formatSettings\":{\"type\":\"OrcWriteSettings\",\"maxRowsPerFile\":\"datawchphovuvrs\",\"fileNamePrefix\":\"datawcxl\",\"\":{\"dkbd\":\"datahywfvyriawfwws\",\"cortox\":\"datazsspfwm\",\"dok\":\"datathjyyirybuqmkm\"}},\"writeBatchSize\":\"datayilho\",\"writeBatchTimeout\":\"datatdioxgsrhxoyrgv\",\"sinkRetryCount\":\"datacctm\",\"sinkRetryWait\":\"datalbpl\",\"maxConcurrentConnections\":\"databrarukdep\",\"disableMetricsCollection\":\"dataufyqcqfouhyeyxg\",\"\":{\"pwwsiooz\":\"dataochpxps\",\"v\":\"dataugbdkxlwck\",\"sgkeexsozpkvy\":\"datazkzjjtapvqjebtd\"}}") - .toObject(OrcSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSink model = new OrcSink().withWriteBatchSize("datayilho") - .withWriteBatchTimeout("datatdioxgsrhxoyrgv") - .withSinkRetryCount("datacctm") - .withSinkRetryWait("datalbpl") - .withMaxConcurrentConnections("databrarukdep") - .withDisableMetricsCollection("dataufyqcqfouhyeyxg") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datayrsfjjsoyusrbu") - .withDisableMetricsCollection("dataeyhknttkdrbleh") - .withCopyBehavior("datajsti") - .withMetadata(Arrays.asList(new MetadataItem().withName("datasbijikjf").withValue("databuwhbpojuj"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings( - new OrcWriteSettings().withMaxRowsPerFile("datawchphovuvrs").withFileNamePrefix("datawcxl")); - 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 c619d7f6d935..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcSourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class OrcSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcSource model = BinaryData.fromString( - "{\"type\":\"OrcSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataqwqcxyiqppacj\",\"disableMetricsCollection\":\"datarllacylbtkxe\",\"\":{\"exaug\":\"datagnlaaxt\"}},\"additionalColumns\":\"datavgjezrwbobawlnt\",\"sourceRetryCount\":\"datah\",\"sourceRetryWait\":\"datatvxghbehhe\",\"maxConcurrentConnections\":\"datatqorrvwl\",\"disableMetricsCollection\":\"dataojlyu\",\"\":{\"s\":\"datavgjirjkkrsyf\",\"vjmandrvvjokl\":\"datartkevimrupg\",\"jlpkocrexfmqfuf\":\"datafvtzdtwx\"}}") - .toObject(OrcSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcSource model = new OrcSource().withSourceRetryCount("datah") - .withSourceRetryWait("datatvxghbehhe") - .withMaxConcurrentConnections("datatqorrvwl") - .withDisableMetricsCollection("dataojlyu") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataqwqcxyiqppacj") - .withDisableMetricsCollection("datarllacylbtkxe") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withAdditionalColumns("datavgjezrwbobawlnt"); - 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 e042b6dae7ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/OrcWriteSettingsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.OrcWriteSettings; - -public final class OrcWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrcWriteSettings model = BinaryData.fromString( - "{\"type\":\"OrcWriteSettings\",\"maxRowsPerFile\":\"datadjomddadwosjxyww\",\"fileNamePrefix\":\"datalkyh\",\"\":{\"jenbxtkghrrx\":\"dataiyhdbbjgsjmcybrp\",\"kizyx\":\"datauuhdk\"}}") - .toObject(OrcWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OrcWriteSettings model - = new OrcWriteSettings().withMaxRowsPerFile("datadjomddadwosjxyww").withFileNamePrefix("datalkyh"); - 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 a886ad395e14..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\":\"emkrhbsdgktluifi\",\"packageStoreLinkedService\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"cpenobqysbees\"}}") - .toObject(PackageStore.class); - Assertions.assertEquals("emkrhbsdgktluifi", model.name()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("cpenobqysbees", model.packageStoreLinkedService().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PackageStore model = new PackageStore().withName("emkrhbsdgktluifi") - .withPackageStoreLinkedService( - new EntityReference().withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("cpenobqysbees")); - model = BinaryData.fromObject(model).toObject(PackageStore.class); - Assertions.assertEquals("emkrhbsdgktluifi", model.name()); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, - model.packageStoreLinkedService().type()); - Assertions.assertEquals("cpenobqysbees", model.packageStoreLinkedService().referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java deleted file mode 100644 index b0b8b62265ca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParameterSpecificationTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import org.junit.jupiter.api.Assertions; - -public final class ParameterSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParameterSpecification model = BinaryData.fromString("{\"type\":\"Bool\",\"defaultValue\":\"dataouyftaakc\"}") - .toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.BOOL, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParameterSpecification model - = new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataouyftaakc"); - model = BinaryData.fromObject(model).toObject(ParameterSpecification.class); - Assertions.assertEquals(ParameterType.BOOL, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java deleted file mode 100644 index a5a49e04760d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetFormatTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetFormat; - -public final class ParquetFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetFormat model = BinaryData.fromString( - "{\"type\":\"ParquetFormat\",\"serializer\":\"datauusiecktybh\",\"deserializer\":\"dataxidhhxomil\",\"\":{\"il\":\"datajxdugxwj\"}}") - .toObject(ParquetFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetFormat model = new ParquetFormat().withSerializer("datauusiecktybh").withDeserializer("dataxidhhxomil"); - model = BinaryData.fromObject(model).toObject(ParquetFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetReadSettingsTests.java deleted file mode 100644 index 4103fcd36e4a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.ParquetReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ParquetReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetReadSettings model = BinaryData.fromString( - "{\"type\":\"ParquetReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"whmmwbvrpajb\":\"dataqbknoxjhe\",\"igifino\":\"dataigxxrezpuzk\",\"ooa\":\"datasdtlpshxjhans\",\"al\":\"datacnkgqsqvfyokss\"}},\"\":{\"ltuy\":\"datalxj\",\"anddlvccuvc\":\"datanaaqhsc\",\"jgdjvyclas\":\"dataaflsb\",\"qczpkooaolthow\":\"dataprknupfteklgsnp\"}}") - .toObject(ParquetReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetReadSettings model = new ParquetReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))); - model = BinaryData.fromObject(model).toObject(ParquetReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSinkTests.java deleted file mode 100644 index 12aa20441461..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\":\"ParquetSink\",\"storeSettings\":{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"datakzyebpa\",\"disableMetricsCollection\":\"datab\",\"copyBehavior\":\"datajd\",\"metadata\":[{\"name\":\"datawohlcahhf\",\"value\":\"datadgdhitavgayuspzl\"}],\"\":{\"epwkhruzzwgbbo\":\"databpduzeebde\",\"sxsqq\":\"dataivfoyqvnlhsxe\",\"dukp\":\"datavvscbpkmo\"}},\"formatSettings\":{\"type\":\"ParquetWriteSettings\",\"maxRowsPerFile\":\"dataibwuzvmorsyi\",\"fileNamePrefix\":\"datakxazuboigor\",\"\":{\"nzpvjwegoviceq\":\"databjzdvaqoilgkz\",\"jdvv\":\"datar\"}},\"writeBatchSize\":\"dataatyypercazcchv\",\"writeBatchTimeout\":\"datacha\",\"sinkRetryCount\":\"datatvotfhhayfxkf\",\"sinkRetryWait\":\"dataxefzliguw\",\"maxConcurrentConnections\":\"dataszcmfmynljigjc\",\"disableMetricsCollection\":\"dataa\",\"\":{\"nrvjbnhbxvvu\":\"datativsknewpnp\",\"kj\":\"dataq\"}}") - .toObject(ParquetSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSink model = new ParquetSink().withWriteBatchSize("dataatyypercazcchv") - .withWriteBatchTimeout("datacha") - .withSinkRetryCount("datatvotfhhayfxkf") - .withSinkRetryWait("dataxefzliguw") - .withMaxConcurrentConnections("dataszcmfmynljigjc") - .withDisableMetricsCollection("dataa") - .withStoreSettings(new StoreWriteSettings().withMaxConcurrentConnections("datakzyebpa") - .withDisableMetricsCollection("datab") - .withCopyBehavior("datajd") - .withMetadata( - Arrays.asList(new MetadataItem().withName("datawohlcahhf").withValue("datadgdhitavgayuspzl"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings"))) - .withFormatSettings(new ParquetWriteSettings().withMaxRowsPerFile("dataibwuzvmorsyi") - .withFileNamePrefix("datakxazuboigor")); - 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 1b6339e82d3e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetSourceTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.ParquetReadSettings; -import com.azure.resourcemanager.datafactory.models.ParquetSource; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class ParquetSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetSource model = BinaryData.fromString( - "{\"type\":\"ParquetSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"dataiojsrhgpi\",\"disableMetricsCollection\":\"dataeuvwysbme\",\"\":{\"hbkup\":\"databznl\"}},\"formatSettings\":{\"type\":\"ParquetReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"yyjvzlscyz\":\"dataftvyzuyqzjfvb\",\"bs\":\"datavsxmyzss\",\"az\":\"dataqhei\",\"a\":\"databmm\"}},\"\":{\"vhok\":\"dataxwqiparctsheggt\"}},\"additionalColumns\":\"datafawhoosrsol\",\"sourceRetryCount\":\"datavmf\",\"sourceRetryWait\":\"datajbgiq\",\"maxConcurrentConnections\":\"datapelnud\",\"disableMetricsCollection\":\"dataierxxorsdvui\",\"\":{\"jllfgmdoaihl\":\"datak\"}}") - .toObject(ParquetSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetSource model = new ParquetSource().withSourceRetryCount("datavmf") - .withSourceRetryWait("datajbgiq") - .withMaxConcurrentConnections("datapelnud") - .withDisableMetricsCollection("dataierxxorsdvui") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("dataiojsrhgpi") - .withDisableMetricsCollection("dataeuvwysbme") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new ParquetReadSettings().withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings")))) - .withAdditionalColumns("datafawhoosrsol"); - 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 3643447c5f47..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ParquetWriteSettingsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ParquetWriteSettings; - -public final class ParquetWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ParquetWriteSettings model = BinaryData.fromString( - "{\"type\":\"ParquetWriteSettings\",\"maxRowsPerFile\":\"dataxnhubjwipfry\",\"fileNamePrefix\":\"datapezzyrpdxyg\",\"\":{\"dmmowftfrqebrjo\":\"dataxsemezk\",\"dnrdsdkvhuiad\":\"dataotefekfxmgjyww\",\"adokuqnkoskflnj\":\"datahodisypgapfdwhwb\"}}") - .toObject(ParquetWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ParquetWriteSettings model - = new ParquetWriteSettings().withMaxRowsPerFile("dataxnhubjwipfry").withFileNamePrefix("datapezzyrpdxyg"); - model = BinaryData.fromObject(model).toObject(ParquetWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java deleted file mode 100644 index 004f28c4cb27..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PaypalObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PaypalObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PaypalObjectDataset model = BinaryData.fromString( - "{\"type\":\"PaypalObject\",\"typeProperties\":{\"tableName\":\"dataamqobqehs\"},\"description\":\"htisyzfeoctr\",\"structure\":\"datawn\",\"schema\":\"datackze\",\"linkedServiceName\":{\"referenceName\":\"mbvwdxgy\",\"parameters\":{\"atkuhskegd\":\"dataxqzlmlnxr\",\"l\":\"datavvi\"}},\"parameters\":{\"pbusxy\":{\"type\":\"Int\",\"defaultValue\":\"dataxfzzjdm\"},\"kkbyg\":{\"type\":\"String\",\"defaultValue\":\"datazwplxzgzumnotii\"},\"wyshybbnhtt\":{\"type\":\"Array\",\"defaultValue\":\"dataq\"}},\"annotations\":[\"dataonzsurqcoj\",\"datasfzhzzcarciuoxyi\",\"datadthjfvnhwsgnsput\",\"datae\"],\"folder\":{\"name\":\"hnu\"},\"\":{\"h\":\"datajgbfbba\",\"vkbuxlepg\":\"dataxczzunfnbphcee\",\"tfsclgga\":\"datacnuqhqpvtw\"}}") - .toObject(PaypalObjectDataset.class); - Assertions.assertEquals("htisyzfeoctr", model.description()); - Assertions.assertEquals("mbvwdxgy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("pbusxy").type()); - Assertions.assertEquals("hnu", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalObjectDataset model = new PaypalObjectDataset().withDescription("htisyzfeoctr") - .withStructure("datawn") - .withSchema("datackze") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mbvwdxgy") - .withParameters(mapOf("atkuhskegd", "dataxqzlmlnxr", "l", "datavvi"))) - .withParameters(mapOf("pbusxy", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataxfzzjdm"), "kkbyg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datazwplxzgzumnotii"), - "wyshybbnhtt", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataq"))) - .withAnnotations(Arrays.asList("dataonzsurqcoj", "datasfzhzzcarciuoxyi", "datadthjfvnhwsgnsput", "datae")) - .withFolder(new DatasetFolder().withName("hnu")) - .withTableName("dataamqobqehs"); - model = BinaryData.fromObject(model).toObject(PaypalObjectDataset.class); - Assertions.assertEquals("htisyzfeoctr", model.description()); - Assertions.assertEquals("mbvwdxgy", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("pbusxy").type()); - Assertions.assertEquals("hnu", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java deleted file mode 100644 index 0483fcc110de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PaypalSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PaypalSource; - -public final class PaypalSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PaypalSource model = BinaryData.fromString( - "{\"type\":\"PaypalSource\",\"query\":\"datafqntak\",\"queryTimeout\":\"dataxkurfsuw\",\"additionalColumns\":\"datazpwkcagfqgz\",\"sourceRetryCount\":\"datamj\",\"sourceRetryWait\":\"datardpvblonlhtgexwj\",\"maxConcurrentConnections\":\"datacuzqavimxnhy\",\"disableMetricsCollection\":\"dataogtvlrbgd\",\"\":{\"k\":\"datanhdxlfntdc\"}}") - .toObject(PaypalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PaypalSource model = new PaypalSource().withSourceRetryCount("datamj") - .withSourceRetryWait("datardpvblonlhtgexwj") - .withMaxConcurrentConnections("datacuzqavimxnhy") - .withDisableMetricsCollection("dataogtvlrbgd") - .withQueryTimeout("dataxkurfsuw") - .withAdditionalColumns("datazpwkcagfqgz") - .withQuery("datafqntak"); - model = BinaryData.fromObject(model).toObject(PaypalSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java deleted file mode 100644 index ff7f91b1bc98..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PhoenixDatasetTypeProperties; - -public final class PhoenixDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datapi\",\"table\":\"dataromppzsauqmeuhpl\",\"schema\":\"datampuai\"}") - .toObject(PhoenixDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixDatasetTypeProperties model = new PhoenixDatasetTypeProperties().withTableName("datapi") - .withTable("dataromppzsauqmeuhpl") - .withSchema("datampuai"); - model = BinaryData.fromObject(model).toObject(PhoenixDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java deleted file mode 100644 index 33b0d497a5de..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixObjectDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PhoenixObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PhoenixObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixObjectDataset model = BinaryData.fromString( - "{\"type\":\"PhoenixObject\",\"typeProperties\":{\"tableName\":\"datantbfytnhdnihu\",\"table\":\"datajuzvwgbzdtorbi\",\"schema\":\"datayfzdp\"},\"description\":\"tsucrxdtejobjz\",\"structure\":\"datawtidcnzalgmpupj\",\"schema\":\"datatyl\",\"linkedServiceName\":{\"referenceName\":\"uudvbgvzlzjsb\",\"parameters\":{\"mbdqra\":\"datautzaziydpoknsea\",\"o\":\"datakdarl\"}},\"parameters\":{\"vclfjyclvi\":{\"type\":\"Int\",\"defaultValue\":\"dataqwzknyujxy\"},\"pfildcg\":{\"type\":\"Array\",\"defaultValue\":\"datafflleirmtxf\"},\"cryvidbzdylbvj\":{\"type\":\"Float\",\"defaultValue\":\"datauzfbp\"}},\"annotations\":[\"datangw\",\"dataxjftecgprz\"],\"folder\":{\"name\":\"pdqcakzbyqhaathx\"},\"\":{\"lhrvmgsbpgmncr\":\"datauucolusyruxrzh\"}}") - .toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("tsucrxdtejobjz", model.description()); - Assertions.assertEquals("uudvbgvzlzjsb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("vclfjyclvi").type()); - Assertions.assertEquals("pdqcakzbyqhaathx", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixObjectDataset model = new PhoenixObjectDataset().withDescription("tsucrxdtejobjz") - .withStructure("datawtidcnzalgmpupj") - .withSchema("datatyl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uudvbgvzlzjsb") - .withParameters(mapOf("mbdqra", "datautzaziydpoknsea", "o", "datakdarl"))) - .withParameters(mapOf("vclfjyclvi", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataqwzknyujxy"), "pfildcg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datafflleirmtxf"), - "cryvidbzdylbvj", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datauzfbp"))) - .withAnnotations(Arrays.asList("datangw", "dataxjftecgprz")) - .withFolder(new DatasetFolder().withName("pdqcakzbyqhaathx")) - .withTableName("datantbfytnhdnihu") - .withTable("datajuzvwgbzdtorbi") - .withSchemaTypePropertiesSchema("datayfzdp"); - model = BinaryData.fromObject(model).toObject(PhoenixObjectDataset.class); - Assertions.assertEquals("tsucrxdtejobjz", model.description()); - Assertions.assertEquals("uudvbgvzlzjsb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("vclfjyclvi").type()); - Assertions.assertEquals("pdqcakzbyqhaathx", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java deleted file mode 100644 index 3dc1bc1d7d13..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PhoenixSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PhoenixSource; - -public final class PhoenixSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PhoenixSource model = BinaryData.fromString( - "{\"type\":\"PhoenixSource\",\"query\":\"datag\",\"queryTimeout\":\"datalfyxaiaf\",\"additionalColumns\":\"datamxekfvycvhwduo\",\"sourceRetryCount\":\"dataapzzcxk\",\"sourceRetryWait\":\"datasbahcassqeybd\",\"maxConcurrentConnections\":\"dataeyakg\",\"disableMetricsCollection\":\"dataohfq\",\"\":{\"awctaarboxal\":\"datakicxtumqi\",\"xwevl\":\"dataoadmcvvkjnpe\",\"bo\":\"datahuahlqm\",\"xoyllx\":\"datagpmmz\"}}") - .toObject(PhoenixSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PhoenixSource model = new PhoenixSource().withSourceRetryCount("dataapzzcxk") - .withSourceRetryWait("datasbahcassqeybd") - .withMaxConcurrentConnections("dataeyakg") - .withDisableMetricsCollection("dataohfq") - .withQueryTimeout("datalfyxaiaf") - .withAdditionalColumns("datamxekfvycvhwduo") - .withQuery("datag"); - model = BinaryData.fromObject(model).toObject(PhoenixSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java deleted file mode 100644 index 36c86fdaedae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineElapsedTimeMetricPolicyTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; - -public final class PipelineElapsedTimeMetricPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineElapsedTimeMetricPolicy model - = BinaryData.fromString("{\"duration\":\"datauors\"}").toObject(PipelineElapsedTimeMetricPolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineElapsedTimeMetricPolicy model = new PipelineElapsedTimeMetricPolicy().withDuration("datauors"); - model = BinaryData.fromObject(model).toObject(PipelineElapsedTimeMetricPolicy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineExternalComputeScalePropertiesTests.java deleted file mode 100644 index 867ee6a7a28a..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\":1000416850,\"numberOfPipelineNodes\":759379330,\"numberOfExternalNodes\":139351997,\"\":{\"bwhxmyibxkcegct\":\"dataniwfc\",\"tcxbbjbeyqo\":\"datagxk\"}}") - .toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(1000416850, model.timeToLive()); - Assertions.assertEquals(759379330, model.numberOfPipelineNodes()); - Assertions.assertEquals(139351997, model.numberOfExternalNodes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineExternalComputeScaleProperties model - = new PipelineExternalComputeScaleProperties().withTimeToLive(1000416850) - .withNumberOfPipelineNodes(759379330) - .withNumberOfExternalNodes(139351997) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PipelineExternalComputeScaleProperties.class); - Assertions.assertEquals(1000416850, model.timeToLive()); - Assertions.assertEquals(759379330, model.numberOfPipelineNodes()); - Assertions.assertEquals(139351997, model.numberOfExternalNodes()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java deleted file mode 100644 index c1e61973f0e5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineFolderTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import org.junit.jupiter.api.Assertions; - -public final class PipelineFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineFolder model = BinaryData.fromString("{\"name\":\"rxgibbd\"}").toObject(PipelineFolder.class); - Assertions.assertEquals("rxgibbd", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineFolder model = new PipelineFolder().withName("rxgibbd"); - model = BinaryData.fromObject(model).toObject(PipelineFolder.class); - Assertions.assertEquals("rxgibbd", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java deleted file mode 100644 index 87b28bf25fb7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineListResponseTests.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelineListResponse; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"rsbrgzdwm\",\"activities\":[{\"type\":\"Activity\",\"name\":\"ypqwdxggiccc\",\"description\":\"qhuexm\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"lzywemhzrncsdtc\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"iypbsfgytgusl\",\"value\":\"dataeadcygqukyhejhz\"},{\"name\":\"sx\",\"value\":\"datafpel\"}],\"\":{\"srp\":\"datapv\"}},{\"type\":\"Activity\",\"name\":\"vu\",\"description\":\"raehtwdwrft\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"dl\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"hfwpracstwit\",\"value\":\"datakhevxccedc\"},{\"name\":\"nmdyodnwzxl\",\"value\":\"datajc\"},{\"name\":\"nhltiugcxn\",\"value\":\"datavvwxqi\"},{\"name\":\"y\",\"value\":\"dataunyowxwl\"}],\"\":{\"acizsjqlhkrr\":\"datarkvfgbvfvpdbo\",\"hvxndzwmkrefajpj\":\"databdeibqipqk\",\"yhgbijtjivfx\":\"datarwkq\",\"stawfsdjpvkv\":\"datasjabibs\"}},{\"type\":\"Activity\",\"name\":\"bjxbkzbzk\",\"description\":\"ncj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"kakmokzh\",\"dependencyConditions\":[]},{\"activity\":\"jk\",\"dependencyConditions\":[]},{\"activity\":\"ffhmouwqlgzr\",\"dependencyConditions\":[]},{\"activity\":\"zeeyebi\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ayuhqlbjbsy\",\"value\":\"databqwrvtldgm\"},{\"name\":\"pgvmpipaslthaqfx\",\"value\":\"datasmwutwbdsrezpd\"},{\"name\":\"hneuyowqkd\",\"value\":\"dataytisibir\"}],\"\":{\"lfzxiavrmbzonoki\":\"dataikpzimejza\",\"rgz\":\"datarjqc\"}},{\"type\":\"Activity\",\"name\":\"frl\",\"description\":\"szrnwo\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"pj\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"bt\",\"value\":\"datah\"},{\"name\":\"lsj\",\"value\":\"datadhszfjv\"},{\"name\":\"bgofeljag\",\"value\":\"dataqmqhldvriii\"}],\"\":{\"hfkvtvsexsowuel\":\"dataal\",\"wws\":\"dataqhhahhxvrhmzkwpj\",\"qxujxukndxd\":\"dataughftqsx\",\"syqtfi\":\"datagrjguufzd\"}}],\"parameters\":{\"szqzudphqamv\":{\"type\":\"Float\",\"defaultValue\":\"datatzingamvpph\"},\"nvyq\":{\"type\":\"Object\",\"defaultValue\":\"datawynwcvtbvkayhm\"},\"cjaesgvvs\":{\"type\":\"Float\",\"defaultValue\":\"datakzwpcnpw\"},\"wygzlvdnkfxusem\":{\"type\":\"Int\",\"defaultValue\":\"dataajguqf\"}},\"variables\":{\"pfcqdp\":{\"type\":\"Array\",\"defaultValue\":\"datauh\"},\"celve\":{\"type\":\"String\",\"defaultValue\":\"dataqvpsvuoymg\"},\"kerqwkyh\":{\"type\":\"Array\",\"defaultValue\":\"datapqlmfe\"},\"pc\":{\"type\":\"String\",\"defaultValue\":\"dataopgxedkowepb\"}},\"concurrency\":1318988279,\"annotations\":[\"dataccsnjvcdwxlpq\",\"datakftnkhtjsyin\",\"datawfqatmtd\",\"datatmdvypgikdgs\"],\"runDimensions\":{\"yuzhlhkjoqrvq\":\"datakbir\"},\"folder\":{\"name\":\"t\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datavgoup\"}}},\"name\":\"iibfggj\",\"type\":\"olvrw\",\"etag\":\"v\",\"\":{\"vjayvblmhvkzu\":\"datagllqwjy\"},\"id\":\"xvvy\"}],\"nextLink\":\"s\"}") - .toObject(PipelineListResponse.class); - Assertions.assertEquals("xvvy", model.value().get(0).id()); - Assertions.assertEquals("rsbrgzdwm", model.value().get(0).description()); - Assertions.assertEquals("ypqwdxggiccc", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("qhuexm", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.value().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lzywemhzrncsdtc", - model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("iypbsfgytgusl", - model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.value().get(0).parameters().get("szqzudphqamv").type()); - Assertions.assertEquals(VariableType.ARRAY, model.value().get(0).variables().get("pfcqdp").type()); - Assertions.assertEquals(1318988279, model.value().get(0).concurrency()); - Assertions.assertEquals("t", model.value().get(0).folder().name()); - Assertions.assertEquals("s", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineListResponse model = new PipelineListResponse() - .withValue(Arrays.asList(new PipelineResourceInner().withId("xvvy") - .withDescription("rsbrgzdwm") - .withActivities(Arrays.asList( - new Activity().withName("ypqwdxggiccc") - .withDescription("qhuexm") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("lzywemhzrncsdtc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("iypbsfgytgusl").withValue("dataeadcygqukyhejhz"), - new UserProperty().withName("sx").withValue("datafpel"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("vu") - .withDescription("raehtwdwrft") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("dl") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("hfwpracstwit").withValue("datakhevxccedc"), - new UserProperty().withName("nmdyodnwzxl").withValue("datajc"), - new UserProperty().withName("nhltiugcxn").withValue("datavvwxqi"), - new UserProperty().withName("y").withValue("dataunyowxwl"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("bjxbkzbzk") - .withDescription("ncj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("kakmokzh") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("jk") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ffhmouwqlgzr") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zeeyebi") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ayuhqlbjbsy").withValue("databqwrvtldgm"), - new UserProperty().withName("pgvmpipaslthaqfx").withValue("datasmwutwbdsrezpd"), - new UserProperty().withName("hneuyowqkd").withValue("dataytisibir"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("frl") - .withDescription("szrnwo") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("pj") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("bt").withValue("datah"), - new UserProperty().withName("lsj").withValue("datadhszfjv"), - new UserProperty().withName("bgofeljag").withValue("dataqmqhldvriii"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("szqzudphqamv", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datatzingamvpph"), - "nvyq", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datawynwcvtbvkayhm"), - "cjaesgvvs", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakzwpcnpw"), - "wygzlvdnkfxusem", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataajguqf"))) - .withVariables(mapOf("pfcqdp", - new VariableSpecification().withType(VariableType.ARRAY).withDefaultValue("datauh"), "celve", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("dataqvpsvuoymg"), - "kerqwkyh", new VariableSpecification().withType(VariableType.ARRAY).withDefaultValue("datapqlmfe"), - "pc", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("dataopgxedkowepb"))) - .withConcurrency(1318988279) - .withAnnotations( - Arrays.asList("dataccsnjvcdwxlpq", "datakftnkhtjsyin", "datawfqatmtd", "datatmdvypgikdgs")) - .withRunDimensions(mapOf("yuzhlhkjoqrvq", "datakbir")) - .withFolder(new PipelineFolder().withName("t")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datavgoup"))) - .withAdditionalProperties(mapOf("name", "iibfggj", "etag", "v", "type", "olvrw")))) - .withNextLink("s"); - model = BinaryData.fromObject(model).toObject(PipelineListResponse.class); - Assertions.assertEquals("xvvy", model.value().get(0).id()); - Assertions.assertEquals("rsbrgzdwm", model.value().get(0).description()); - Assertions.assertEquals("ypqwdxggiccc", model.value().get(0).activities().get(0).name()); - Assertions.assertEquals("qhuexm", model.value().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.value().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.value().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("lzywemhzrncsdtc", - model.value().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("iypbsfgytgusl", - model.value().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.value().get(0).parameters().get("szqzudphqamv").type()); - Assertions.assertEquals(VariableType.ARRAY, model.value().get(0).variables().get("pfcqdp").type()); - Assertions.assertEquals(1318988279, model.value().get(0).concurrency()); - Assertions.assertEquals("t", model.value().get(0).folder().name()); - Assertions.assertEquals("s", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java deleted file mode 100644 index bd53931558e8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinePolicyTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; - -public final class PipelinePolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelinePolicy model = BinaryData.fromString("{\"elapsedTimeMetric\":{\"duration\":\"dataonfo\"}}") - .toObject(PipelinePolicy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelinePolicy model = new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("dataonfo")); - model = BinaryData.fromObject(model).toObject(PipelinePolicy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java deleted file mode 100644 index 06e627273375..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import org.junit.jupiter.api.Assertions; - -public final class PipelineReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineReference model - = BinaryData.fromString("{\"referenceName\":\"pycvjqdvdwkqpldr\",\"name\":\"fgnaavuagnteta\"}") - .toObject(PipelineReference.class); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.referenceName()); - Assertions.assertEquals("fgnaavuagnteta", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineReference model - = new PipelineReference().withReferenceName("pycvjqdvdwkqpldr").withName("fgnaavuagnteta"); - model = BinaryData.fromObject(model).toObject(PipelineReference.class); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.referenceName()); - Assertions.assertEquals("fgnaavuagnteta", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java deleted file mode 100644 index c95cf5fdf97c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineResourceInnerTests.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineResourceInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"byrqufeg\",\"activities\":[{\"type\":\"Activity\",\"name\":\"wz\",\"description\":\"nhlmctlpdng\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"rixkwmyijejve\",\"dependencyConditions\":[\"Completed\"],\"\":{\"exccbdreaxhcexd\":\"datanai\"}},{\"activity\":\"rvqahqkghtpwi\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"voowvr\":\"datavfycxzb\",\"qp\":\"datamtg\",\"s\":\"datay\"}}],\"userProperties\":[{\"name\":\"nzm\",\"value\":\"datahgfipnsxkmcw\"}],\"\":{\"hjglikk\":\"datarrjreafxtsgu\",\"uzlm\":\"datawslolbqp\"}}],\"parameters\":{\"wjxeznoigbr\":{\"type\":\"Array\",\"defaultValue\":\"dataktgplcr\"}},\"variables\":{\"azej\":{\"type\":\"String\",\"defaultValue\":\"datakpnb\"}},\"concurrency\":2849760,\"annotations\":[\"datagfhsxttaugzxn\",\"dataaa\",\"datapxdtnkdmkq\"],\"runDimensions\":{\"pyouaibrebqaays\":\"datawuenvr\",\"zlwfffiakp\":\"datakixqtnqtt\",\"tmmjihyeozph\":\"datapqqmted\"},\"folder\":{\"name\":\"uyqncygupkvipmd\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"dataqupevzh\"}}},\"name\":\"totxhojujb\",\"type\":\"elmcuvhixbjxyfw\",\"etag\":\"lrcoolsttpki\",\"\":{\"ncu\":\"databnujrywvtylbf\",\"thtywub\":\"datadoiwi\"},\"id\":\"bihwqknfdnt\"}") - .toObject(PipelineResourceInner.class); - Assertions.assertEquals("bihwqknfdnt", model.id()); - Assertions.assertEquals("byrqufeg", model.description()); - Assertions.assertEquals("wz", model.activities().get(0).name()); - Assertions.assertEquals("nhlmctlpdng", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("rixkwmyijejve", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nzm", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("wjxeznoigbr").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("azej").type()); - Assertions.assertEquals(2849760, model.concurrency()); - Assertions.assertEquals("uyqncygupkvipmd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineResourceInner model = new PipelineResourceInner().withId("bihwqknfdnt") - .withDescription("byrqufeg") - .withActivities(Arrays.asList(new Activity().withName("wz") - .withDescription("nhlmctlpdng") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("rixkwmyijejve") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rvqahqkghtpwi") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("nzm").withValue("datahgfipnsxkmcw"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("wjxeznoigbr", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataktgplcr"))) - .withVariables( - mapOf("azej", new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datakpnb"))) - .withConcurrency(2849760) - .withAnnotations(Arrays.asList("datagfhsxttaugzxn", "dataaa", "datapxdtnkdmkq")) - .withRunDimensions( - mapOf("pyouaibrebqaays", "datawuenvr", "zlwfffiakp", "datakixqtnqtt", "tmmjihyeozph", "datapqqmted")) - .withFolder(new PipelineFolder().withName("uyqncygupkvipmd")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("dataqupevzh"))) - .withAdditionalProperties(mapOf("name", "totxhojujb", "etag", "lrcoolsttpki", "type", "elmcuvhixbjxyfw")); - model = BinaryData.fromObject(model).toObject(PipelineResourceInner.class); - Assertions.assertEquals("bihwqknfdnt", model.id()); - Assertions.assertEquals("byrqufeg", model.description()); - Assertions.assertEquals("wz", model.activities().get(0).name()); - Assertions.assertEquals("nhlmctlpdng", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("rixkwmyijejve", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("nzm", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("wjxeznoigbr").type()); - Assertions.assertEquals(VariableType.STRING, model.variables().get("azej").type()); - Assertions.assertEquals(2849760, model.concurrency()); - Assertions.assertEquals("uyqncygupkvipmd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java deleted file mode 100644 index 96e63f70850d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.PipelineRunInner; -import java.util.HashMap; -import java.util.Map; - -public final class PipelineRunInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineRunInner model = BinaryData.fromString( - "{\"runId\":\"m\",\"runGroupId\":\"fpmvmemfnczd\",\"isLatest\":true,\"pipelineName\":\"alxlllchp\",\"parameters\":{\"jcswsmys\":\"zevwrdnhfukuv\",\"lerchpq\":\"uluqypfc\"},\"runDimensions\":{\"sspuunnoxyhkx\":\"pjbabwidfc\"},\"invokedBy\":{\"name\":\"drihpfhoqcaaewda\",\"id\":\"djvlpj\",\"invokedByType\":\"kzbrmsgeivsiy\",\"pipelineName\":\"kdncj\",\"pipelineRunId\":\"onbzoggculapzwy\"},\"lastUpdated\":\"2021-08-05T01:58:35Z\",\"runStart\":\"2021-06-21T04:03:02Z\",\"runEnd\":\"2021-07-13T09:34:39Z\",\"durationInMs\":2072237694,\"status\":\"n\",\"message\":\"b\",\"\":{\"hvfcibyfmow\":\"datajlyjtlvofq\",\"fzwiivwzjbhyz\":\"dataxrkjpvdw\",\"mbtrnegvmnvu\":\"dataxjrk\",\"bkkd\":\"dataeqvldspast\"}}") - .toObject(PipelineRunInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineRunInner model = new PipelineRunInner().withAdditionalProperties(mapOf("durationInMs", 2072237694, - "runDimensions", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"sspuunnoxyhkx\":\"pjbabwidfc\"}", Object.class, SerializerEncoding.JSON), - "invokedBy", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"name\":\"drihpfhoqcaaewda\",\"id\":\"djvlpj\",\"invokedByType\":\"kzbrmsgeivsiy\",\"pipelineName\":\"kdncj\",\"pipelineRunId\":\"onbzoggculapzwy\"}", - Object.class, SerializerEncoding.JSON), - "runStart", "2021-06-21T04:03:02Z", "message", "b", "pipelineName", "alxlllchp", "lastUpdated", - "2021-08-05T01:58:35Z", "isLatest", true, "runId", "m", "runEnd", "2021-07-13T09:34:39Z", "runGroupId", - "fpmvmemfnczd", "parameters", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"jcswsmys\":\"zevwrdnhfukuv\",\"lerchpq\":\"uluqypfc\"}", Object.class, - SerializerEncoding.JSON), - "status", "n")); - model = BinaryData.fromObject(model).toObject(PipelineRunInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java deleted file mode 100644 index 44ebd892bb62..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunInvokedByTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineRunInvokedBy; - -public final class PipelineRunInvokedByTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PipelineRunInvokedBy model = BinaryData.fromString( - "{\"name\":\"lves\",\"id\":\"jlxr\",\"invokedByType\":\"lozapeewchpxlk\",\"pipelineName\":\"kuziycsle\",\"pipelineRunId\":\"f\"}") - .toObject(PipelineRunInvokedBy.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PipelineRunInvokedBy model = new PipelineRunInvokedBy(); - model = BinaryData.fromObject(model).toObject(PipelineRunInvokedBy.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java deleted file mode 100644 index f15af502a927..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.pipelineRuns() - .cancelWithResponse("wvamymswfw", "kucsop", "fhqxhtcohrhw", 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 886eae134ebf..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"mrfjjrp\",\"runGroupId\":\"jecqwdosbsngyia\",\"isLatest\":false,\"pipelineName\":\"vlkuucpw\",\"parameters\":{\"c\":\"yrblrqeqcdi\",\"njxi\":\"cvzdtft\"},\"runDimensions\":{\"yixgxtccmqzkuq\":\"mm\",\"gindlnteoapszxq\":\"rzu\"},\"invokedBy\":{\"name\":\"vyracqmfjihm\",\"id\":\"zwoijtlhxlsxxra\",\"invokedByType\":\"aicgqgafkrtsaeag\",\"pipelineName\":\"ctcrdfxqhn\",\"pipelineRunId\":\"ujrnfdqlzggvo\"},\"lastUpdated\":\"2021-11-15T19:48:05Z\",\"runStart\":\"2021-08-31T03:56:26Z\",\"runEnd\":\"2021-10-30T14:33:10Z\",\"durationInMs\":41436935,\"status\":\"uj\",\"message\":\"jqci\",\"\":{\"shmntlbfknxzc\":\"datapsvgupqw\",\"ccpbtvgiokz\":\"datauvjbfryortbres\",\"dwawomkzussgjmub\":\"datatpvs\",\"ekzcmfibbozkp\":\"datagjdluwbmwuj\"}}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PipelineRun response = manager.pipelineRuns() - .getWithResponse("llzbtq", "jmio", "csdfbki", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java deleted file mode 100644 index 0500af19fc9f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelineTests.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.Pipeline; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PipelineTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Pipeline model = BinaryData.fromString( - "{\"description\":\"chrdgoihxumwcto\",\"activities\":[{\"type\":\"Activity\",\"name\":\"jl\",\"description\":\"dfdlwggyts\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"gseinq\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Succeeded\"],\"\":{\"msniffc\":\"datanpirgnepttw\",\"frddhcrati\":\"datamqnrojlpijnkr\",\"zq\":\"datazronasxift\",\"tw\":\"datazh\"}},{\"activity\":\"sgogczhonnxk\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"dhqxvcx\":\"datamossxkkgthrrghxj\",\"buswdvzyy\":\"datafrpdsofbshrns\",\"awnopqgikyzirtxd\":\"dataycnunvjsrtk\"}},{\"activity\":\"uxzejntpsew\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"eoxorggufhyao\":\"datarydxtqm\"}},{\"activity\":\"tbghhavgrvkf\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\",\"Failed\"],\"\":{\"cluyovwxnbkf\":\"databibgjmfxumv\",\"zbomvzzbtdcqvpni\":\"datazzxscyhwzdgiruj\"}}],\"userProperties\":[{\"name\":\"viylwdshfssnrbgy\",\"value\":\"datafrymsgaojfmwnc\"},{\"name\":\"tmr\",\"value\":\"datahirctymoxoftpipi\"},{\"name\":\"yczuhxacpq\",\"value\":\"datalihhyuspskasdvlm\"}],\"\":{\"ulucv\":\"datagz\",\"urisjnhnytxifqj\":\"dataamrsreuzv\",\"esutrgjupauutpw\":\"datagxmrhublwp\",\"jqgwzp\":\"dataqhih\"}}],\"parameters\":{\"oimwkslirc\":{\"type\":\"Float\",\"defaultValue\":\"datacypsxjv\"},\"ftumrtwnawjslbiw\":{\"type\":\"Object\",\"defaultValue\":\"dataxvydfceacvlhvygd\"},\"ph\":{\"type\":\"Bool\",\"defaultValue\":\"datagcyztsfmznbae\"},\"ehuwrykqgaifmvik\":{\"type\":\"Int\",\"defaultValue\":\"datanrnrp\"}},\"variables\":{\"dsrhnjiv\":{\"type\":\"Bool\",\"defaultValue\":\"datakhbejdznxc\"}},\"concurrency\":1976490,\"annotations\":[\"dataovqfzge\",\"datajdftuljltd\"],\"runDimensions\":{\"o\":\"dataamtmcz\",\"ssxmojms\":\"dataejwcwwqiok\"},\"folder\":{\"name\":\"jpr\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datafz\"}}}") - .toObject(Pipeline.class); - Assertions.assertEquals("chrdgoihxumwcto", model.description()); - Assertions.assertEquals("jl", model.activities().get(0).name()); - Assertions.assertEquals("dfdlwggyts", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gseinq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("viylwdshfssnrbgy", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("oimwkslirc").type()); - Assertions.assertEquals(VariableType.BOOL, model.variables().get("dsrhnjiv").type()); - Assertions.assertEquals(1976490, model.concurrency()); - Assertions.assertEquals("jpr", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Pipeline model = new Pipeline().withDescription("chrdgoihxumwcto") - .withActivities(Arrays.asList(new Activity().withName("jl") - .withDescription("dfdlwggyts") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("gseinq") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("sgogczhonnxk") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("uxzejntpsew") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tbghhavgrvkf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("viylwdshfssnrbgy").withValue("datafrymsgaojfmwnc"), - new UserProperty().withName("tmr").withValue("datahirctymoxoftpipi"), - new UserProperty().withName("yczuhxacpq").withValue("datalihhyuspskasdvlm"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("oimwkslirc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datacypsxjv"), - "ftumrtwnawjslbiw", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataxvydfceacvlhvygd"), - "ph", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datagcyztsfmznbae"), - "ehuwrykqgaifmvik", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datanrnrp"))) - .withVariables(mapOf("dsrhnjiv", - new VariableSpecification().withType(VariableType.BOOL).withDefaultValue("datakhbejdznxc"))) - .withConcurrency(1976490) - .withAnnotations(Arrays.asList("dataovqfzge", "datajdftuljltd")) - .withRunDimensions(mapOf("o", "dataamtmcz", "ssxmojms", "dataejwcwwqiok")) - .withFolder(new PipelineFolder().withName("jpr")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datafz"))); - model = BinaryData.fromObject(model).toObject(Pipeline.class); - Assertions.assertEquals("chrdgoihxumwcto", model.description()); - Assertions.assertEquals("jl", model.activities().get(0).name()); - Assertions.assertEquals("dfdlwggyts", model.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("gseinq", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("viylwdshfssnrbgy", model.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("oimwkslirc").type()); - Assertions.assertEquals(VariableType.BOOL, model.variables().get("dsrhnjiv").type()); - Assertions.assertEquals(1976490, model.concurrency()); - Assertions.assertEquals("jpr", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index c4dc80e1487e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"okft\",\"activities\":[{\"type\":\"Activity\",\"name\":\"ezplnzvrhg\",\"description\":\"eelkv\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"kwgsqosrpcxw\",\"dependencyConditions\":[]},{\"activity\":\"hkljktujf\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qfryketwrzx\",\"value\":\"datamiy\"},{\"name\":\"fkgmyq\",\"value\":\"datajfjypp\"},{\"name\":\"xfubkf\",\"value\":\"datatvlwyety\"},{\"name\":\"nhispacivanl\",\"value\":\"datapspnjlopoang\"}],\"\":{\"tbm\":\"dataaixrbwbkrsmkeiun\",\"fc\":\"datadzfoxdtzzmcrmh\",\"b\":\"dataizxuiyuzufdm\"}},{\"type\":\"Activity\",\"name\":\"ygnfljvra\",\"description\":\"oecozfauhnxxdyah\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"k\",\"dependencyConditions\":[]},{\"activity\":\"mhax\",\"dependencyConditions\":[]},{\"activity\":\"wjimlfrk\",\"dependencyConditions\":[]},{\"activity\":\"ynmm\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"bxoe\",\"value\":\"datahordcc\"},{\"name\":\"kr\",\"value\":\"datazczlvql\"},{\"name\":\"ca\",\"value\":\"dataphsarty\"},{\"name\":\"qqwdgyshpvv\",\"value\":\"datagvqrwrchwdx\"}],\"\":{\"fjjxoxweuoklwt\":\"dataqq\"}},{\"type\":\"Activity\",\"name\":\"e\",\"description\":\"ndheocjc\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"wu\",\"dependencyConditions\":[]},{\"activity\":\"verplhfwqdvdqcoh\",\"dependencyConditions\":[]},{\"activity\":\"wzy\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"lt\",\"value\":\"datambhlhyqgfim\"},{\"name\":\"lr\",\"value\":\"datadqwpudvup\"},{\"name\":\"izztkl\",\"value\":\"datashdeehtjmdefkphs\"},{\"name\":\"kivyaf\",\"value\":\"datapcnnpjulpwwmxwl\"}],\"\":{\"zjazepbjukikd\":\"datarkf\",\"unsvsjo\":\"datavruxmpnugujiwi\",\"lt\":\"dataanxs\"}}],\"parameters\":{\"enpybuskvjb\":{\"type\":\"Int\",\"defaultValue\":\"dataqxruqrobk\"},\"kkgawnaeoeuidh\":{\"type\":\"Bool\",\"defaultValue\":\"dataqudxvjrndbinqq\"}},\"variables\":{\"xeclwl\":{\"type\":\"String\",\"defaultValue\":\"dataitnzpfdoetetisk\"},\"nfmxomupdqpcxiv\":{\"type\":\"Array\",\"defaultValue\":\"datar\"}},\"concurrency\":920981998,\"annotations\":[\"datamefjpoellyvbvxl\",\"dataltrztr\",\"dataoyrjvrxyrxhfrsyc\"],\"runDimensions\":{\"hlnbawffrzgeobz\":\"dataefmqhtrzlvfncp\",\"grojpnxz\":\"dataxzraihl\",\"yysycey\":\"datarc\"},\"folder\":{\"name\":\"lxhymc\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datapymroyygt\"}}},\"name\":\"mpwzlbqdxvxdfkdw\",\"type\":\"mnoecfjw\",\"etag\":\"iupgmdszwrfdj\",\"\":{\"qfi\":\"datajsmdrecrrbkm\"},\"id\":\"goapxdmxwetkj\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PipelineResource response = manager.pipelines() - .define("amnxzduyd") - .withExistingFactory("bhuai", "dxquow") - .withDescription("vwoclmdcoqwdmegk") - .withActivities(Arrays.asList( - new Activity().withName("uguvnwcvlmyrw") - .withDescription("rtubemptxm") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("mmwpqcdmfrjqfe") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gdkxiprrvfy") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vkmom") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("evqbcdjlnnvhb").withValue("datajutupgmmtit"), - new UserProperty().withName("poqqakpbkwqavxlj").withValue("dataybgxxm"), - new UserProperty().withName("drgxhrtans").withValue("databoiyqi"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("gdgfjvitdp") - .withDescription("oesx") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("caspwvglaxvn") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("atwxqaggbirzj").withValue("dataaicyuplmdhuu"), - new UserProperty().withName("tiecnpka").withValue("datatjqjtoeaug"), - new UserProperty().withName("osrywpfcqle").withValue("dataiafsizdec"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("qgf") - .withDescription("trvvhxjfkpu") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("l") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xwnircmodws") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hzlamdqgav") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("wkjambfsxsr").withValue("datajfapiodsn"), - new UserProperty().withName("yezwjqb").withValue("datacxlg"), - new UserProperty().withName("uxo").withValue("datamjxqintjhvcoro"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("mefsxmdmlowe") - .withDescription("xpwfvtwgnm") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("omjsfkdvbhc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hinjnwpiv") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("baj").withValue("dataec"), - new UserProperty().withName("gwkzu").withValue("dataxsrmadakjsypuvyv"), - new UserProperty().withName("bkkekldxclqjn").withValue("datahotwq"))) - .withAdditionalProperties(mapOf("type", "Activity")))) - .withParameters(mapOf("yrsravsscblsxms", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datahsfjqxlbclvpgbu"), - "ixwx", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datagdtuzclfbvvuyoil"), - "xs", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datauuvbbh"), - "midvicdqufjahuc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datalxwlmxzoibipktbl"))) - .withVariables(mapOf("trfdipss", - new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datacklthsuasnxdhlov"))) - .withConcurrency(1782839703) - .withAnnotations(Arrays.asList("databydryysvex", "datazs", "databfnkj")) - .withRunDimensions(mapOf("uah", "dataynpbirltz", "sdtysnlxw", "datalxcdpj")) - .withFolder(new PipelineFolder().withName("ez")) - .withPolicy(new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("datajjzcxtzkoloosc"))) - .withIfMatch("ezapuun") - .create(); - - Assertions.assertEquals("goapxdmxwetkj", response.id()); - Assertions.assertEquals("okft", response.description()); - Assertions.assertEquals("ezplnzvrhg", response.activities().get(0).name()); - Assertions.assertEquals("eelkv", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("kwgsqosrpcxw", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("qfryketwrzx", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, response.parameters().get("enpybuskvjb").type()); - Assertions.assertEquals(VariableType.STRING, response.variables().get("xeclwl").type()); - Assertions.assertEquals(920981998, response.concurrency()); - Assertions.assertEquals("lxhymc", 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 6bfe73ca867c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"pxdnkgrxhpx\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CreateRunResponse response = manager.pipelines() - .createRunWithResponse("icznotggy", "nssghafzdzdf", "udmiutzuriqlksba", "yxtiqzjrxh", false, "qheqzdxda", - false, mapOf("wjzqmbe", "dataetgymd"), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("pxdnkgrxhpx", 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 768ba6a10dd5..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.pipelines().deleteWithResponse("rtcacdomz", "whjthoxl", "tya", 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 41725bf4acae..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"sanchrou\",\"activities\":[{\"type\":\"Activity\",\"name\":\"ptdeumlfszxqrabk\",\"description\":\"eodgpqdcrn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"htuiws\",\"dependencyConditions\":[]},{\"activity\":\"ccmun\",\"dependencyConditions\":[]},{\"activity\":\"vw\",\"dependencyConditions\":[]},{\"activity\":\"sgczvuiprngne\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"zdayzfu\",\"value\":\"databnelmi\"},{\"name\":\"mccevbpr\",\"value\":\"datacgeregft\"},{\"name\":\"gjmznptevafczg\",\"value\":\"datase\"}],\"\":{\"wg\":\"dataiynlcdqxownbj\",\"gcfjnoz\":\"datagowkazmwrxsfejkr\",\"htg\":\"datatyqqoswk\"}},{\"type\":\"Activity\",\"name\":\"ewflxbyyvaufx\",\"description\":\"s\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ndocqaptw\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"smonwhazalftta\",\"value\":\"dataz\"},{\"name\":\"sve\",\"value\":\"datasrduqhrlltfec\"},{\"name\":\"xzhbfibzvxqh\",\"value\":\"datapjdbz\"},{\"name\":\"lchv\",\"value\":\"datasydjr\"}],\"\":{\"ohppupucybtr\":\"dataawfujvgvrpear\"}},{\"type\":\"Activity\",\"name\":\"velcbm\",\"description\":\"hogxexeaexw\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"zmqdnfonncnf\",\"dependencyConditions\":[]},{\"activity\":\"yggiomgv\",\"dependencyConditions\":[]},{\"activity\":\"arx\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"mjygnixkpadjqjwl\",\"value\":\"dataqeibucmfvuizjrs\"},{\"name\":\"n\",\"value\":\"datamaezxldmzh\"},{\"name\":\"uzwy\",\"value\":\"datasvgonkomuapyskw\"},{\"name\":\"ytgf\",\"value\":\"datavulesqjdbcypv\"}],\"\":{\"gafhbfp\":\"datafyqsf\",\"slmyrsojqpjba\":\"datafvqlmzpckxl\",\"dfulvm\":\"datafnxdi\",\"phdhtcopz\":\"dataalvcahy\"}},{\"type\":\"Activity\",\"name\":\"cexbtwicghxmeig\",\"description\":\"mmkwazkuemo\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"xmwq\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"vzczisiqnsiv\",\"value\":\"datajfu\"},{\"name\":\"qbatdnufvzxosrst\",\"value\":\"datavdtssa\"}],\"\":{\"pjslrfpxlutfbhs\":\"datadojimfaa\"}}],\"parameters\":{\"vcvutar\":{\"type\":\"Int\",\"defaultValue\":\"databxtabxdkboyqes\"},\"ikqz\":{\"type\":\"Object\",\"defaultValue\":\"datajppmil\"}},\"variables\":{\"ipj\":{\"type\":\"Array\",\"defaultValue\":\"datacqdnzhjlbdlhnk\"},\"r\":{\"type\":\"String\",\"defaultValue\":\"dataikxocfmkcnjzxezo\"},\"xyc\":{\"type\":\"String\",\"defaultValue\":\"datawthslztxixngwe\"}},\"concurrency\":97669330,\"annotations\":[\"datadf\",\"dataqnbco\"],\"runDimensions\":{\"prgxdcnbzp\":\"datascfbwkhleumib\",\"pzekm\":\"dataxoqum\",\"qnttmhs\":\"datapdvnanxrkwzlaomt\",\"cxyfje\":\"datawq\"},\"folder\":{\"name\":\"gelipoequjk\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datarxxcbptvvwf\"}}},\"name\":\"hljhinmh\",\"type\":\"wmrckvl\",\"etag\":\"zwd\",\"\":{\"xmzpf\":\"databsrjofxoktokmsyo\",\"dkbndkofrhuycn\":\"datattcmwqrbtad\",\"wxfkgzgveudmidt\":\"datayhodtugrw\"},\"id\":\"q\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PipelineResource response = manager.pipelines() - .getWithResponse("oxjqysfejddi", "gwckvoxlih", "gafznzemis", "unx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("q", response.id()); - Assertions.assertEquals("sanchrou", response.description()); - Assertions.assertEquals("ptdeumlfszxqrabk", response.activities().get(0).name()); - Assertions.assertEquals("eodgpqdcrn", response.activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, response.activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, response.activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("htuiws", response.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("zdayzfu", response.activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.INT, response.parameters().get("vcvutar").type()); - Assertions.assertEquals(VariableType.ARRAY, response.variables().get("ipj").type()); - Assertions.assertEquals(97669330, response.concurrency()); - Assertions.assertEquals("gelipoequjk", 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 a3721926714d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactoryMockTests.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.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"nqiighpxxw\",\"activities\":[{\"type\":\"Activity\",\"name\":\"mqugovcddxlrb\",\"description\":\"qrgjejabqvg\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"pxlyabjrzgssjf\",\"dependencyConditions\":[]},{\"activity\":\"urhku\",\"dependencyConditions\":[]},{\"activity\":\"phbwmbgwgmyglnsn\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qdsygdzzufrj\",\"value\":\"datawqwdglmfsjplfd\"},{\"name\":\"zlt\",\"value\":\"dataywykfuovk\"}],\"\":{\"pgvxii\":\"datazghtjxtzywoq\"}}],\"parameters\":{\"lt\":{\"type\":\"Float\",\"defaultValue\":\"datakthxudowj\"},\"cohsqufsyihsnzsj\":{\"type\":\"SecureString\",\"defaultValue\":\"datazq\"},\"jzalhunbmngstvnk\":{\"type\":\"Array\",\"defaultValue\":\"dataogyake\"},\"yinxxgxncoai\":{\"type\":\"Object\",\"defaultValue\":\"dataulltvlylbo\"}},\"variables\":{\"taocxaku\":{\"type\":\"Array\",\"defaultValue\":\"datamdjz\"}},\"concurrency\":64653521,\"annotations\":[\"datahan\"],\"runDimensions\":{\"el\":\"dataojod\"},\"folder\":{\"name\":\"dxqlrwwm\"},\"policy\":{\"elapsedTimeMetric\":{\"duration\":\"datavgusfrkjfrtauf\"}}},\"name\":\"xvzqine\",\"type\":\"jodvkn\",\"etag\":\"tttkhm\",\"\":{\"vdqfkjg\":\"datacasfqodc\",\"plxbxfrl\":\"datalcfoaabltvltt\"},\"id\":\"ikcnlbehxo\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.pipelines().listByFactory("ho", "cchynnm", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ikcnlbehxo", response.iterator().next().id()); - Assertions.assertEquals("nqiighpxxw", response.iterator().next().description()); - Assertions.assertEquals("mqugovcddxlrb", response.iterator().next().activities().get(0).name()); - Assertions.assertEquals("qrgjejabqvg", response.iterator().next().activities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, response.iterator().next().activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, - response.iterator().next().activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("pxlyabjrzgssjf", - response.iterator().next().activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("qdsygdzzufrj", - response.iterator().next().activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals(ParameterType.FLOAT, response.iterator().next().parameters().get("lt").type()); - Assertions.assertEquals(VariableType.ARRAY, response.iterator().next().variables().get("taocxaku").type()); - Assertions.assertEquals(64653521, response.iterator().next().concurrency()); - Assertions.assertEquals("dxqlrwwm", 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 e7c69056da3f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PolybaseSettingsTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PolybaseSettings; -import com.azure.resourcemanager.datafactory.models.PolybaseSettingsRejectType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PolybaseSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolybaseSettings model = BinaryData.fromString( - "{\"rejectType\":\"percentage\",\"rejectValue\":\"dataalynanmwz\",\"rejectSampleValue\":\"datab\",\"useTypeDefault\":\"datajrzfrxizor\",\"\":{\"fzdyoznidstofded\":\"datablybxijzknk\",\"biwxmcsxidaz\":\"datamfwabfgfw\"}}") - .toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.PERCENTAGE, model.rejectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolybaseSettings model = new PolybaseSettings().withRejectType(PolybaseSettingsRejectType.PERCENTAGE) - .withRejectValue("dataalynanmwz") - .withRejectSampleValue("datab") - .withUseTypeDefault("datajrzfrxizor") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(PolybaseSettings.class); - Assertions.assertEquals(PolybaseSettingsRejectType.PERCENTAGE, model.rejectType()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java deleted file mode 100644 index 00e463abeae0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PostgreSqlSource; - -public final class PostgreSqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlSource model = BinaryData.fromString( - "{\"type\":\"PostgreSqlSource\",\"query\":\"datayqdhaz\",\"queryTimeout\":\"dataug\",\"additionalColumns\":\"datasovo\",\"sourceRetryCount\":\"dataepkrncjrqhugu\",\"sourceRetryWait\":\"databqq\",\"maxConcurrentConnections\":\"datahcmvdowlqcyhfub\",\"disableMetricsCollection\":\"dataxqxxgrawbftznxfr\",\"\":{\"illjuco\":\"dataefiutbrn\",\"fim\":\"datarbkdieismdk\",\"lmn\":\"dataecij\"}}") - .toObject(PostgreSqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlSource model = new PostgreSqlSource().withSourceRetryCount("dataepkrncjrqhugu") - .withSourceRetryWait("databqq") - .withMaxConcurrentConnections("datahcmvdowlqcyhfub") - .withDisableMetricsCollection("dataxqxxgrawbftznxfr") - .withQueryTimeout("dataug") - .withAdditionalColumns("datasovo") - .withQuery("datayqdhaz"); - model = BinaryData.fromObject(model).toObject(PostgreSqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java deleted file mode 100644 index 4bc9cb620b56..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PostgreSqlTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PostgreSqlTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlTableDataset model = BinaryData.fromString( - "{\"type\":\"PostgreSqlTable\",\"typeProperties\":{\"tableName\":\"datansastl\",\"table\":\"datamgomicttrvlv\",\"schema\":\"datamxokxxamqecjrzvl\"},\"description\":\"vqxdemklphx\",\"structure\":\"datawlojkbgnfbrzj\",\"schema\":\"datasunhaevlah\",\"linkedServiceName\":{\"referenceName\":\"czywywuahwc\",\"parameters\":{\"jfdaj\":\"datawcnnaax\",\"omggew\":\"datafgi\",\"yznvussu\":\"dataqbxex\",\"xayzqbyeyw\":\"datakslws\"}},\"parameters\":{\"dzt\":{\"type\":\"String\",\"defaultValue\":\"datartlikff\"},\"dteqjmyqxuhg\":{\"type\":\"String\",\"defaultValue\":\"datafbgynzfwv\"},\"wrrlccklyf\":{\"type\":\"Array\",\"defaultValue\":\"datanyprijyoxxjxbs\"},\"apvibzi\":{\"type\":\"Array\",\"defaultValue\":\"dataspauemqomxoalknu\"}},\"annotations\":[\"dataichca\"],\"folder\":{\"name\":\"hjxnrkbnvfccklz\"},\"\":{\"pksywicklktgkdp\":\"datafgvlxyxmncti\",\"efuhb\":\"datatqjytdc\"}}") - .toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("vqxdemklphx", model.description()); - Assertions.assertEquals("czywywuahwc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("dzt").type()); - Assertions.assertEquals("hjxnrkbnvfccklz", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDataset model = new PostgreSqlTableDataset().withDescription("vqxdemklphx") - .withStructure("datawlojkbgnfbrzj") - .withSchema("datasunhaevlah") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("czywywuahwc") - .withParameters(mapOf("jfdaj", "datawcnnaax", "omggew", "datafgi", "yznvussu", "dataqbxex", - "xayzqbyeyw", "datakslws"))) - .withParameters(mapOf("dzt", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datartlikff"), - "dteqjmyqxuhg", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datafbgynzfwv"), - "wrrlccklyf", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datanyprijyoxxjxbs"), - "apvibzi", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataspauemqomxoalknu"))) - .withAnnotations(Arrays.asList("dataichca")) - .withFolder(new DatasetFolder().withName("hjxnrkbnvfccklz")) - .withTableName("datansastl") - .withTable("datamgomicttrvlv") - .withSchemaTypePropertiesSchema("datamxokxxamqecjrzvl"); - model = BinaryData.fromObject(model).toObject(PostgreSqlTableDataset.class); - Assertions.assertEquals("vqxdemklphx", model.description()); - Assertions.assertEquals("czywywuahwc", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("dzt").type()); - Assertions.assertEquals("hjxnrkbnvfccklz", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java deleted file mode 100644 index 5019d7b83bfc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlTableDatasetTypeProperties; - -public final class PostgreSqlTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"databvjsbgmlamoax\",\"table\":\"dataytn\",\"schema\":\"datavbpbl\"}") - .toObject(PostgreSqlTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlTableDatasetTypeProperties model - = new PostgreSqlTableDatasetTypeProperties().withTableName("databvjsbgmlamoax") - .withTable("dataytn") - .withSchema("datavbpbl"); - model = BinaryData.fromObject(model).toObject(PostgreSqlTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2SourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2SourceTests.java deleted file mode 100644 index 12e284459df7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2SourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PostgreSqlV2Source; - -public final class PostgreSqlV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlV2Source model = BinaryData.fromString( - "{\"type\":\"PostgreSqlV2Source\",\"query\":\"datapaf\",\"queryTimeout\":\"datax\",\"additionalColumns\":\"dataskelwzmjiigq\",\"sourceRetryCount\":\"datalcckgfoxvrb\",\"sourceRetryWait\":\"datajmenqcjjfxqt\",\"maxConcurrentConnections\":\"datafsvqyzgaweix\",\"disableMetricsCollection\":\"datablazwhdacz\",\"\":{\"zdxu\":\"dataduwlsovitpcsma\",\"ypvu\":\"datahmiu\"}}") - .toObject(PostgreSqlV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2Source model = new PostgreSqlV2Source().withSourceRetryCount("datalcckgfoxvrb") - .withSourceRetryWait("datajmenqcjjfxqt") - .withMaxConcurrentConnections("datafsvqyzgaweix") - .withDisableMetricsCollection("datablazwhdacz") - .withQueryTimeout("datax") - .withAdditionalColumns("dataskelwzmjiigq") - .withQuery("datapaf"); - model = BinaryData.fromObject(model).toObject(PostgreSqlV2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.java deleted file mode 100644 index 8001875c8967..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PostgreSqlV2TableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PostgreSqlV2TableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlV2TableDataset model = BinaryData.fromString( - "{\"type\":\"PostgreSqlV2Table\",\"typeProperties\":{\"table\":\"datasexheeocnqoubvep\",\"schema\":\"dataryszfhdxyfh\"},\"description\":\"hzbzhhavz\",\"structure\":\"dataxnvkdslcofuvtfue\",\"schema\":\"datauisaklhjfddxqfu\",\"linkedServiceName\":{\"referenceName\":\"subzsspmj\",\"parameters\":{\"wbztrt\":\"datalfauyvxpqwlkqd\",\"ffjdhgslormhbt\":\"dataldwvog\",\"sdylmnq\":\"datafcvxkylhc\"}},\"parameters\":{\"bgbh\":{\"type\":\"Object\",\"defaultValue\":\"databptmsgkwedwlxtzh\"},\"pkwmamrlfizjud\":{\"type\":\"SecureString\",\"defaultValue\":\"datarpjimvrrqfi\"},\"pngyhylqyafe\":{\"type\":\"String\",\"defaultValue\":\"dataih\"},\"u\":{\"type\":\"Int\",\"defaultValue\":\"dataodx\"}},\"annotations\":[\"dataxnxrqxrtzeargv\"],\"folder\":{\"name\":\"hbjhmvpjxsd\"},\"\":{\"ynepkt\":\"dataignybffqcw\",\"conyse\":\"datamwg\",\"ouoxfalo\":\"datajijfhpxni\"}}") - .toObject(PostgreSqlV2TableDataset.class); - Assertions.assertEquals("hzbzhhavz", model.description()); - Assertions.assertEquals("subzsspmj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("bgbh").type()); - Assertions.assertEquals("hbjhmvpjxsd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2TableDataset model - = new PostgreSqlV2TableDataset().withDescription("hzbzhhavz") - .withStructure("dataxnvkdslcofuvtfue") - .withSchema("datauisaklhjfddxqfu") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("subzsspmj") - .withParameters(mapOf("wbztrt", "datalfauyvxpqwlkqd", "ffjdhgslormhbt", "dataldwvog", "sdylmnq", - "datafcvxkylhc"))) - .withParameters(mapOf("bgbh", - new ParameterSpecification().withType(ParameterType.OBJECT) - .withDefaultValue("databptmsgkwedwlxtzh"), - "pkwmamrlfizjud", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datarpjimvrrqfi"), - "pngyhylqyafe", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataih"), "u", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataodx"))) - .withAnnotations(Arrays.asList("dataxnxrqxrtzeargv")) - .withFolder(new DatasetFolder().withName("hbjhmvpjxsd")) - .withTable("datasexheeocnqoubvep") - .withSchemaTypePropertiesSchema("dataryszfhdxyfh"); - model = BinaryData.fromObject(model).toObject(PostgreSqlV2TableDataset.class); - Assertions.assertEquals("hzbzhhavz", model.description()); - Assertions.assertEquals("subzsspmj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("bgbh").type()); - Assertions.assertEquals("hbjhmvpjxsd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTypePropertiesTests.java deleted file mode 100644 index ab3523081dbd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PostgreSqlV2TableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlV2TableDatasetTypeProperties; - -public final class PostgreSqlV2TableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PostgreSqlV2TableDatasetTypeProperties model - = BinaryData.fromString("{\"table\":\"dataskk\",\"schema\":\"dataorsyni\"}") - .toObject(PostgreSqlV2TableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PostgreSqlV2TableDatasetTypeProperties model - = new PostgreSqlV2TableDatasetTypeProperties().withTable("dataskk").withSchema("dataorsyni"); - model = BinaryData.fromObject(model).toObject(PostgreSqlV2TableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkMappingTests.java deleted file mode 100644 index c6e982eb3fb2..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\":\"oo\",\"dataflowSinks\":[{\"script\":\"hhe\",\"schemaLinkedService\":{\"referenceName\":\"j\",\"parameters\":{\"tkkf\":\"datahdonyleisawvdwmu\",\"opot\":\"datatonyrfmozu\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"kyzyi\",\"parameters\":{\"en\":\"datagdkbfqkeaipb\"}},\"name\":\"cvdrpwckivtknuc\",\"description\":\"bax\",\"dataset\":{\"referenceName\":\"erpoasyzze\",\"parameters\":{\"dbix\":\"dataqnn\",\"giydgee\":\"dataudmaniwkwtmqy\",\"llepppdfrgobr\":\"datapivsowcwehjqy\"}},\"linkedService\":{\"referenceName\":\"xcayyvriuvmme\",\"parameters\":{\"czxkxvrig\":\"dataimmwiri\",\"afpiejbpbdu\":\"datautxzascalwfefyg\",\"o\":\"dataaypsvedxphf\",\"mmitvviqs\":\"dataqqwxjnkbes\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ujhmdpey\",\"datasetParameters\":\"dataqwjqevwtkrjqnciw\",\"parameters\":{\"kgllmpkuxbluc\":\"datawngrrpdtinhc\",\"mpgusroqkjw\":\"datayhtkyqfynvt\"},\"\":{\"gko\":\"datajrkfcjtjqhfkws\"}}}]}") - .toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("oo", model.queryName()); - Assertions.assertEquals("cvdrpwckivtknuc", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("bax", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("erpoasyzze", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("xcayyvriuvmme", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("ujhmdpey", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("j", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kyzyi", model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("hhe", model.dataflowSinks().get(0).script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySinkMapping model - = new PowerQuerySinkMapping().withQueryName("oo") - .withDataflowSinks(Arrays.asList(new PowerQuerySink().withName("cvdrpwckivtknuc") - .withDescription("bax") - .withDataset(new DatasetReference().withReferenceName("erpoasyzze") - .withParameters(mapOf("dbix", "dataqnn", "giydgee", "dataudmaniwkwtmqy", "llepppdfrgobr", - "datapivsowcwehjqy"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("xcayyvriuvmme") - .withParameters(mapOf("czxkxvrig", "dataimmwiri", "afpiejbpbdu", "datautxzascalwfefyg", "o", - "dataaypsvedxphf", "mmitvviqs", "dataqqwxjnkbes"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ujhmdpey") - .withDatasetParameters("dataqwjqevwtkrjqnciw") - .withParameters(mapOf("kgllmpkuxbluc", "datawngrrpdtinhc", "mpgusroqkjw", "datayhtkyqfynvt")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("j") - .withParameters(mapOf("tkkf", "datahdonyleisawvdwmu", "opot", "datatonyrfmozu"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("kyzyi") - .withParameters(mapOf("en", "datagdkbfqkeaipb"))) - .withScript("hhe"))); - model = BinaryData.fromObject(model).toObject(PowerQuerySinkMapping.class); - Assertions.assertEquals("oo", model.queryName()); - Assertions.assertEquals("cvdrpwckivtknuc", model.dataflowSinks().get(0).name()); - Assertions.assertEquals("bax", model.dataflowSinks().get(0).description()); - Assertions.assertEquals("erpoasyzze", model.dataflowSinks().get(0).dataset().referenceName()); - Assertions.assertEquals("xcayyvriuvmme", model.dataflowSinks().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, - model.dataflowSinks().get(0).flowlet().type()); - Assertions.assertEquals("ujhmdpey", model.dataflowSinks().get(0).flowlet().referenceName()); - Assertions.assertEquals("j", model.dataflowSinks().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("kyzyi", model.dataflowSinks().get(0).rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("hhe", model.dataflowSinks().get(0).script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java deleted file mode 100644 index dd33a6f731d3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySinkTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySink model = BinaryData.fromString( - "{\"script\":\"dfmmxjdnajuopjy\",\"schemaLinkedService\":{\"referenceName\":\"mk\",\"parameters\":{\"jk\":\"datavcwloqd\"}},\"rejectedDataLinkedService\":{\"referenceName\":\"xxr\",\"parameters\":{\"xga\":\"databuzm\",\"pr\":\"datatdtkwppthuz\",\"qfxy\":\"dataimrljdp\"}},\"name\":\"mhk\",\"description\":\"baewht\",\"dataset\":{\"referenceName\":\"loamfmxtllfltym\",\"parameters\":{\"bqbgamklilirwdv\":\"datarrfijhgg\",\"rxqwqnjxrd\":\"datafhsdpzouhkt\",\"czcxdfw\":\"dataddtullygta\",\"yf\":\"dataa\"}},\"linkedService\":{\"referenceName\":\"xrljphraspi\",\"parameters\":{\"fgsmdrjuqb\":\"dataimixlmdbgice\",\"paxwfqty\":\"dataxtokljmtz\",\"rcltungbsoljckm\":\"dataqi\",\"zbkuckgkdsksw\":\"datai\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qqcqikclsmal\",\"datasetParameters\":\"dataswoykdn\",\"parameters\":{\"lqcwnynll\":\"dataaxwmgzru\",\"btsertoxa\":\"dataiqbcbgv\"},\"\":{\"etwmlgicvnp\":\"datauvjhxmnrqstjc\"}}}") - .toObject(PowerQuerySink.class); - Assertions.assertEquals("mhk", model.name()); - Assertions.assertEquals("baewht", model.description()); - Assertions.assertEquals("loamfmxtllfltym", model.dataset().referenceName()); - Assertions.assertEquals("xrljphraspi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("qqcqikclsmal", model.flowlet().referenceName()); - Assertions.assertEquals("mk", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("xxr", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("dfmmxjdnajuopjy", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySink model = new PowerQuerySink().withName("mhk") - .withDescription("baewht") - .withDataset(new DatasetReference().withReferenceName("loamfmxtllfltym") - .withParameters(mapOf("bqbgamklilirwdv", "datarrfijhgg", "rxqwqnjxrd", "datafhsdpzouhkt", "czcxdfw", - "dataddtullygta", "yf", "dataa"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("xrljphraspi") - .withParameters(mapOf("fgsmdrjuqb", "dataimixlmdbgice", "paxwfqty", "dataxtokljmtz", "rcltungbsoljckm", - "dataqi", "zbkuckgkdsksw", "datai"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qqcqikclsmal") - .withDatasetParameters("dataswoykdn") - .withParameters(mapOf("lqcwnynll", "dataaxwmgzru", "btsertoxa", "dataiqbcbgv")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService( - new LinkedServiceReference().withReferenceName("mk").withParameters(mapOf("jk", "datavcwloqd"))) - .withRejectedDataLinkedService(new LinkedServiceReference().withReferenceName("xxr") - .withParameters(mapOf("xga", "databuzm", "pr", "datatdtkwppthuz", "qfxy", "dataimrljdp"))) - .withScript("dfmmxjdnajuopjy"); - model = BinaryData.fromObject(model).toObject(PowerQuerySink.class); - Assertions.assertEquals("mhk", model.name()); - Assertions.assertEquals("baewht", model.description()); - Assertions.assertEquals("loamfmxtllfltym", model.dataset().referenceName()); - Assertions.assertEquals("xrljphraspi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("qqcqikclsmal", model.flowlet().referenceName()); - Assertions.assertEquals("mk", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("xxr", model.rejectedDataLinkedService().referenceName()); - Assertions.assertEquals("dfmmxjdnajuopjy", model.script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java deleted file mode 100644 index 9c78a3794c2b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQuerySourceTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQuerySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQuerySource model = BinaryData.fromString( - "{\"script\":\"qsnxfbxufeapdr\",\"schemaLinkedService\":{\"referenceName\":\"yvbsuadu\",\"parameters\":{\"qltd\":\"datadkaxpfobkzhmhj\",\"rkgzkyhudbkuw\":\"dataluqrojadhfztlray\",\"kfecjvxf\":\"datazqxlcwe\",\"ppwooaj\":\"dataqufqizj\"}},\"name\":\"yyjmjjxiz\",\"description\":\"xhnzlslekcttgzkj\",\"dataset\":{\"referenceName\":\"qpdwad\",\"parameters\":{\"qymjzucwwmejjqhd\":\"dataztldsvczdjiah\"}},\"linkedService\":{\"referenceName\":\"vmqxi\",\"parameters\":{\"qpgaixwrgrkk\":\"datakyfozkbnzxbyp\",\"swqi\":\"dataerf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"pw\",\"datasetParameters\":\"dataggicwnxhtfmcqbs\",\"parameters\":{\"djxh\":\"datapgchzpgfqum\"},\"\":{\"kynrceqavf\":\"datago\"}}}") - .toObject(PowerQuerySource.class); - Assertions.assertEquals("yyjmjjxiz", model.name()); - Assertions.assertEquals("xhnzlslekcttgzkj", model.description()); - Assertions.assertEquals("qpdwad", model.dataset().referenceName()); - Assertions.assertEquals("vmqxi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("pw", model.flowlet().referenceName()); - Assertions.assertEquals("yvbsuadu", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("qsnxfbxufeapdr", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQuerySource model = new PowerQuerySource().withName("yyjmjjxiz") - .withDescription("xhnzlslekcttgzkj") - .withDataset(new DatasetReference().withReferenceName("qpdwad") - .withParameters(mapOf("qymjzucwwmejjqhd", "dataztldsvczdjiah"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("vmqxi") - .withParameters(mapOf("qpgaixwrgrkk", "datakyfozkbnzxbyp", "swqi", "dataerf"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("pw") - .withDatasetParameters("dataggicwnxhtfmcqbs") - .withParameters(mapOf("djxh", "datapgchzpgfqum")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("yvbsuadu") - .withParameters(mapOf("qltd", "datadkaxpfobkzhmhj", "rkgzkyhudbkuw", "dataluqrojadhfztlray", "kfecjvxf", - "datazqxlcwe", "ppwooaj", "dataqufqizj"))) - .withScript("qsnxfbxufeapdr"); - model = BinaryData.fromObject(model).toObject(PowerQuerySource.class); - Assertions.assertEquals("yyjmjjxiz", model.name()); - Assertions.assertEquals("xhnzlslekcttgzkj", model.description()); - Assertions.assertEquals("qpdwad", model.dataset().referenceName()); - Assertions.assertEquals("vmqxi", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("pw", model.flowlet().referenceName()); - Assertions.assertEquals("yvbsuadu", model.schemaLinkedService().referenceName()); - Assertions.assertEquals("qsnxfbxufeapdr", model.script()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java deleted file mode 100644 index 47d55b07c752..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PowerQueryTypePropertiesTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PowerQueryTypeProperties; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PowerQueryTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PowerQueryTypeProperties model = BinaryData.fromString( - "{\"sources\":[{\"script\":\"n\",\"schemaLinkedService\":{\"referenceName\":\"ge\",\"parameters\":{\"dyfhb\":\"dataqx\",\"aqjsgyzstujr\":\"datawkhojqttbspvkhg\",\"sf\":\"dataxrk\"}},\"name\":\"rlduyehiiittugy\",\"description\":\"wrldax\",\"dataset\":{\"referenceName\":\"fqa\",\"parameters\":{\"dzciggb\":\"dataozjv\",\"o\":\"datavt\",\"doey\":\"datawalzyxwhoeamoeo\",\"kwmnfeub\":\"datafpnimtwuuhaueg\"}},\"linkedService\":{\"referenceName\":\"jyrkwfug\",\"parameters\":{\"rhzz\":\"datarrkuumnqd\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"ueoqusvwluj\",\"datasetParameters\":\"datawnibittoz\",\"parameters\":{\"ctxegt\":\"dataqumqvfmwcaddt\",\"elfnzzryiz\":\"datagwyur\"},\"\":{\"ayunomirhpfabenq\":\"datagdebx\",\"mgewayxf\":\"dataam\"}}}],\"script\":\"bcpjstbhem\",\"documentLocale\":\"u\"}") - .toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("rlduyehiiittugy", model.sources().get(0).name()); - Assertions.assertEquals("wrldax", model.sources().get(0).description()); - Assertions.assertEquals("fqa", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jyrkwfug", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("ueoqusvwluj", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ge", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("n", model.sources().get(0).script()); - Assertions.assertEquals("bcpjstbhem", model.script()); - Assertions.assertEquals("u", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PowerQueryTypeProperties model = new PowerQueryTypeProperties() - .withSources(Arrays.asList(new PowerQuerySource().withName("rlduyehiiittugy") - .withDescription("wrldax") - .withDataset(new DatasetReference().withReferenceName("fqa") - .withParameters(mapOf("dzciggb", "dataozjv", "o", "datavt", "doey", "datawalzyxwhoeamoeo", - "kwmnfeub", "datafpnimtwuuhaueg"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("jyrkwfug") - .withParameters(mapOf("rhzz", "datarrkuumnqd"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("ueoqusvwluj") - .withDatasetParameters("datawnibittoz") - .withParameters(mapOf("ctxegt", "dataqumqvfmwcaddt", "elfnzzryiz", "datagwyur")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ge") - .withParameters(mapOf("dyfhb", "dataqx", "aqjsgyzstujr", "datawkhojqttbspvkhg", "sf", "dataxrk"))) - .withScript("n"))) - .withScript("bcpjstbhem") - .withDocumentLocale("u"); - model = BinaryData.fromObject(model).toObject(PowerQueryTypeProperties.class); - Assertions.assertEquals("rlduyehiiittugy", model.sources().get(0).name()); - Assertions.assertEquals("wrldax", model.sources().get(0).description()); - Assertions.assertEquals("fqa", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("jyrkwfug", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("ueoqusvwluj", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("ge", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("n", model.sources().get(0).script()); - Assertions.assertEquals("bcpjstbhem", model.script()); - Assertions.assertEquals("u", model.documentLocale()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java deleted file mode 100644 index f3822192f5df..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrestoDatasetTypeProperties; - -public final class PrestoDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datafmoubukqm\",\"table\":\"datarzrnobvvequz\",\"schema\":\"dataapg\"}") - .toObject(PrestoDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoDatasetTypeProperties model = new PrestoDatasetTypeProperties().withTableName("datafmoubukqm") - .withTable("datarzrnobvvequz") - .withSchema("dataapg"); - model = BinaryData.fromObject(model).toObject(PrestoDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java deleted file mode 100644 index d1e8d381e19f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoObjectDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PrestoObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PrestoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoObjectDataset model = BinaryData.fromString( - "{\"type\":\"PrestoObject\",\"typeProperties\":{\"tableName\":\"dataceqtl\",\"table\":\"datap\",\"schema\":\"datam\"},\"description\":\"ccurn\",\"structure\":\"dataunlakgixhqj\",\"schema\":\"datagqwbbxiwtwfgo\",\"linkedServiceName\":{\"referenceName\":\"lalvemnnzug\",\"parameters\":{\"mtsnvo\":\"datayydsyweoh\",\"tsw\":\"datavb\",\"vdticcaf\":\"datadopnsep\",\"ppwxnikfz\":\"datagzwkopxdkbtwoqh\"}},\"parameters\":{\"jzrfx\":{\"type\":\"Array\",\"defaultValue\":\"dataduvqzjnnuww\"}},\"annotations\":[\"databcqjkbkjcurxrjw\",\"datazrieitqmlzuw\"],\"folder\":{\"name\":\"zqajxkmpe\"},\"\":{\"eszunb\":\"datalgeehbdjgplnlxr\"}}") - .toObject(PrestoObjectDataset.class); - Assertions.assertEquals("ccurn", model.description()); - Assertions.assertEquals("lalvemnnzug", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jzrfx").type()); - Assertions.assertEquals("zqajxkmpe", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoObjectDataset model = new PrestoObjectDataset().withDescription("ccurn") - .withStructure("dataunlakgixhqj") - .withSchema("datagqwbbxiwtwfgo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("lalvemnnzug") - .withParameters(mapOf("mtsnvo", "datayydsyweoh", "tsw", "datavb", "vdticcaf", "datadopnsep", - "ppwxnikfz", "datagzwkopxdkbtwoqh"))) - .withParameters(mapOf("jzrfx", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataduvqzjnnuww"))) - .withAnnotations(Arrays.asList("databcqjkbkjcurxrjw", "datazrieitqmlzuw")) - .withFolder(new DatasetFolder().withName("zqajxkmpe")) - .withTableName("dataceqtl") - .withTable("datap") - .withSchemaTypePropertiesSchema("datam"); - model = BinaryData.fromObject(model).toObject(PrestoObjectDataset.class); - Assertions.assertEquals("ccurn", model.description()); - Assertions.assertEquals("lalvemnnzug", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("jzrfx").type()); - Assertions.assertEquals("zqajxkmpe", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java deleted file mode 100644 index 235e5cd69c4e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrestoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrestoSource; - -public final class PrestoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrestoSource model = BinaryData.fromString( - "{\"type\":\"PrestoSource\",\"query\":\"dataahzylspzcyrhynl\",\"queryTimeout\":\"datariaecvagud\",\"additionalColumns\":\"dataadgyhqrasxe\",\"sourceRetryCount\":\"datajqqhbkxiu\",\"sourceRetryWait\":\"dataafbhz\",\"maxConcurrentConnections\":\"datavdyrzijggbpdpz\",\"disableMetricsCollection\":\"dataqfznxzaliicr\",\"\":{\"qzwnoghqdlj\":\"datahmflvxilaytjyw\"}}") - .toObject(PrestoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrestoSource model = new PrestoSource().withSourceRetryCount("datajqqhbkxiu") - .withSourceRetryWait("dataafbhz") - .withMaxConcurrentConnections("datavdyrzijggbpdpz") - .withDisableMetricsCollection("dataqfznxzaliicr") - .withQueryTimeout("datariaecvagud") - .withAdditionalColumns("dataadgyhqrasxe") - .withQuery("dataahzylspzcyrhynl"); - 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 f36fad6624e5..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"pmbtmcp\",\"privateEndpoint\":{\"id\":\"p\"},\"privateLinkServiceConnectionState\":{\"status\":\"xamsgfvuffd\",\"description\":\"k\",\"actionsRequired\":\"kmd\"}},\"name\":\"rgmjpckefw\",\"type\":\"u\",\"etag\":\"a\",\"id\":\"ysyprskjii\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.privateEndPointConnections() - .listByFactory("uyoydzafknnl", "sfbpjyvuhy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ysyprskjii", response.iterator().next().id()); - Assertions.assertEquals("xamsgfvuffd", - response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("k", - response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("kmd", - response.iterator().next().properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java deleted file mode 100644 index 0db1f0a730c9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionListResponseTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateEndpointConnectionListResponse; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"dikdfrdbi\",\"privateEndpoint\":{\"id\":\"jgeihfqlggwfi\"},\"privateLinkServiceConnectionState\":{\"status\":\"xmjpbyep\",\"description\":\"gt\",\"actionsRequired\":\"j\"}},\"name\":\"cmyfqipgxhnpo\",\"type\":\"qwcabvnui\",\"etag\":\"ey\",\"id\":\"wlpaugmrmfjlrxwt\"},{\"properties\":{\"provisioningState\":\"khfkvcisi\",\"privateEndpoint\":{\"id\":\"a\"},\"privateLinkServiceConnectionState\":{\"status\":\"xjw\",\"description\":\"vedwcgyeewx\",\"actionsRequired\":\"qbpsmg\"}},\"name\":\"guamlj\",\"type\":\"rgmsplzga\",\"etag\":\"cshhv\",\"id\":\"wgnxkympqanxrj\"},{\"properties\":{\"provisioningState\":\"tw\",\"privateEndpoint\":{\"id\":\"oypnyg\"},\"privateLinkServiceConnectionState\":{\"status\":\"xcy\",\"description\":\"kgmnsghpxyc\",\"actionsRequired\":\"drwjjkhvyom\"}},\"name\":\"luzvxnq\",\"type\":\"rpqpd\",\"etag\":\"mkoisqcssf\",\"id\":\"uifmc\"}],\"nextLink\":\"p\"}") - .toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("wlpaugmrmfjlrxwt", model.value().get(0).id()); - Assertions.assertEquals("xmjpbyep", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gt", - model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("j", - model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("p", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionListResponse model - = new PrivateEndpointConnectionListResponse().withValue(Arrays.asList( - new PrivateEndpointConnectionResourceInner().withId("wlpaugmrmfjlrxwt") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("xmjpbyep") - .withDescription("gt") - .withActionsRequired("j"))), - new PrivateEndpointConnectionResourceInner().withId("wgnxkympqanxrj") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("xjw") - .withDescription("vedwcgyeewx") - .withActionsRequired("qbpsmg"))), - new PrivateEndpointConnectionResourceInner().withId("uifmc") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("xcy") - .withDescription("kgmnsghpxyc") - .withActionsRequired("drwjjkhvyom"))))) - .withNextLink("p"); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResponse.class); - Assertions.assertEquals("wlpaugmrmfjlrxwt", model.value().get(0).id()); - Assertions.assertEquals("xmjpbyep", - model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gt", - model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("j", - model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("p", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index f4d425571c5b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationsCreateOrUpdateWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"c\",\"privateEndpoint\":{\"id\":\"juuii\"},\"privateLinkServiceConnectionState\":{\"status\":\"t\",\"description\":\"rbo\",\"actionsRequired\":\"xyhpukcmxbis\"}},\"name\":\"itjovjrirg\",\"type\":\"soacbxbioxtqxrbr\",\"etag\":\"znuyczlyl\",\"id\":\"rziaxigeosmuh\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PrivateEndpointConnectionResource response = manager.privateEndpointConnectionOperations() - .define("t") - .withExistingFactory("jnoibclfqdtfj", "tvohywyv") - .withProperties(new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("lqyhabgocqry") - .withDescription("vofnhckll") - .withActionsRequired("grkvlqqkpxvemj")) - .withPrivateEndpoint(new PrivateEndpoint().withId("anefwsodnlwonpb"))) - .withIfMatch("eodhtltooikz") - .create(); - - Assertions.assertEquals("rziaxigeosmuh", response.id()); - Assertions.assertEquals("t", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rbo", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("xyhpukcmxbis", - 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 9922f5273acd..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.privateEndpointConnectionOperations() - .deleteWithResponse("ebx", "dahhiid", "ogakrpmjodbdcy", 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 e8deffc926a7..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"uzhidpxv\",\"privateEndpoint\":{\"id\":\"aftfdxhfusjxnadi\"},\"privateLinkServiceConnectionState\":{\"status\":\"dzfhzihrxgvubs\",\"description\":\"jr\",\"actionsRequired\":\"oujvz\"}},\"name\":\"isqflmalmxv\",\"type\":\"dp\",\"etag\":\"njkenrl\",\"id\":\"mslpg\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PrivateEndpointConnectionResource response = manager.privateEndpointConnectionOperations() - .getWithResponse("vbvkvomnoslbkrh", "nvozjudg", "dsflitmm", "vuzofuebabrsfu", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mslpg", response.id()); - Assertions.assertEquals("dzfhzihrxgvubs", response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jr", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("oujvz", response.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java deleted file mode 100644 index 2b5f41f81ad8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionResourceInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"dqzrdzsyloll\",\"privateEndpoint\":{\"id\":\"czzydmxzjij\"},\"privateLinkServiceConnectionState\":{\"status\":\"aurkihcirlde\",\"description\":\"rdcoxnbkkj\",\"actionsRequired\":\"urnnqbnqbpiz\"}},\"name\":\"ltgrdogypxrxv\",\"type\":\"ihwuhvctafsrbxrb\",\"etag\":\"li\",\"id\":\"xihspnxwq\"}") - .toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("xihspnxwq", model.id()); - Assertions.assertEquals("aurkihcirlde", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rdcoxnbkkj", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("urnnqbnqbpiz", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionResourceInner model = new PrivateEndpointConnectionResourceInner().withId("xihspnxwq") - .withProperties(new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("aurkihcirlde") - .withDescription("rdcoxnbkkj") - .withActionsRequired("urnnqbnqbpiz"))); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals("xihspnxwq", model.id()); - Assertions.assertEquals("aurkihcirlde", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rdcoxnbkkj", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("urnnqbnqbpiz", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java deleted file mode 100644 index e3462c1616d0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"pli\"}").toObject(PrivateEndpoint.class); - Assertions.assertEquals("pli", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("pli"); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("pli", model.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java deleted file mode 100644 index 6687a6448d89..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestResourceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequestResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionApprovalRequestResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionApprovalRequestResource model = BinaryData.fromString( - "{\"properties\":{\"privateLinkServiceConnectionState\":{\"status\":\"ubmdnafcbqwre\",\"description\":\"ela\",\"actionsRequired\":\"cigeleohdbvqvw\"},\"privateEndpoint\":{\"id\":\"opwbeonrlkwzd\"}},\"name\":\"bxcea\",\"type\":\"cptsoqfyiase\",\"etag\":\"hkrttzrazis\",\"id\":\"kiuemv\"}") - .toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("kiuemv", model.id()); - Assertions.assertEquals("ubmdnafcbqwre", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ela", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("cigeleohdbvqvw", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("opwbeonrlkwzd", model.properties().privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequestResource model - = new PrivateLinkConnectionApprovalRequestResource().withId("kiuemv") - .withProperties(new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("ubmdnafcbqwre") - .withDescription("ela") - .withActionsRequired("cigeleohdbvqvw")) - .withPrivateEndpoint(new PrivateEndpoint().withId("opwbeonrlkwzd"))); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequestResource.class); - Assertions.assertEquals("kiuemv", model.id()); - Assertions.assertEquals("ubmdnafcbqwre", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ela", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("cigeleohdbvqvw", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("opwbeonrlkwzd", model.properties().privateEndpoint().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java deleted file mode 100644 index ba5f84787289..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionApprovalRequestTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateEndpoint; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionApprovalRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionApprovalRequest model = BinaryData.fromString( - "{\"privateLinkServiceConnectionState\":{\"status\":\"wzohm\",\"description\":\"xxbsojklinhmd\",\"actionsRequired\":\"ysprq\"},\"privateEndpoint\":{\"id\":\"zxojpslsv\"}}") - .toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("wzohm", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xxbsojklinhmd", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ysprq", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("zxojpslsv", model.privateEndpoint().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionApprovalRequest model = new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("wzohm") - .withDescription("xxbsojklinhmd") - .withActionsRequired("ysprq")) - .withPrivateEndpoint(new PrivateEndpoint().withId("zxojpslsv")); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionApprovalRequest.class); - Assertions.assertEquals("wzohm", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xxbsojklinhmd", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ysprq", model.privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("zxojpslsv", model.privateEndpoint().id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java deleted file mode 100644 index f80d7abb8e07..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkConnectionStateTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkConnectionStateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkConnectionState model = BinaryData - .fromString("{\"status\":\"thwmgnmbsc\",\"description\":\"xigdhxiidlope\",\"actionsRequired\":\"wdpyq\"}") - .toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("thwmgnmbsc", model.status()); - Assertions.assertEquals("xigdhxiidlope", model.description()); - Assertions.assertEquals("wdpyq", model.actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkConnectionState model = new PrivateLinkConnectionState().withStatus("thwmgnmbsc") - .withDescription("xigdhxiidlope") - .withActionsRequired("wdpyq"); - model = BinaryData.fromObject(model).toObject(PrivateLinkConnectionState.class); - Assertions.assertEquals("thwmgnmbsc", model.status()); - Assertions.assertEquals("xigdhxiidlope", model.description()); - Assertions.assertEquals("wdpyq", model.actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java deleted file mode 100644 index 5b3c70ffa363..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; - -public final class PrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"lpdwwexymzvlazi\",\"requiredMembers\":[\"pwvqsgnyyu\",\"ziven\",\"rpmey\"],\"requiredZoneNames\":[\"kpatlbijpzgsks\",\"fhfv\",\"lmknbnxwcdom\",\"pvfqawz\"]}") - .toObject(PrivateLinkResourceProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceProperties model = new PrivateLinkResourceProperties(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java deleted file mode 100644 index d8fdaf29cbca..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResource model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"rqofulopmjnlexwh\",\"requiredMembers\":[\"pibkephuu\"],\"requiredZoneNames\":[\"ctatoyintqpbrlcy\",\"duczkgof\"]},\"name\":\"fsrucv\",\"type\":\"rpcjttbstvjeaqnr\",\"etag\":\"vfkoxml\",\"id\":\"ktuidvrm\"}") - .toObject(PrivateLinkResource.class); - Assertions.assertEquals("ktuidvrm", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResource model - = new PrivateLinkResource().withId("ktuidvrm").withProperties(new PrivateLinkResourceProperties()); - model = BinaryData.fromObject(model).toObject(PrivateLinkResource.class); - Assertions.assertEquals("ktuidvrm", model.id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetWithResponseMockTests.java deleted file mode 100644 index dd0a413d468e..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"scnbrwhsq\",\"requiredMembers\":[\"m\"],\"requiredZoneNames\":[\"ryexhdigmgs\",\"zhxvaunuus\",\"tzfvzlqspavxfpbi\"]},\"name\":\"sbzu\",\"type\":\"ranngwldymuehv\",\"etag\":\"rtsnclzyun\",\"id\":\"ogagtjcmlyhp\"},{\"properties\":{\"groupId\":\"ix\",\"requiredMembers\":[\"vkwenlc\",\"toibgvaaz\"],\"requiredZoneNames\":[\"aocfnffjxdcc\",\"uzqwvckewlyrw\"]},\"name\":\"psubawzaf\",\"type\":\"zh\",\"etag\":\"bxcelvaww\",\"id\":\"btkyjvzz\"},{\"properties\":{\"groupId\":\"li\",\"requiredMembers\":[\"chsjuacdq\",\"ryo\",\"kqo\"],\"requiredZoneNames\":[\"epml\",\"kzdwietfxpdzzli\",\"k\"]},\"name\":\"wfkanuqfle\",\"type\":\"mr\",\"etag\":\"xniibcilyg\",\"id\":\"i\"},{\"properties\":{\"groupId\":\"jhqfuqomwhhigy\",\"requiredMembers\":[\"ewcvlj\"],\"requiredZoneNames\":[\"nersgrtjmdepa\",\"nywknucsr\",\"fmcrye\"]},\"name\":\"lx\",\"type\":\"hntsqsphieqgoioe\",\"etag\":\"ott\",\"id\":\"fkwzkwuwgzver\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PrivateLinkResourcesWrapper response = manager.privateLinkResources() - .getWithResponse("hnzsrgiwvzepg", "jtuzqreprn", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ogagtjcmlyhp", response.value().get(0).id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java deleted file mode 100644 index 65dccaac0782..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesWrapperInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.PrivateLinkResourcesWrapperInner; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResource; -import com.azure.resourcemanager.datafactory.models.PrivateLinkResourceProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourcesWrapperInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourcesWrapperInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"woyxqvapcohhou\",\"requiredMembers\":[\"q\",\"jxcx\"],\"requiredZoneNames\":[\"dcgdzbenribca\",\"etzqd\",\"tjwfljhznamtua\"]},\"name\":\"zwcjjncqtj\",\"type\":\"izvg\",\"etag\":\"atzuuv\",\"id\":\"ngrebwg\"},{\"properties\":{\"groupId\":\"ttzlswvajqfutlx\",\"requiredMembers\":[\"zasunwqrjzfrgq\",\"aohcmbuocn\",\"r\",\"hmbpyryxamebly\"],\"requiredZoneNames\":[\"kfkmrocxnehvsmt\",\"dlfp\"]},\"name\":\"pucygvoavyunss\",\"type\":\"ghiee\",\"etag\":\"lgvvpaseksgbu\",\"id\":\"ntuygdhgaqipir\"}]}") - .toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("ngrebwg", model.value().get(0).id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourcesWrapperInner model = new PrivateLinkResourcesWrapperInner().withValue(Arrays.asList( - new PrivateLinkResource().withId("ngrebwg").withProperties(new PrivateLinkResourceProperties()), - new PrivateLinkResource().withId("ntuygdhgaqipir").withProperties(new PrivateLinkResourceProperties()))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourcesWrapperInner.class); - Assertions.assertEquals("ngrebwg", model.value().get(0).id()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java deleted file mode 100644 index 7b31f7d8a302..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/PurviewConfigurationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PurviewConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class PurviewConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PurviewConfiguration model - = BinaryData.fromString("{\"purviewResourceId\":\"stkiiuxhqyud\"}").toObject(PurviewConfiguration.class); - Assertions.assertEquals("stkiiuxhqyud", model.purviewResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PurviewConfiguration model = new PurviewConfiguration().withPurviewResourceId("stkiiuxhqyud"); - model = BinaryData.fromObject(model).toObject(PurviewConfiguration.class); - Assertions.assertEquals("stkiiuxhqyud", model.purviewResourceId()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java deleted file mode 100644 index 847abb2e8640..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QueryDataFlowDebugSessionsResponseTests.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.DataFlowDebugSessionInfoInner; -import com.azure.resourcemanager.datafactory.models.QueryDataFlowDebugSessionsResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class QueryDataFlowDebugSessionsResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QueryDataFlowDebugSessionsResponse model = BinaryData.fromString( - "{\"value\":[{\"dataFlowName\":\"qpbtuodxes\",\"computeType\":\"bbelawumuaslzk\",\"coreCount\":602871579,\"nodeCount\":1954370073,\"integrationRuntimeName\":\"cqucwyhahnom\",\"sessionId\":\"kywuhpsvfuu\",\"startTime\":\"tlwexxwlalniexz\",\"timeToLiveInMinutes\":1922531139,\"lastActivityTime\":\"gepqtybbwwpg\",\"\":{\"xkjibnxmy\":\"datachzyvlixqnrk\"}},{\"dataFlowName\":\"xs\",\"computeType\":\"rntvlwijp\",\"coreCount\":169879542,\"nodeCount\":1924013089,\"integrationRuntimeName\":\"qqpwcyyuf\",\"sessionId\":\"runcuwmqspkcd\",\"startTime\":\"hlctddunqn\",\"timeToLiveInMinutes\":981773620,\"lastActivityTime\":\"chrqb\",\"\":{\"qqoli\":\"datarcgegydcwboxjum\"}},{\"dataFlowName\":\"raiouaubrjtl\",\"computeType\":\"xfuojrn\",\"coreCount\":1614609688,\"nodeCount\":2143335427,\"integrationRuntimeName\":\"pasccbi\",\"sessionId\":\"mzdlyjdfqwmkyo\",\"startTime\":\"fdvruz\",\"timeToLiveInMinutes\":605414939,\"lastActivityTime\":\"j\",\"\":{\"tngfdgugeyzihgr\":\"datatfnmdx\",\"absnmfpp\":\"datayui\",\"yhsgz\":\"dataojeevy\"}},{\"dataFlowName\":\"zbgomfgbeg\",\"computeType\":\"gleohi\",\"coreCount\":131865797,\"nodeCount\":974044007,\"integrationRuntimeName\":\"ankrrfxee\",\"sessionId\":\"tijv\",\"startTime\":\"vbmqzbqq\",\"timeToLiveInMinutes\":498607950,\"lastActivityTime\":\"rnwxacevehjkuyxo\",\"\":{\"inmfgvxirp\":\"dataaoqltfaey\",\"prlpy\":\"datahriypoqeyhlqhy\"}}],\"nextLink\":\"uciqdsme\"}") - .toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("qpbtuodxes", model.value().get(0).dataFlowName()); - Assertions.assertEquals("bbelawumuaslzk", model.value().get(0).computeType()); - Assertions.assertEquals(602871579, model.value().get(0).coreCount()); - Assertions.assertEquals(1954370073, model.value().get(0).nodeCount()); - Assertions.assertEquals("cqucwyhahnom", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("kywuhpsvfuu", model.value().get(0).sessionId()); - Assertions.assertEquals("tlwexxwlalniexz", model.value().get(0).startTime()); - Assertions.assertEquals(1922531139, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("gepqtybbwwpg", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("uciqdsme", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QueryDataFlowDebugSessionsResponse model = new QueryDataFlowDebugSessionsResponse().withValue(Arrays.asList( - new DataFlowDebugSessionInfoInner().withDataFlowName("qpbtuodxes") - .withComputeType("bbelawumuaslzk") - .withCoreCount(602871579) - .withNodeCount(1954370073) - .withIntegrationRuntimeName("cqucwyhahnom") - .withSessionId("kywuhpsvfuu") - .withStartTime("tlwexxwlalniexz") - .withTimeToLiveInMinutes(1922531139) - .withLastActivityTime("gepqtybbwwpg") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("xs") - .withComputeType("rntvlwijp") - .withCoreCount(169879542) - .withNodeCount(1924013089) - .withIntegrationRuntimeName("qqpwcyyuf") - .withSessionId("runcuwmqspkcd") - .withStartTime("hlctddunqn") - .withTimeToLiveInMinutes(981773620) - .withLastActivityTime("chrqb") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("raiouaubrjtl") - .withComputeType("xfuojrn") - .withCoreCount(1614609688) - .withNodeCount(2143335427) - .withIntegrationRuntimeName("pasccbi") - .withSessionId("mzdlyjdfqwmkyo") - .withStartTime("fdvruz") - .withTimeToLiveInMinutes(605414939) - .withLastActivityTime("j") - .withAdditionalProperties(mapOf()), - new DataFlowDebugSessionInfoInner().withDataFlowName("zbgomfgbeg") - .withComputeType("gleohi") - .withCoreCount(131865797) - .withNodeCount(974044007) - .withIntegrationRuntimeName("ankrrfxee") - .withSessionId("tijv") - .withStartTime("vbmqzbqq") - .withTimeToLiveInMinutes(498607950) - .withLastActivityTime("rnwxacevehjkuyxo") - .withAdditionalProperties(mapOf()))) - .withNextLink("uciqdsme"); - model = BinaryData.fromObject(model).toObject(QueryDataFlowDebugSessionsResponse.class); - Assertions.assertEquals("qpbtuodxes", model.value().get(0).dataFlowName()); - Assertions.assertEquals("bbelawumuaslzk", model.value().get(0).computeType()); - Assertions.assertEquals(602871579, model.value().get(0).coreCount()); - Assertions.assertEquals(1954370073, model.value().get(0).nodeCount()); - Assertions.assertEquals("cqucwyhahnom", model.value().get(0).integrationRuntimeName()); - Assertions.assertEquals("kywuhpsvfuu", model.value().get(0).sessionId()); - Assertions.assertEquals("tlwexxwlalniexz", model.value().get(0).startTime()); - Assertions.assertEquals(1922531139, model.value().get(0).timeToLiveInMinutes()); - Assertions.assertEquals("gepqtybbwwpg", model.value().get(0).lastActivityTime()); - Assertions.assertEquals("uciqdsme", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java deleted file mode 100644 index a3151aeb2837..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksObjectDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.QuickBooksObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class QuickBooksObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuickBooksObjectDataset model = BinaryData.fromString( - "{\"type\":\"QuickBooksObject\",\"typeProperties\":{\"tableName\":\"datazbjecdsysxnkuhv\"},\"description\":\"lsevzc\",\"structure\":\"datawnkkgdwqymxsfqea\",\"schema\":\"dataqe\",\"linkedServiceName\":{\"referenceName\":\"uvmsaq\",\"parameters\":{\"vzfznfgpb\":\"dataawgqrwuh\"}},\"parameters\":{\"lkqcln\":{\"type\":\"Object\",\"defaultValue\":\"dataympdjieas\"},\"ahvyeikbvqzr\":{\"type\":\"Bool\",\"defaultValue\":\"datargnoskkhbmjphlyy\"},\"ucpckxjnohafw\":{\"type\":\"String\",\"defaultValue\":\"databq\"},\"e\":{\"type\":\"Float\",\"defaultValue\":\"datagjlyxtugpea\"}},\"annotations\":[\"datawxfamtxccfegsavb\"],\"folder\":{\"name\":\"ucv\"},\"\":{\"mazkmqfw\":\"datadhoo\"}}") - .toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("lsevzc", model.description()); - Assertions.assertEquals("uvmsaq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lkqcln").type()); - Assertions.assertEquals("ucv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksObjectDataset model = new QuickBooksObjectDataset().withDescription("lsevzc") - .withStructure("datawnkkgdwqymxsfqea") - .withSchema("dataqe") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("uvmsaq") - .withParameters(mapOf("vzfznfgpb", "dataawgqrwuh"))) - .withParameters(mapOf("lkqcln", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataympdjieas"), - "ahvyeikbvqzr", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datargnoskkhbmjphlyy"), - "ucpckxjnohafw", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("databq"), - "e", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datagjlyxtugpea"))) - .withAnnotations(Arrays.asList("datawxfamtxccfegsavb")) - .withFolder(new DatasetFolder().withName("ucv")) - .withTableName("datazbjecdsysxnkuhv"); - model = BinaryData.fromObject(model).toObject(QuickBooksObjectDataset.class); - Assertions.assertEquals("lsevzc", model.description()); - Assertions.assertEquals("uvmsaq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lkqcln").type()); - Assertions.assertEquals("ucv", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java deleted file mode 100644 index cc44b1866365..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/QuickBooksSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.QuickBooksSource; - -public final class QuickBooksSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuickBooksSource model = BinaryData.fromString( - "{\"type\":\"QuickBooksSource\",\"query\":\"dataqngpvvnbu\",\"queryTimeout\":\"datavkutl\",\"additionalColumns\":\"dataxuuqb\",\"sourceRetryCount\":\"datapbeswgkreozpufk\",\"sourceRetryWait\":\"datamzcbzgi\",\"maxConcurrentConnections\":\"dataqpegcgdndpb\",\"disableMetricsCollection\":\"dataeymmcbiktetzvqt\",\"\":{\"pdnbzqweohmlkzhx\":\"datavcsbyimygswdu\",\"haerhxd\":\"datadmauanxzrqt\",\"bqmoguy\":\"datahkbrkhjjbwelicrx\",\"dxljjzdbzk\":\"datamselwszqveak\"}}") - .toObject(QuickBooksSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuickBooksSource model = new QuickBooksSource().withSourceRetryCount("datapbeswgkreozpufk") - .withSourceRetryWait("datamzcbzgi") - .withMaxConcurrentConnections("dataqpegcgdndpb") - .withDisableMetricsCollection("dataeymmcbiktetzvqt") - .withQueryTimeout("datavkutl") - .withAdditionalColumns("dataxuuqb") - .withQuery("dataqngpvvnbu"); - 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 32a32c3e091c..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\":\"Friday\",\"occurrence\":2125376815,\"\":{\"szqhp\":\"datavoljnromhsi\",\"wccpmsyhrvifu\":\"datalqc\",\"hoqfvuqimdgkvf\":\"datagn\",\"pnszrrmqtkx\":\"datahcui\"}}") - .toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.day()); - Assertions.assertEquals(2125376815, model.occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceScheduleOccurrence model = new RecurrenceScheduleOccurrence().withDay(DayOfWeek.FRIDAY) - .withOccurrence(2125376815) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceScheduleOccurrence.class); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.day()); - Assertions.assertEquals(2125376815, 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 c661191f2860..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RecurrenceScheduleTests.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.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\":[1911277150],\"hours\":[696989868,1734952040,620096548],\"weekDays\":[\"Thursday\",\"Tuesday\",\"Sunday\",\"Monday\"],\"monthDays\":[1999704139,1204825517,1970111194],\"monthlyOccurrences\":[{\"day\":\"Friday\",\"occurrence\":1269070866,\"\":{\"diiiutdzhkb\":\"datarvwgpj\",\"ydzqml\":\"dataouavotfmgtxz\",\"znxd\":\"datarxjqpbbj\"}}],\"\":{\"jirtiubvyudk\":\"dataaaumyu\",\"msexaejb\":\"dataonrrarznlr\",\"xiigwxzwq\":\"datatouneudfhclsse\",\"aedsqfdulndy\":\"datapudupishcvsj\"}}") - .toObject(RecurrenceSchedule.class); - Assertions.assertEquals(1911277150, model.minutes().get(0)); - Assertions.assertEquals(696989868, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.weekDays().get(0)); - Assertions.assertEquals(1999704139, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1269070866, model.monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecurrenceSchedule model = new RecurrenceSchedule().withMinutes(Arrays.asList(1911277150)) - .withHours(Arrays.asList(696989868, 1734952040, 620096548)) - .withWeekDays(Arrays.asList(DaysOfWeek.THURSDAY, DaysOfWeek.TUESDAY, DaysOfWeek.SUNDAY, DaysOfWeek.MONDAY)) - .withMonthDays(Arrays.asList(1999704139, 1204825517, 1970111194)) - .withMonthlyOccurrences(Arrays.asList(new RecurrenceScheduleOccurrence().withDay(DayOfWeek.FRIDAY) - .withOccurrence(1269070866) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(RecurrenceSchedule.class); - Assertions.assertEquals(1911277150, model.minutes().get(0)); - Assertions.assertEquals(696989868, model.hours().get(0)); - Assertions.assertEquals(DaysOfWeek.THURSDAY, model.weekDays().get(0)); - Assertions.assertEquals(1999704139, model.monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1269070866, 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 c73db202ad92..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\":\"datazwaewpilsuhsghd\",\"path\":\"datacpbwfnapga\",\"\":{\"whh\":\"datasixzcdaukh\",\"fnbzamroaduto\":\"datacbomfoojkerdu\",\"cnecl\":\"databkdctsgvalh\"}}") - .toObject(RedirectIncompatibleRowSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedirectIncompatibleRowSettings model - = new RedirectIncompatibleRowSettings().withLinkedServiceName("datazwaewpilsuhsghd") - .withPath("datacpbwfnapga") - .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 08018b06c124..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RedshiftUnloadSettingsTests.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.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\":\"snozjn\",\"parameters\":{\"qxelmmxwmpziycns\":\"datacmhonojese\",\"kfofyfw\":\"dataswe\",\"wpcutzlvx\":\"datau\"}},\"bucketName\":\"dataolvedzrjkrpor\"}") - .toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("snozjn", model.s3LinkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RedshiftUnloadSettings model = new RedshiftUnloadSettings() - .withS3LinkedServiceName(new LinkedServiceReference().withReferenceName("snozjn") - .withParameters( - mapOf("qxelmmxwmpziycns", "datacmhonojese", "kfofyfw", "dataswe", "wpcutzlvx", "datau"))) - .withBucketName("dataolvedzrjkrpor"); - model = BinaryData.fromObject(model).toObject(RedshiftUnloadSettings.class); - Assertions.assertEquals("snozjn", 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 c92947880313..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RelationalSource; - -public final class RelationalSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalSource model = BinaryData.fromString( - "{\"type\":\"RelationalSource\",\"query\":\"datagqcwzytomnq\",\"additionalColumns\":\"datah\",\"sourceRetryCount\":\"datayvaoa\",\"sourceRetryWait\":\"datakyk\",\"maxConcurrentConnections\":\"dataqafnvjgix\",\"disableMetricsCollection\":\"datahinpy\",\"\":{\"fbnnhwpnloi\":\"datalllzsqolckwhg\",\"qwwzpbamcfr\":\"dataxzdohfvxavhfhl\",\"nrmbcklfpemgfv\":\"dataaytcygoom\"}}") - .toObject(RelationalSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalSource model = new RelationalSource().withSourceRetryCount("datayvaoa") - .withSourceRetryWait("datakyk") - .withMaxConcurrentConnections("dataqafnvjgix") - .withDisableMetricsCollection("datahinpy") - .withQuery("datagqcwzytomnq") - .withAdditionalColumns("datah"); - model = BinaryData.fromObject(model).toObject(RelationalSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java deleted file mode 100644 index fcb0214c6f21..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.RelationalTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RelationalTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalTableDataset model = BinaryData.fromString( - "{\"type\":\"RelationalTable\",\"typeProperties\":{\"tableName\":\"datakxie\"},\"description\":\"lnml\",\"structure\":\"datafcnuestbsli\",\"schema\":\"datadnccotelik\",\"linkedServiceName\":{\"referenceName\":\"iytehhxtzxqdwbym\",\"parameters\":{\"ncrdo\":\"datan\",\"byh\":\"datactysecpekhx\",\"lfymtrts\":\"datatzcvimmwckoz\"}},\"parameters\":{\"rjschjxncqzah\":{\"type\":\"SecureString\",\"defaultValue\":\"datatzckjbcbkgnr\"},\"bimor\":{\"type\":\"Int\",\"defaultValue\":\"databgd\"}},\"annotations\":[\"dataxosgihtrxue\",\"databmxqfgvz\"],\"folder\":{\"name\":\"swshesgcsqose\"},\"\":{\"spfyvslazip\":\"datangoufpizpbmfx\",\"jtyc\":\"datalxgtdu\"}}") - .toObject(RelationalTableDataset.class); - Assertions.assertEquals("lnml", model.description()); - Assertions.assertEquals("iytehhxtzxqdwbym", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rjschjxncqzah").type()); - Assertions.assertEquals("swshesgcsqose", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDataset model = new RelationalTableDataset().withDescription("lnml") - .withStructure("datafcnuestbsli") - .withSchema("datadnccotelik") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("iytehhxtzxqdwbym") - .withParameters(mapOf("ncrdo", "datan", "byh", "datactysecpekhx", "lfymtrts", "datatzcvimmwckoz"))) - .withParameters(mapOf("rjschjxncqzah", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datatzckjbcbkgnr"), - "bimor", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("databgd"))) - .withAnnotations(Arrays.asList("dataxosgihtrxue", "databmxqfgvz")) - .withFolder(new DatasetFolder().withName("swshesgcsqose")) - .withTableName("datakxie"); - model = BinaryData.fromObject(model).toObject(RelationalTableDataset.class); - Assertions.assertEquals("lnml", model.description()); - Assertions.assertEquals("iytehhxtzxqdwbym", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rjschjxncqzah").type()); - Assertions.assertEquals("swshesgcsqose", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java deleted file mode 100644 index b1399b6bcfff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RelationalTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RelationalTableDatasetTypeProperties; - -public final class RelationalTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RelationalTableDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datadrznlaxozqthkwxf\"}") - .toObject(RelationalTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RelationalTableDatasetTypeProperties model - = new RelationalTableDatasetTypeProperties().withTableName("datadrznlaxozqthkwxf"); - model = BinaryData.fromObject(model).toObject(RelationalTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java deleted file mode 100644 index fda485cb995c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RemotePrivateEndpointConnectionTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ArmIdWrapper; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; -import com.azure.resourcemanager.datafactory.models.RemotePrivateEndpointConnection; -import org.junit.jupiter.api.Assertions; - -public final class RemotePrivateEndpointConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemotePrivateEndpointConnection model = BinaryData.fromString( - "{\"provisioningState\":\"nepzwakls\",\"privateEndpoint\":{\"id\":\"qqqagwwrxaomzi\"},\"privateLinkServiceConnectionState\":{\"status\":\"rrczezkhhltnj\",\"description\":\"hqo\",\"actionsRequired\":\"jqoyueayfbpcm\"}}") - .toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("rrczezkhhltnj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hqo", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jqoyueayfbpcm", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemotePrivateEndpointConnection model - = new RemotePrivateEndpointConnection().withPrivateEndpoint(new ArmIdWrapper()) - .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("rrczezkhhltnj") - .withDescription("hqo") - .withActionsRequired("jqoyueayfbpcm")); - model = BinaryData.fromObject(model).toObject(RemotePrivateEndpointConnection.class); - Assertions.assertEquals("rrczezkhhltnj", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hqo", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jqoyueayfbpcm", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java deleted file mode 100644 index ef2d45490f52..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RerunTumblingWindowTriggerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RerunTumblingWindowTrigger; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RerunTumblingWindowTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RerunTumblingWindowTrigger model = BinaryData.fromString( - "{\"type\":\"RerunTumblingWindowTrigger\",\"typeProperties\":{\"parentTrigger\":\"datacfvfwwevy\",\"requestedStartTime\":\"2021-06-28T12:07:37Z\",\"requestedEndTime\":\"2021-09-01T10:13:05Z\",\"rerunConcurrency\":727069286},\"description\":\"x\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datazttogblri\",\"datan\"],\"\":{\"jpalnzrjqlqh\":\"dataucolposnqljlwkj\"}}") - .toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("x", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T12:07:37Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T10:13:05Z"), model.requestedEndTime()); - Assertions.assertEquals(727069286, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTrigger model = new RerunTumblingWindowTrigger().withDescription("x") - .withAnnotations(Arrays.asList("datazttogblri", "datan")) - .withParentTrigger("datacfvfwwevy") - .withRequestedStartTime(OffsetDateTime.parse("2021-06-28T12:07:37Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-09-01T10:13:05Z")) - .withRerunConcurrency(727069286); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTrigger.class); - Assertions.assertEquals("x", model.description()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T12:07:37Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T10:13:05Z"), model.requestedEndTime()); - Assertions.assertEquals(727069286, 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 8a2dd08540e9..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\":\"datayneyoxj\",\"requestedStartTime\":\"2021-08-03T22:31:19Z\",\"requestedEndTime\":\"2021-11-03T09:33:57Z\",\"rerunConcurrency\":1875069315}") - .toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T22:31:19Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-03T09:33:57Z"), model.requestedEndTime()); - Assertions.assertEquals(1875069315, model.rerunConcurrency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RerunTumblingWindowTriggerTypeProperties model - = new RerunTumblingWindowTriggerTypeProperties().withParentTrigger("datayneyoxj") - .withRequestedStartTime(OffsetDateTime.parse("2021-08-03T22:31:19Z")) - .withRequestedEndTime(OffsetDateTime.parse("2021-11-03T09:33:57Z")) - .withRerunConcurrency(1875069315); - model = BinaryData.fromObject(model).toObject(RerunTumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T22:31:19Z"), model.requestedStartTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-03T09:33:57Z"), model.requestedEndTime()); - Assertions.assertEquals(1875069315, model.rerunConcurrency()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java deleted file mode 100644 index 323958cc3f8f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ResponsysObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ResponsysObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResponsysObjectDataset model = BinaryData.fromString( - "{\"type\":\"ResponsysObject\",\"typeProperties\":{\"tableName\":\"dataqxa\"},\"description\":\"mdmracfsffdralih\",\"structure\":\"datascygyzhcvlavyr\",\"schema\":\"datandxrmyzvtiojtpd\",\"linkedServiceName\":{\"referenceName\":\"u\",\"parameters\":{\"teccxfn\":\"dataxoyjyhutwedigiv\"}},\"parameters\":{\"bqpmfhjik\":{\"type\":\"Bool\",\"defaultValue\":\"dataca\"},\"hmyucgrmw\":{\"type\":\"Array\",\"defaultValue\":\"databdqitghnmelzvr\"}},\"annotations\":[\"datad\"],\"folder\":{\"name\":\"l\"},\"\":{\"pgtipaaoylwh\":\"dataqgrbrhhv\",\"ixdmoba\":\"datamkbweasgyp\",\"dqdchnzibixrgs\":\"dataydwqeuwdvcls\",\"gosijiqexqwqy\":\"datawxxqkwargcbg\"}}") - .toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("mdmracfsffdralih", model.description()); - Assertions.assertEquals("u", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("bqpmfhjik").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysObjectDataset model = new ResponsysObjectDataset().withDescription("mdmracfsffdralih") - .withStructure("datascygyzhcvlavyr") - .withSchema("datandxrmyzvtiojtpd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("u") - .withParameters(mapOf("teccxfn", "dataxoyjyhutwedigiv"))) - .withParameters(mapOf("bqpmfhjik", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataca"), "hmyucgrmw", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("databdqitghnmelzvr"))) - .withAnnotations(Arrays.asList("datad")) - .withFolder(new DatasetFolder().withName("l")) - .withTableName("dataqxa"); - model = BinaryData.fromObject(model).toObject(ResponsysObjectDataset.class); - Assertions.assertEquals("mdmracfsffdralih", model.description()); - Assertions.assertEquals("u", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("bqpmfhjik").type()); - Assertions.assertEquals("l", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java deleted file mode 100644 index 3bfa7e30aa8b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ResponsysSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ResponsysSource; - -public final class ResponsysSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResponsysSource model = BinaryData.fromString( - "{\"type\":\"ResponsysSource\",\"query\":\"datayjzferhxgstiawy\",\"queryTimeout\":\"datapqxujxbd\",\"additionalColumns\":\"datazplmlj\",\"sourceRetryCount\":\"datas\",\"sourceRetryWait\":\"datawsftytpjmu\",\"maxConcurrentConnections\":\"dataynhqlzantahuy\",\"disableMetricsCollection\":\"datasjympsxmoad\",\"\":{\"jvlzqsyvr\":\"datansmpfe\",\"bobx\":\"dataoleqikcorkem\"}}") - .toObject(ResponsysSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsysSource model = new ResponsysSource().withSourceRetryCount("datas") - .withSourceRetryWait("datawsftytpjmu") - .withMaxConcurrentConnections("dataynhqlzantahuy") - .withDisableMetricsCollection("datasjympsxmoad") - .withQueryTimeout("datapqxujxbd") - .withAdditionalColumns("datazplmlj") - .withQuery("datayjzferhxgstiawy"); - model = BinaryData.fromObject(model).toObject(ResponsysSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java deleted file mode 100644 index af8d26725e1a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.RestResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RestResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestResourceDataset model = BinaryData.fromString( - "{\"type\":\"RestResource\",\"typeProperties\":{\"relativeUrl\":\"dataaefe\",\"requestMethod\":\"datavkxdbnmcvaqy\",\"requestBody\":\"datazdobuesdyvfxnz\",\"additionalHeaders\":{\"dpsegivytabvbbk\":\"datafupktw\"},\"paginationRules\":{\"wuuqbmenxcqsxwc\":\"datawgsltutbuve\"}},\"description\":\"kcrudekkbnjre\",\"structure\":\"dataptedeuenthshnfi\",\"schema\":\"datapgpkkhpjnglaqlm\",\"linkedServiceName\":{\"referenceName\":\"h\",\"parameters\":{\"cpvfpnrzikvoxloe\":\"datardlpxiwwg\",\"hpxukxgoyxon\":\"datahyfivxdifbwbli\"}},\"parameters\":{\"qrrldxfua\":{\"type\":\"Array\",\"defaultValue\":\"datarxros\"},\"eyrqve\":{\"type\":\"Bool\",\"defaultValue\":\"datawxatktwjrppi\"}},\"annotations\":[\"datadcizhvksb\",\"datajklwjp\"],\"folder\":{\"name\":\"ncw\"},\"\":{\"uduiqoom\":\"datapyeyzolbfnflytf\",\"opwsnliyznghuq\":\"dataswkq\",\"dwrgavtfyzse\":\"datagpdglkf\"}}") - .toObject(RestResourceDataset.class); - Assertions.assertEquals("kcrudekkbnjre", model.description()); - Assertions.assertEquals("h", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("qrrldxfua").type()); - Assertions.assertEquals("ncw", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDataset model = new RestResourceDataset().withDescription("kcrudekkbnjre") - .withStructure("dataptedeuenthshnfi") - .withSchema("datapgpkkhpjnglaqlm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("h") - .withParameters(mapOf("cpvfpnrzikvoxloe", "datardlpxiwwg", "hpxukxgoyxon", "datahyfivxdifbwbli"))) - .withParameters(mapOf("qrrldxfua", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datarxros"), "eyrqve", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datawxatktwjrppi"))) - .withAnnotations(Arrays.asList("datadcizhvksb", "datajklwjp")) - .withFolder(new DatasetFolder().withName("ncw")) - .withRelativeUrl("dataaefe") - .withRequestMethod("datavkxdbnmcvaqy") - .withRequestBody("datazdobuesdyvfxnz") - .withAdditionalHeaders(mapOf("dpsegivytabvbbk", "datafupktw")) - .withPaginationRules(mapOf("wuuqbmenxcqsxwc", "datawgsltutbuve")); - model = BinaryData.fromObject(model).toObject(RestResourceDataset.class); - Assertions.assertEquals("kcrudekkbnjre", model.description()); - Assertions.assertEquals("h", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("qrrldxfua").type()); - Assertions.assertEquals("ncw", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 65f67a5a7a85..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.RestResourceDatasetTypeProperties; -import java.util.HashMap; -import java.util.Map; - -public final class RestResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestResourceDatasetTypeProperties model = BinaryData.fromString( - "{\"relativeUrl\":\"datam\",\"requestMethod\":\"datakryxpi\",\"requestBody\":\"dataapeakfdmcedl\",\"additionalHeaders\":{\"yoddoqkanqtrkicw\":\"datax\",\"wwmu\":\"dataqyrgqmndk\",\"kitlwgebylpz\":\"datahvifqeqfsrna\"},\"paginationRules\":{\"nilnijhwcbr\":\"datadaqwj\",\"npkbvzpk\":\"datasypo\"}}") - .toObject(RestResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestResourceDatasetTypeProperties model = new RestResourceDatasetTypeProperties().withRelativeUrl("datam") - .withRequestMethod("datakryxpi") - .withRequestBody("dataapeakfdmcedl") - .withAdditionalHeaders( - mapOf("yoddoqkanqtrkicw", "datax", "wwmu", "dataqyrgqmndk", "kitlwgebylpz", "datahvifqeqfsrna")) - .withPaginationRules(mapOf("nilnijhwcbr", "datadaqwj", "npkbvzpk", "datasypo")); - model = BinaryData.fromObject(model).toObject(RestResourceDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java deleted file mode 100644 index baf5b462842d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSinkTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RestSink; - -public final class RestSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestSink model = BinaryData.fromString( - "{\"type\":\"RestSink\",\"requestMethod\":\"dataxxokif\",\"additionalHeaders\":\"datapwdyzsetrmvtq\",\"httpRequestTimeout\":\"datasoi\",\"requestInterval\":\"datacprkqywyb\",\"httpCompressionType\":\"dataayo\",\"writeBatchSize\":\"dataetzcxlisvqfb\",\"writeBatchTimeout\":\"dataizxp\",\"sinkRetryCount\":\"datapsaploex\",\"sinkRetryWait\":\"datamvlocd\",\"maxConcurrentConnections\":\"datahkob\",\"disableMetricsCollection\":\"datahhipn\",\"\":{\"n\":\"datadyriw\"}}") - .toObject(RestSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSink model = new RestSink().withWriteBatchSize("dataetzcxlisvqfb") - .withWriteBatchTimeout("dataizxp") - .withSinkRetryCount("datapsaploex") - .withSinkRetryWait("datamvlocd") - .withMaxConcurrentConnections("datahkob") - .withDisableMetricsCollection("datahhipn") - .withRequestMethod("dataxxokif") - .withAdditionalHeaders("datapwdyzsetrmvtq") - .withHttpRequestTimeout("datasoi") - .withRequestInterval("datacprkqywyb") - .withHttpCompressionType("dataayo"); - 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 5d29548a3042..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RestSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RestSource; - -public final class RestSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestSource model = BinaryData.fromString( - "{\"type\":\"RestSource\",\"requestMethod\":\"datadgmqscijlfulxg\",\"requestBody\":\"dataas\",\"additionalHeaders\":\"datamwsooq\",\"paginationRules\":\"datavplmyzebvgh\",\"httpRequestTimeout\":\"dataydehbvbexrbynnl\",\"requestInterval\":\"datad\",\"additionalColumns\":\"datak\",\"sourceRetryCount\":\"datazzsi\",\"sourceRetryWait\":\"databosacrnpscfkef\",\"maxConcurrentConnections\":\"datatxe\",\"disableMetricsCollection\":\"datamimgjuvjvtgece\",\"\":{\"oukfjwkctdn\":\"datanled\"}}") - .toObject(RestSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestSource model = new RestSource().withSourceRetryCount("datazzsi") - .withSourceRetryWait("databosacrnpscfkef") - .withMaxConcurrentConnections("datatxe") - .withDisableMetricsCollection("datamimgjuvjvtgece") - .withRequestMethod("datadgmqscijlfulxg") - .withRequestBody("dataas") - .withAdditionalHeaders("datamwsooq") - .withPaginationRules("datavplmyzebvgh") - .withHttpRequestTimeout("dataydehbvbexrbynnl") - .withRequestInterval("datad") - .withAdditionalColumns("datak"); - 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 972a055caa52..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\":\"datauoquacrdn\",\"intervalInSeconds\":1210228750}") - .toObject(RetryPolicy.class); - Assertions.assertEquals(1210228750, model.intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RetryPolicy model = new RetryPolicy().withCount("datauoquacrdn").withIntervalInSeconds(1210228750); - model = BinaryData.fromObject(model).toObject(RetryPolicy.class); - Assertions.assertEquals(1210228750, model.intervalInSeconds()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java deleted file mode 100644 index b32eee745384..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryFilterTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RunQueryFilterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RunQueryFilter model = BinaryData - .fromString("{\"operand\":\"TriggerRunTimestamp\",\"operator\":\"In\",\"values\":[\"dweyuqdunv\"]}") - .toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.IN, model.operator()); - Assertions.assertEquals("dweyuqdunv", model.values().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunQueryFilter model = new RunQueryFilter().withOperand(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP) - .withOperator(RunQueryFilterOperator.IN) - .withValues(Arrays.asList("dweyuqdunv")); - model = BinaryData.fromObject(model).toObject(RunQueryFilter.class); - Assertions.assertEquals(RunQueryFilterOperand.TRIGGER_RUN_TIMESTAMP, model.operand()); - Assertions.assertEquals(RunQueryFilterOperator.IN, model.operator()); - Assertions.assertEquals("dweyuqdunv", model.values().get(0)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java deleted file mode 100644 index fb198b8d7a04..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/RunQueryOrderByTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.RunQueryOrder; -import com.azure.resourcemanager.datafactory.models.RunQueryOrderBy; -import com.azure.resourcemanager.datafactory.models.RunQueryOrderByField; -import org.junit.jupiter.api.Assertions; - -public final class RunQueryOrderByTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RunQueryOrderBy model - = BinaryData.fromString("{\"orderBy\":\"TriggerName\",\"order\":\"DESC\"}").toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.TRIGGER_NAME, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.DESC, model.order()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RunQueryOrderBy model - = new RunQueryOrderBy().withOrderBy(RunQueryOrderByField.TRIGGER_NAME).withOrder(RunQueryOrder.DESC); - model = BinaryData.fromObject(model).toObject(RunQueryOrderBy.class); - Assertions.assertEquals(RunQueryOrderByField.TRIGGER_NAME, model.orderBy()); - Assertions.assertEquals(RunQueryOrder.DESC, model.order()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java deleted file mode 100644 index 1b197b7d883a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudObjectDatasetTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceMarketingCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceMarketingCloudObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceMarketingCloudObject\",\"typeProperties\":{\"tableName\":\"dataesywywnvgy\"},\"description\":\"c\",\"structure\":\"datarzcw\",\"schema\":\"datajmxlfzl\",\"linkedServiceName\":{\"referenceName\":\"zyrgrlh\",\"parameters\":{\"vm\":\"dataaunjovlxq\",\"rgmnkgtlhzkrazk\":\"datazpniqwx\",\"eqzhehgvmm\":\"dataoiyecznvzmsvzng\"}},\"parameters\":{\"ypkfcdfuxi\":{\"type\":\"String\",\"defaultValue\":\"datanbnyplu\"},\"cdvhyefqhxyts\":{\"type\":\"String\",\"defaultValue\":\"dataxotnoil\"},\"ratqlreqbrc\":{\"type\":\"Int\",\"defaultValue\":\"datawcacwaaqakvokyax\"},\"babowrcyrnmj\":{\"type\":\"String\",\"defaultValue\":\"datatshzumxucz\"}},\"annotations\":[\"datawxqzkkagve\",\"datahmnaphrskmpeajz\"],\"folder\":{\"name\":\"avamzmzfntte\"},\"\":{\"pjdr\":\"datatxytja\",\"vbfaehjji\":\"datalijk\"}}") - .toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals("zyrgrlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ypkfcdfuxi").type()); - Assertions.assertEquals("avamzmzfntte", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudObjectDataset model - = new SalesforceMarketingCloudObjectDataset().withDescription("c") - .withStructure("datarzcw") - .withSchema("datajmxlfzl") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zyrgrlh") - .withParameters(mapOf("vm", "dataaunjovlxq", "rgmnkgtlhzkrazk", "datazpniqwx", "eqzhehgvmm", - "dataoiyecznvzmsvzng"))) - .withParameters( - mapOf("ypkfcdfuxi", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datanbnyplu"), - "cdvhyefqhxyts", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxotnoil"), - "ratqlreqbrc", - new ParameterSpecification().withType(ParameterType.INT) - .withDefaultValue("datawcacwaaqakvokyax"), - "babowrcyrnmj", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datatshzumxucz"))) - .withAnnotations(Arrays.asList("datawxqzkkagve", "datahmnaphrskmpeajz")) - .withFolder(new DatasetFolder().withName("avamzmzfntte")) - .withTableName("dataesywywnvgy"); - model = BinaryData.fromObject(model).toObject(SalesforceMarketingCloudObjectDataset.class); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals("zyrgrlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("ypkfcdfuxi").type()); - Assertions.assertEquals("avamzmzfntte", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java deleted file mode 100644 index 0870de24b3f4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceMarketingCloudSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceMarketingCloudSource; - -public final class SalesforceMarketingCloudSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceMarketingCloudSource model = BinaryData.fromString( - "{\"type\":\"SalesforceMarketingCloudSource\",\"query\":\"datay\",\"queryTimeout\":\"datakkipt\",\"additionalColumns\":\"datapwskckcwymfy\",\"sourceRetryCount\":\"datagvqioqrebwarljpl\",\"sourceRetryWait\":\"dataemxcdreqaqvs\",\"maxConcurrentConnections\":\"datayvearwt\",\"disableMetricsCollection\":\"databscwbiwvwmcrhy\",\"\":{\"n\":\"datatplmy\"}}") - .toObject(SalesforceMarketingCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceMarketingCloudSource model - = new SalesforceMarketingCloudSource().withSourceRetryCount("datagvqioqrebwarljpl") - .withSourceRetryWait("dataemxcdreqaqvs") - .withMaxConcurrentConnections("datayvearwt") - .withDisableMetricsCollection("databscwbiwvwmcrhy") - .withQueryTimeout("datakkipt") - .withAdditionalColumns("datapwskckcwymfy") - .withQuery("datay"); - model = BinaryData.fromObject(model).toObject(SalesforceMarketingCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java deleted file mode 100644 index 7dccc7d77060..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceObject\",\"typeProperties\":{\"objectApiName\":\"dataxrltqmmijgpqfkwn\"},\"description\":\"ikczscymqfv\",\"structure\":\"datawpq\",\"schema\":\"dataumz\",\"linkedServiceName\":{\"referenceName\":\"pd\",\"parameters\":{\"zk\":\"datazvp\"}},\"parameters\":{\"wed\":{\"type\":\"Bool\",\"defaultValue\":\"datazbflbqmhbiyxx\"},\"lmsy\":{\"type\":\"SecureString\",\"defaultValue\":\"dataqbbseseayu\"},\"zk\":{\"type\":\"String\",\"defaultValue\":\"datacrolrzesbomp\"}},\"annotations\":[\"datanwjivtbusz\"],\"folder\":{\"name\":\"rdf\"},\"\":{\"sdeqngcaydzinlo\":\"dataywdal\",\"xrsi\":\"dataulpozmdahyc\"}}") - .toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("ikczscymqfv", model.description()); - Assertions.assertEquals("pd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wed").type()); - Assertions.assertEquals("rdf", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDataset model = new SalesforceObjectDataset().withDescription("ikczscymqfv") - .withStructure("datawpq") - .withSchema("dataumz") - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("pd").withParameters(mapOf("zk", "datazvp"))) - .withParameters(mapOf("wed", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datazbflbqmhbiyxx"), "lmsy", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataqbbseseayu"), - "zk", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("datacrolrzesbomp"))) - .withAnnotations(Arrays.asList("datanwjivtbusz")) - .withFolder(new DatasetFolder().withName("rdf")) - .withObjectApiName("dataxrltqmmijgpqfkwn"); - model = BinaryData.fromObject(model).toObject(SalesforceObjectDataset.class); - Assertions.assertEquals("ikczscymqfv", model.description()); - Assertions.assertEquals("pd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wed").type()); - Assertions.assertEquals("rdf", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java deleted file mode 100644 index 49f504548b10..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceObjectDatasetTypeProperties; - -public final class SalesforceObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceObjectDatasetTypeProperties model = BinaryData.fromString("{\"objectApiName\":\"dataebldpo\"}") - .toObject(SalesforceObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceObjectDatasetTypeProperties model - = new SalesforceObjectDatasetTypeProperties().withObjectApiName("dataebldpo"); - model = BinaryData.fromObject(model).toObject(SalesforceObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java deleted file mode 100644 index 70afea7c5c91..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudObject\",\"typeProperties\":{\"objectApiName\":\"datafj\"},\"description\":\"tnhrevimxmaxcj\",\"structure\":\"dataitygvdwds\",\"schema\":\"datatb\",\"linkedServiceName\":{\"referenceName\":\"kvuozbzchnqek\",\"parameters\":{\"kjse\":\"dataklpurlcydjh\",\"rdonkgobx\":\"datawiynd\"}},\"parameters\":{\"rswknpdrgnmza\":{\"type\":\"SecureString\",\"defaultValue\":\"datale\"},\"bk\":{\"type\":\"Object\",\"defaultValue\":\"dataoefqckievyrejyo\"},\"rovomep\":{\"type\":\"Bool\",\"defaultValue\":\"datausdwmnrtvvbucn\"}},\"annotations\":[\"dataicvwqzo\",\"datasfshe\",\"datanmsg\"],\"folder\":{\"name\":\"dibugvnrgalvwrhr\"},\"\":{\"vnpyeevffifujgtd\":\"datarbknuubxcwojtupq\",\"ybpchrtczwjcujyz\":\"datawlxmwefc\",\"i\":\"datavyrjqdjlgk\",\"n\":\"dataxxeuwiiirc\"}}") - .toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("tnhrevimxmaxcj", model.description()); - Assertions.assertEquals("kvuozbzchnqek", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rswknpdrgnmza").type()); - Assertions.assertEquals("dibugvnrgalvwrhr", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDataset model - = new SalesforceServiceCloudObjectDataset().withDescription("tnhrevimxmaxcj") - .withStructure("dataitygvdwds") - .withSchema("datatb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kvuozbzchnqek") - .withParameters(mapOf("kjse", "dataklpurlcydjh", "rdonkgobx", "datawiynd"))) - .withParameters(mapOf("rswknpdrgnmza", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datale"), "bk", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataoefqckievyrejyo"), - "rovomep", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datausdwmnrtvvbucn"))) - .withAnnotations(Arrays.asList("dataicvwqzo", "datasfshe", "datanmsg")) - .withFolder(new DatasetFolder().withName("dibugvnrgalvwrhr")) - .withObjectApiName("datafj"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudObjectDataset.class); - Assertions.assertEquals("tnhrevimxmaxcj", model.description()); - Assertions.assertEquals("kvuozbzchnqek", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("rswknpdrgnmza").type()); - Assertions.assertEquals("dibugvnrgalvwrhr", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java deleted file mode 100644 index dbd3d1b8fe60..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudObjectDatasetTypeProperties; - -public final class SalesforceServiceCloudObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudObjectDatasetTypeProperties model - = BinaryData.fromString("{\"objectApiName\":\"databdviwx\"}") - .toObject(SalesforceServiceCloudObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudObjectDatasetTypeProperties model - = new SalesforceServiceCloudObjectDatasetTypeProperties().withObjectApiName("databdviwx"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java deleted file mode 100644 index 2d9253d8a17a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudSinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudSink; -import com.azure.resourcemanager.datafactory.models.SalesforceSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudSink model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudSink\",\"writeBehavior\":\"Insert\",\"externalIdFieldName\":\"dataljx\",\"ignoreNullValues\":\"dataaawnzzlfve\",\"writeBatchSize\":\"datakjbasmrdpbmo\",\"writeBatchTimeout\":\"datasvukgfzby\",\"sinkRetryCount\":\"datapmeomc\",\"sinkRetryWait\":\"datam\",\"maxConcurrentConnections\":\"datadtg\",\"disableMetricsCollection\":\"datayubnwymyewbfoxw\",\"\":{\"pbtksr\":\"datatjsnjbahxyfd\"}}") - .toObject(SalesforceServiceCloudSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSink model = new SalesforceServiceCloudSink().withWriteBatchSize("datakjbasmrdpbmo") - .withWriteBatchTimeout("datasvukgfzby") - .withSinkRetryCount("datapmeomc") - .withSinkRetryWait("datam") - .withMaxConcurrentConnections("datadtg") - .withDisableMetricsCollection("datayubnwymyewbfoxw") - .withWriteBehavior(SalesforceSinkWriteBehavior.INSERT) - .withExternalIdFieldName("dataljx") - .withIgnoreNullValues("dataaawnzzlfve"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.INSERT, 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 6649263b432d..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\":\"SalesforceServiceCloudSource\",\"query\":\"datafafpyglnfwjs\",\"readBehavior\":\"datavexblucpmqwkfgm\",\"additionalColumns\":\"datavekstzqzhd\",\"sourceRetryCount\":\"datacajfersxnxlkcw\",\"sourceRetryWait\":\"dataejssksgxykdepqcy\",\"maxConcurrentConnections\":\"datahwsxpzkmotgmd\",\"disableMetricsCollection\":\"datawwqevbiuntp\",\"\":{\"qgywr\":\"datawjxlycelf\",\"ruldt\":\"datau\"}}") - .toObject(SalesforceServiceCloudSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudSource model - = new SalesforceServiceCloudSource().withSourceRetryCount("datacajfersxnxlkcw") - .withSourceRetryWait("dataejssksgxykdepqcy") - .withMaxConcurrentConnections("datahwsxpzkmotgmd") - .withDisableMetricsCollection("datawwqevbiuntp") - .withQuery("datafafpyglnfwjs") - .withReadBehavior("datavexblucpmqwkfgm") - .withAdditionalColumns("datavekstzqzhd"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.java deleted file mode 100644 index 7b08bcb1a6d4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudV2ObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudV2Object\",\"typeProperties\":{\"objectApiName\":\"dataadzglm\",\"reportId\":\"datazpsuhsypxmul\"},\"description\":\"frerkqp\",\"structure\":\"datajxkbywsbu\",\"schema\":\"datamxbdjkmn\",\"linkedServiceName\":{\"referenceName\":\"sggnowx\",\"parameters\":{\"svghbtycvlkus\":\"datadbrd\",\"ype\":\"dataiikhrct\"}},\"parameters\":{\"sdvkym\":{\"type\":\"Bool\",\"defaultValue\":\"datardis\"}},\"annotations\":[\"datawmivoxgzegngl\"],\"folder\":{\"name\":\"fgazagh\"},\"\":{\"wxuxor\":\"datao\",\"lssolqypv\":\"datautuhvemg\",\"hvrkqv\":\"dataxlx\"}}") - .toObject(SalesforceServiceCloudV2ObjectDataset.class); - Assertions.assertEquals("frerkqp", model.description()); - Assertions.assertEquals("sggnowx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("sdvkym").type()); - Assertions.assertEquals("fgazagh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2ObjectDataset model = new SalesforceServiceCloudV2ObjectDataset() - .withDescription("frerkqp") - .withStructure("datajxkbywsbu") - .withSchema("datamxbdjkmn") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("sggnowx") - .withParameters(mapOf("svghbtycvlkus", "datadbrd", "ype", "dataiikhrct"))) - .withParameters( - mapOf("sdvkym", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datardis"))) - .withAnnotations(Arrays.asList("datawmivoxgzegngl")) - .withFolder(new DatasetFolder().withName("fgazagh")) - .withObjectApiName("dataadzglm") - .withReportId("datazpsuhsypxmul"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2ObjectDataset.class); - Assertions.assertEquals("frerkqp", model.description()); - Assertions.assertEquals("sggnowx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("sdvkym").type()); - Assertions.assertEquals("fgazagh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests.java deleted file mode 100644 index aaa077a3d877..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudV2ObjectDatasetTypeProperties; - -public final class SalesforceServiceCloudV2ObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2ObjectDatasetTypeProperties model - = BinaryData.fromString("{\"objectApiName\":\"datagd\",\"reportId\":\"datacvzfc\"}") - .toObject(SalesforceServiceCloudV2ObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2ObjectDatasetTypeProperties model - = new SalesforceServiceCloudV2ObjectDatasetTypeProperties().withObjectApiName("datagd") - .withReportId("datacvzfc"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2ObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SinkTests.java deleted file mode 100644 index f9ee0b08dc57..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceServiceCloudV2Sink; -import com.azure.resourcemanager.datafactory.models.SalesforceV2SinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceServiceCloudV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2Sink model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudV2Sink\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datao\",\"ignoreNullValues\":\"datavgrloshkqthuijvi\",\"writeBatchSize\":\"datawswpwbgoetu\",\"writeBatchTimeout\":\"datasfsfuzqpigirnmd\",\"sinkRetryCount\":\"datamagmwyfxeu\",\"sinkRetryWait\":\"datavtkllbfnn\",\"maxConcurrentConnections\":\"datar\",\"disableMetricsCollection\":\"dataqqjcyhvyr\",\"\":{\"wldkjayiexpcxylq\":\"datauvuj\"}}") - .toObject(SalesforceServiceCloudV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2Sink model = new SalesforceServiceCloudV2Sink().withWriteBatchSize("datawswpwbgoetu") - .withWriteBatchTimeout("datasfsfuzqpigirnmd") - .withSinkRetryCount("datamagmwyfxeu") - .withSinkRetryWait("datavtkllbfnn") - .withMaxConcurrentConnections("datar") - .withDisableMetricsCollection("dataqqjcyhvyr") - .withWriteBehavior(SalesforceV2SinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datao") - .withIgnoreNullValues("datavgrloshkqthuijvi"); - model = BinaryData.fromObject(model).toObject(SalesforceServiceCloudV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.UPSERT, 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 65681015c108..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceServiceCloudV2SourceTests.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.SalesforceServiceCloudV2Source; - -public final class SalesforceServiceCloudV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceServiceCloudV2Source model = BinaryData.fromString( - "{\"type\":\"SalesforceServiceCloudV2Source\",\"SOQLQuery\":\"databsqpttulh\",\"query\":\"datajuipixpzt\",\"includeDeletedObjects\":\"dataujuoiienzskokaqb\",\"additionalColumns\":\"datacnbnlpp\",\"sourceRetryCount\":\"databipfazsayrk\",\"sourceRetryWait\":\"datapnobcqnym\",\"maxConcurrentConnections\":\"datawr\",\"disableMetricsCollection\":\"dataf\",\"\":{\"ov\":\"datauzvkxc\"}}") - .toObject(SalesforceServiceCloudV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceServiceCloudV2Source model - = new SalesforceServiceCloudV2Source().withSourceRetryCount("databipfazsayrk") - .withSourceRetryWait("datapnobcqnym") - .withMaxConcurrentConnections("datawr") - .withDisableMetricsCollection("dataf") - .withSoqlQuery("databsqpttulh") - .withQuery("datajuipixpzt") - .withIncludeDeletedObjects("dataujuoiienzskokaqb") - .withAdditionalColumns("datacnbnlpp"); - 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 7cb45ad50242..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceSink; -import com.azure.resourcemanager.datafactory.models.SalesforceSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceSink model = BinaryData.fromString( - "{\"type\":\"SalesforceSink\",\"writeBehavior\":\"Upsert\",\"externalIdFieldName\":\"datawzbk\",\"ignoreNullValues\":\"datalsa\",\"writeBatchSize\":\"datadebwyqnluszilk\",\"writeBatchTimeout\":\"datapxlkihfxtbvhmsv\",\"sinkRetryCount\":\"datace\",\"sinkRetryWait\":\"datarhwriihwxchyyf\",\"maxConcurrentConnections\":\"datarpjonmins\",\"disableMetricsCollection\":\"datanuiiytyar\",\"\":{\"kkgdygjldljgd\":\"dataigfdpp\",\"nowzf\":\"databgrtse\",\"dzmrl\":\"datakofmtfwculsbnapz\"}}") - .toObject(SalesforceSink.class); - Assertions.assertEquals(SalesforceSinkWriteBehavior.UPSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSink model = new SalesforceSink().withWriteBatchSize("datadebwyqnluszilk") - .withWriteBatchTimeout("datapxlkihfxtbvhmsv") - .withSinkRetryCount("datace") - .withSinkRetryWait("datarhwriihwxchyyf") - .withMaxConcurrentConnections("datarpjonmins") - .withDisableMetricsCollection("datanuiiytyar") - .withWriteBehavior(SalesforceSinkWriteBehavior.UPSERT) - .withExternalIdFieldName("datawzbk") - .withIgnoreNullValues("datalsa"); - 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 dcd073322da3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceSource; - -public final class SalesforceSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceSource model = BinaryData.fromString( - "{\"type\":\"SalesforceSource\",\"query\":\"dataglpynsblnwiw\",\"readBehavior\":\"databxe\",\"queryTimeout\":\"dataalhbrwaltvky\",\"additionalColumns\":\"datajopqtegkrjo\",\"sourceRetryCount\":\"dataaeg\",\"sourceRetryWait\":\"dataksscismrn\",\"maxConcurrentConnections\":\"dataklfibny\",\"disableMetricsCollection\":\"dataclxtfuo\",\"\":{\"zmfy\":\"datazbiu\",\"uqafolseyxp\":\"datavyzaofaiwlnfvexi\",\"gcj\":\"datakmlnjluay\"}}") - .toObject(SalesforceSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceSource model = new SalesforceSource().withSourceRetryCount("dataaeg") - .withSourceRetryWait("dataksscismrn") - .withMaxConcurrentConnections("dataklfibny") - .withDisableMetricsCollection("dataclxtfuo") - .withQueryTimeout("dataalhbrwaltvky") - .withAdditionalColumns("datajopqtegkrjo") - .withQuery("dataglpynsblnwiw") - .withReadBehavior("databxe"); - model = BinaryData.fromObject(model).toObject(SalesforceSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.java deleted file mode 100644 index ccc54d67ffd0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SalesforceV2ObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"SalesforceV2Object\",\"typeProperties\":{\"objectApiName\":\"dataalrjwaez\",\"reportId\":\"dataybsps\"},\"description\":\"mtcepzimfcfs\",\"structure\":\"datawexpasckpgbmly\",\"schema\":\"datawslxgcmxtoejtq\",\"linkedServiceName\":{\"referenceName\":\"qct\",\"parameters\":{\"zntbpcaddpxqrx\":\"datadkxzxol\",\"jfzizxl\":\"dataperrplfmfvm\"}},\"parameters\":{\"agbahdbtjmku\":{\"type\":\"Float\",\"defaultValue\":\"databarxknfvbsy\"},\"lo\":{\"type\":\"Object\",\"defaultValue\":\"datarklbizrxhuqfvpa\"},\"g\":{\"type\":\"Bool\",\"defaultValue\":\"datavcxgqtquirgo\"},\"uoqhqrcsksxqfhl\":{\"type\":\"SecureString\",\"defaultValue\":\"dataucujtjuzvyjxuxch\"}},\"annotations\":[\"datavdagvyjcdpncvfye\",\"datayodiij\",\"datasapqhipajsniv\",\"datamevljbcuwrfgpjfv\"],\"folder\":{\"name\":\"seodvlmdzgv\"},\"\":{\"crsm\":\"datazzugctygbbmumljv\",\"umnru\":\"dataojmxwc\",\"keqjftvltjop\":\"dataq\"}}") - .toObject(SalesforceV2ObjectDataset.class); - Assertions.assertEquals("mtcepzimfcfs", model.description()); - Assertions.assertEquals("qct", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("agbahdbtjmku").type()); - Assertions.assertEquals("seodvlmdzgv", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2ObjectDataset model = new SalesforceV2ObjectDataset().withDescription("mtcepzimfcfs") - .withStructure("datawexpasckpgbmly") - .withSchema("datawslxgcmxtoejtq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qct") - .withParameters(mapOf("zntbpcaddpxqrx", "datadkxzxol", "jfzizxl", "dataperrplfmfvm"))) - .withParameters(mapOf("agbahdbtjmku", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("databarxknfvbsy"), "lo", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datarklbizrxhuqfvpa"), - "g", new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datavcxgqtquirgo"), - "uoqhqrcsksxqfhl", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("dataucujtjuzvyjxuxch"))) - .withAnnotations( - Arrays.asList("datavdagvyjcdpncvfye", "datayodiij", "datasapqhipajsniv", "datamevljbcuwrfgpjfv")) - .withFolder(new DatasetFolder().withName("seodvlmdzgv")) - .withObjectApiName("dataalrjwaez") - .withReportId("dataybsps"); - model = BinaryData.fromObject(model).toObject(SalesforceV2ObjectDataset.class); - Assertions.assertEquals("mtcepzimfcfs", model.description()); - Assertions.assertEquals("qct", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("agbahdbtjmku").type()); - Assertions.assertEquals("seodvlmdzgv", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTypePropertiesTests.java deleted file mode 100644 index 4e0683c0878f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2ObjectDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceV2ObjectDatasetTypeProperties; - -public final class SalesforceV2ObjectDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2ObjectDatasetTypeProperties model - = BinaryData.fromString("{\"objectApiName\":\"datavpkbz\",\"reportId\":\"datanowpajfhxsmu\"}") - .toObject(SalesforceV2ObjectDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2ObjectDatasetTypeProperties model - = new SalesforceV2ObjectDatasetTypeProperties().withObjectApiName("datavpkbz") - .withReportId("datanowpajfhxsmu"); - model = BinaryData.fromObject(model).toObject(SalesforceV2ObjectDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SinkTests.java deleted file mode 100644 index f37c613c6fc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SinkTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceV2Sink; -import com.azure.resourcemanager.datafactory.models.SalesforceV2SinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SalesforceV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2Sink model = BinaryData.fromString( - "{\"type\":\"SalesforceV2Sink\",\"writeBehavior\":\"Insert\",\"externalIdFieldName\":\"datarxaix\",\"ignoreNullValues\":\"datagesbei\",\"writeBatchSize\":\"datauuvz\",\"writeBatchTimeout\":\"datajmo\",\"sinkRetryCount\":\"datahpjakt\",\"sinkRetryWait\":\"datarcirrphtjljfmh\",\"maxConcurrentConnections\":\"datanxrwgddg\",\"disableMetricsCollection\":\"datafflswqeht\",\"\":{\"evtykfxos\":\"datazqeinnbu\",\"uhfwklsthjvyk\":\"dataz\",\"rnkxswohshnc\":\"datawpgwpulrtjweuoro\",\"wdl\":\"datadzvlitntdidhhac\"}}") - .toObject(SalesforceV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.INSERT, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2Sink model = new SalesforceV2Sink().withWriteBatchSize("datauuvz") - .withWriteBatchTimeout("datajmo") - .withSinkRetryCount("datahpjakt") - .withSinkRetryWait("datarcirrphtjljfmh") - .withMaxConcurrentConnections("datanxrwgddg") - .withDisableMetricsCollection("datafflswqeht") - .withWriteBehavior(SalesforceV2SinkWriteBehavior.INSERT) - .withExternalIdFieldName("datarxaix") - .withIgnoreNullValues("datagesbei"); - model = BinaryData.fromObject(model).toObject(SalesforceV2Sink.class); - Assertions.assertEquals(SalesforceV2SinkWriteBehavior.INSERT, 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 44dca694613c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SalesforceV2SourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SalesforceV2Source; - -public final class SalesforceV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SalesforceV2Source model = BinaryData.fromString( - "{\"type\":\"SalesforceV2Source\",\"SOQLQuery\":\"databz\",\"query\":\"datahvsmt\",\"includeDeletedObjects\":\"databrhi\",\"pageSize\":\"datamldtk\",\"queryTimeout\":\"dataajpxtkrafhziquir\",\"additionalColumns\":\"dataqusdznnhhjdfy\",\"sourceRetryCount\":\"dataiupdmbhaumpw\",\"sourceRetryWait\":\"dataero\",\"maxConcurrentConnections\":\"datanvjouzjkjxbraqz\",\"disableMetricsCollection\":\"datavogfmpdlm\",\"\":{\"nklbwyqoypodrq\":\"datal\",\"jerokbdkwvjond\":\"datajxmgxsp\",\"cloyvr\":\"dataaiydjgkdjmylhcjx\",\"bkigzvugwbc\":\"datazepnlwuhtfabafk\"}}") - .toObject(SalesforceV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SalesforceV2Source model = new SalesforceV2Source().withSourceRetryCount("dataiupdmbhaumpw") - .withSourceRetryWait("dataero") - .withMaxConcurrentConnections("datanvjouzjkjxbraqz") - .withDisableMetricsCollection("datavogfmpdlm") - .withQueryTimeout("dataajpxtkrafhziquir") - .withAdditionalColumns("dataqusdznnhhjdfy") - .withSoqlQuery("databz") - .withQuery("datahvsmt") - .withIncludeDeletedObjects("databrhi") - .withPageSize("datamldtk"); - model = BinaryData.fromObject(model).toObject(SalesforceV2Source.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java deleted file mode 100644 index f62e908a0b24..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwCubeDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapBwCubeDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapBwCubeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapBwCubeDataset model = BinaryData.fromString( - "{\"type\":\"SapBwCube\",\"description\":\"pu\",\"structure\":\"dataa\",\"schema\":\"datasujtgg\",\"linkedServiceName\":{\"referenceName\":\"bszam\",\"parameters\":{\"lrnhhjtvhqsz\":\"dataejpdcliqwzutiy\",\"dp\":\"datasyovqmqc\"}},\"parameters\":{\"kjthl\":{\"type\":\"Object\",\"defaultValue\":\"datanf\"},\"wfubk\":{\"type\":\"String\",\"defaultValue\":\"dataxw\"},\"uktdrsjtmnkxjouw\":{\"type\":\"Int\",\"defaultValue\":\"datajjxumowynjmoozm\"}},\"annotations\":[\"datafdt\",\"datatia\"],\"folder\":{\"name\":\"rnuhcfhepisqbc\"},\"\":{\"blcyeqdobobaq\":\"dataoiommemsoq\",\"srsixwn\":\"dataabebckc\",\"qyyfrridzfpsfyak\":\"datapjcxbjgfm\"}}") - .toObject(SapBwCubeDataset.class); - Assertions.assertEquals("pu", model.description()); - Assertions.assertEquals("bszam", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("kjthl").type()); - Assertions.assertEquals("rnuhcfhepisqbc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwCubeDataset model = new SapBwCubeDataset().withDescription("pu") - .withStructure("dataa") - .withSchema("datasujtgg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bszam") - .withParameters(mapOf("lrnhhjtvhqsz", "dataejpdcliqwzutiy", "dp", "datasyovqmqc"))) - .withParameters( - mapOf("kjthl", new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datanf"), - "wfubk", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxw"), - "uktdrsjtmnkxjouw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datajjxumowynjmoozm"))) - .withAnnotations(Arrays.asList("datafdt", "datatia")) - .withFolder(new DatasetFolder().withName("rnuhcfhepisqbc")); - model = BinaryData.fromObject(model).toObject(SapBwCubeDataset.class); - Assertions.assertEquals("pu", model.description()); - Assertions.assertEquals("bszam", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("kjthl").type()); - Assertions.assertEquals("rnuhcfhepisqbc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java deleted file mode 100644 index ed00775dfa20..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapBwSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapBwSource; - -public final class SapBwSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapBwSource model = BinaryData.fromString( - "{\"type\":\"SapBwSource\",\"query\":\"dataprf\",\"queryTimeout\":\"datahfv\",\"additionalColumns\":\"datayqzhoikemhohxa\",\"sourceRetryCount\":\"dataxoowpoogozer\",\"sourceRetryWait\":\"datazvpbnkgkuujeqqjq\",\"maxConcurrentConnections\":\"datajkajlogvfnwq\",\"disableMetricsCollection\":\"datalvazkqkycg\",\"\":{\"c\":\"datawehjybboqyxi\"}}") - .toObject(SapBwSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapBwSource model = new SapBwSource().withSourceRetryCount("dataxoowpoogozer") - .withSourceRetryWait("datazvpbnkgkuujeqqjq") - .withMaxConcurrentConnections("datajkajlogvfnwq") - .withDisableMetricsCollection("datalvazkqkycg") - .withQueryTimeout("datahfv") - .withAdditionalColumns("datayqzhoikemhohxa") - .withQuery("dataprf"); - model = BinaryData.fromObject(model).toObject(SapBwSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java deleted file mode 100644 index ef2686eac14d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapCloudForCustomerResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapCloudForCustomerResource\",\"typeProperties\":{\"path\":\"datadfhmlx\"},\"description\":\"keknumkqafzv\",\"structure\":\"datariysjrgt\",\"schema\":\"datawpuqpsrc\",\"linkedServiceName\":{\"referenceName\":\"kdvvoydwedggwg\",\"parameters\":{\"drjbjngoars\":\"databwatz\"}},\"parameters\":{\"rqw\":{\"type\":\"Float\",\"defaultValue\":\"dataemzcyniapypimrx\"},\"stuinytkmlfupjzc\":{\"type\":\"Object\",\"defaultValue\":\"datae\"},\"yxjg\":{\"type\":\"Array\",\"defaultValue\":\"datazj\"}},\"annotations\":[\"datauerrdaktnytkbc\",\"datarfcvcp\"],\"folder\":{\"name\":\"j\"},\"\":{\"vlhnhhcikhleb\":\"datapw\",\"giflr\":\"datajgylsac\"}}") - .toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("keknumkqafzv", model.description()); - Assertions.assertEquals("kdvvoydwedggwg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("rqw").type()); - Assertions.assertEquals("j", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDataset model - = new SapCloudForCustomerResourceDataset().withDescription("keknumkqafzv") - .withStructure("datariysjrgt") - .withSchema("datawpuqpsrc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kdvvoydwedggwg") - .withParameters(mapOf("drjbjngoars", "databwatz"))) - .withParameters( - mapOf("rqw", - new ParameterSpecification().withType(ParameterType.FLOAT) - .withDefaultValue("dataemzcyniapypimrx"), - "stuinytkmlfupjzc", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datae"), "yxjg", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datazj"))) - .withAnnotations(Arrays.asList("datauerrdaktnytkbc", "datarfcvcp")) - .withFolder(new DatasetFolder().withName("j")) - .withPath("datadfhmlx"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerResourceDataset.class); - Assertions.assertEquals("keknumkqafzv", model.description()); - Assertions.assertEquals("kdvvoydwedggwg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("rqw").type()); - Assertions.assertEquals("j", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java deleted file mode 100644 index e1661ced5b69..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerResourceDatasetTypeProperties; - -public final class SapCloudForCustomerResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model = BinaryData.fromString("{\"path\":\"dataygotoh\"}") - .toObject(SapCloudForCustomerResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerResourceDatasetTypeProperties model - = new SapCloudForCustomerResourceDatasetTypeProperties().withPath("dataygotoh"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java deleted file mode 100644 index 97908921e94a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSinkTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSink; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSinkWriteBehavior; -import org.junit.jupiter.api.Assertions; - -public final class SapCloudForCustomerSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerSink model = BinaryData.fromString( - "{\"type\":\"SapCloudForCustomerSink\",\"writeBehavior\":\"Update\",\"httpRequestTimeout\":\"datadrphiyxjqr\",\"writeBatchSize\":\"datapz\",\"writeBatchTimeout\":\"dataachpfzsfutaapbrw\",\"sinkRetryCount\":\"dataovvyhsorcavkfh\",\"sinkRetryWait\":\"dataigzwedfteratvpk\",\"maxConcurrentConnections\":\"datawrmujizdmh\",\"disableMetricsCollection\":\"datafjdiwzgwmumuc\",\"\":{\"njgftq\":\"datawhscvaqdxge\"}}") - .toObject(SapCloudForCustomerSink.class); - Assertions.assertEquals(SapCloudForCustomerSinkWriteBehavior.UPDATE, model.writeBehavior()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSink model = new SapCloudForCustomerSink().withWriteBatchSize("datapz") - .withWriteBatchTimeout("dataachpfzsfutaapbrw") - .withSinkRetryCount("dataovvyhsorcavkfh") - .withSinkRetryWait("dataigzwedfteratvpk") - .withMaxConcurrentConnections("datawrmujizdmh") - .withDisableMetricsCollection("datafjdiwzgwmumuc") - .withWriteBehavior(SapCloudForCustomerSinkWriteBehavior.UPDATE) - .withHttpRequestTimeout("datadrphiyxjqr"); - 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 1c164439ed00..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapCloudForCustomerSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapCloudForCustomerSource; - -public final class SapCloudForCustomerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapCloudForCustomerSource model = BinaryData.fromString( - "{\"type\":\"SapCloudForCustomerSource\",\"query\":\"datacnk\",\"httpRequestTimeout\":\"datamiecfmqc\",\"queryTimeout\":\"datapcdbvcxo\",\"additionalColumns\":\"datahefuhnbdl\",\"sourceRetryCount\":\"datawectz\",\"sourceRetryWait\":\"datagvcbt\",\"maxConcurrentConnections\":\"datampnkyvujhej\",\"disableMetricsCollection\":\"datarvlguy\",\"\":{\"kormrcjshtcfn\":\"datangnbqhmuqyz\",\"ehuboq\":\"dataffdaxlyhxpdq\",\"glynbqpeo\":\"datazxnuxamxikhrxi\",\"wtihtnywgtsodnx\":\"dataecbog\"}}") - .toObject(SapCloudForCustomerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapCloudForCustomerSource model = new SapCloudForCustomerSource().withSourceRetryCount("datawectz") - .withSourceRetryWait("datagvcbt") - .withMaxConcurrentConnections("datampnkyvujhej") - .withDisableMetricsCollection("datarvlguy") - .withQueryTimeout("datapcdbvcxo") - .withAdditionalColumns("datahefuhnbdl") - .withQuery("datacnk") - .withHttpRequestTimeout("datamiecfmqc"); - model = BinaryData.fromObject(model).toObject(SapCloudForCustomerSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java deleted file mode 100644 index 29eb5bb6953f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapEccResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapEccResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapEccResource\",\"typeProperties\":{\"path\":\"datawtoi\"},\"description\":\"bxitrapwzhlutj\",\"structure\":\"datazelsr\",\"schema\":\"datamvupm\",\"linkedServiceName\":{\"referenceName\":\"akosysycvldee\",\"parameters\":{\"egbvbbd\":\"datasaipusuof\",\"f\":\"dataedfflzvsluazz\",\"ee\":\"dataveugpx\",\"scboxra\":\"datapup\"}},\"parameters\":{\"fdr\":{\"type\":\"Float\",\"defaultValue\":\"datarjgobekxeheowsec\"},\"seesacuicnvq\":{\"type\":\"Int\",\"defaultValue\":\"dataskiwrjsbdb\"},\"vmrfaptndrmmn\":{\"type\":\"Array\",\"defaultValue\":\"datau\"}},\"annotations\":[\"datak\",\"dataxrqkekcdavi\",\"dataebeqrfza\",\"dataqymcwt\"],\"folder\":{\"name\":\"ceplbrzgkuorwpq\"},\"\":{\"ykk\":\"dataweobptscr\",\"sbnlyoifgdfzjqth\":\"dataelayynoyjyfls\",\"kxxlwwo\":\"datakcvoevcwfzo\",\"ubdmg\":\"dataxgbsdzcgcvypj\"}}") - .toObject(SapEccResourceDataset.class); - Assertions.assertEquals("bxitrapwzhlutj", model.description()); - Assertions.assertEquals("akosysycvldee", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fdr").type()); - Assertions.assertEquals("ceplbrzgkuorwpq", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDataset model = new SapEccResourceDataset().withDescription("bxitrapwzhlutj") - .withStructure("datazelsr") - .withSchema("datamvupm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("akosysycvldee") - .withParameters(mapOf("egbvbbd", "datasaipusuof", "f", "dataedfflzvsluazz", "ee", "dataveugpx", - "scboxra", "datapup"))) - .withParameters(mapOf("fdr", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datarjgobekxeheowsec"), - "seesacuicnvq", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataskiwrjsbdb"), - "vmrfaptndrmmn", new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datau"))) - .withAnnotations(Arrays.asList("datak", "dataxrqkekcdavi", "dataebeqrfza", "dataqymcwt")) - .withFolder(new DatasetFolder().withName("ceplbrzgkuorwpq")) - .withPath("datawtoi"); - model = BinaryData.fromObject(model).toObject(SapEccResourceDataset.class); - Assertions.assertEquals("bxitrapwzhlutj", model.description()); - Assertions.assertEquals("akosysycvldee", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("fdr").type()); - Assertions.assertEquals("ceplbrzgkuorwpq", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 414df87ef63b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapEccResourceDatasetTypeProperties; - -public final class SapEccResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccResourceDatasetTypeProperties model = BinaryData.fromString("{\"path\":\"databxehujcqgzwvx\"}") - .toObject(SapEccResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccResourceDatasetTypeProperties model - = new SapEccResourceDatasetTypeProperties().withPath("databxehujcqgzwvx"); - model = BinaryData.fromObject(model).toObject(SapEccResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java deleted file mode 100644 index 6495341e696b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapEccSourceTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapEccSource; - -public final class SapEccSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapEccSource model = BinaryData.fromString( - "{\"type\":\"SapEccSource\",\"query\":\"datarjtwjimcfrhtz\",\"httpRequestTimeout\":\"datauvoaxqo\",\"queryTimeout\":\"datalp\",\"additionalColumns\":\"datapbzyqbggxcyra\",\"sourceRetryCount\":\"datazuaxtbr\",\"sourceRetryWait\":\"datayurxlpuwxslzq\",\"maxConcurrentConnections\":\"datax\",\"disableMetricsCollection\":\"datanrurtnwbjj\",\"\":{\"lshma\":\"datapckhfbmdemo\",\"fltbsayvmwa\":\"datao\",\"kqcm\":\"datajx\",\"tn\":\"datadc\"}}") - .toObject(SapEccSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapEccSource model = new SapEccSource().withSourceRetryCount("datazuaxtbr") - .withSourceRetryWait("datayurxlpuwxslzq") - .withMaxConcurrentConnections("datax") - .withDisableMetricsCollection("datanrurtnwbjj") - .withQueryTimeout("datalp") - .withAdditionalColumns("datapbzyqbggxcyra") - .withQuery("datarjtwjimcfrhtz") - .withHttpRequestTimeout("datauvoaxqo"); - 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 965e588d18ae..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\":\"datazvixty\"}") - .toObject(SapHanaPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaPartitionSettings model = new SapHanaPartitionSettings().withPartitionColumnName("datazvixty"); - 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 3b7bc1b39639..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaSourceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapHanaPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SapHanaSource; - -public final class SapHanaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaSource model = BinaryData.fromString( - "{\"type\":\"SapHanaSource\",\"query\":\"datartqegab\",\"packetSize\":\"datajrjz\",\"partitionOption\":\"datascgorv\",\"partitionSettings\":{\"partitionColumnName\":\"databepgfrbijoeh\"},\"queryTimeout\":\"datawwsgqziwo\",\"additionalColumns\":\"datatwjssyazmmbu\",\"sourceRetryCount\":\"datato\",\"sourceRetryWait\":\"datakxfkftqkbyru\",\"maxConcurrentConnections\":\"dataawucmqfurbtbo\",\"disableMetricsCollection\":\"datalyve\",\"\":{\"ijwiznb\":\"datajguwts\"}}") - .toObject(SapHanaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaSource model = new SapHanaSource().withSourceRetryCount("datato") - .withSourceRetryWait("datakxfkftqkbyru") - .withMaxConcurrentConnections("dataawucmqfurbtbo") - .withDisableMetricsCollection("datalyve") - .withQueryTimeout("datawwsgqziwo") - .withAdditionalColumns("datatwjssyazmmbu") - .withQuery("datartqegab") - .withPacketSize("datajrjz") - .withPartitionOption("datascgorv") - .withPartitionSettings(new SapHanaPartitionSettings().withPartitionColumnName("databepgfrbijoeh")); - model = BinaryData.fromObject(model).toObject(SapHanaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java deleted file mode 100644 index 7f34ead98907..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapHanaTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapHanaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaTableDataset model = BinaryData.fromString( - "{\"type\":\"SapHanaTable\",\"typeProperties\":{\"schema\":\"dataaoibmjk\",\"table\":\"datarljd\"},\"description\":\"kylaxrjiqoqovqhg\",\"structure\":\"datagxuwudgcyqru\",\"schema\":\"datamryddnqivahfcq\",\"linkedServiceName\":{\"referenceName\":\"njze\",\"parameters\":{\"w\":\"datacciyoypoedks\",\"xuyxsxteuikhzn\":\"dataibpybqei\",\"rkrgsdc\":\"dataffnhcgnaqsrmrfqd\"}},\"parameters\":{\"byzposzfutgpbygb\":{\"type\":\"Array\",\"defaultValue\":\"dataqlwyqzn\"},\"zpvqewflwzhxzuxe\":{\"type\":\"SecureString\",\"defaultValue\":\"datamoiqg\"},\"ajdqxymxx\":{\"type\":\"Float\",\"defaultValue\":\"dataywlrkqsqvvdkfpfj\"}},\"annotations\":[\"datadjidcetfvgwfws\",\"datadigwoup\"],\"folder\":{\"name\":\"ddqsvclrsnxfrp\"},\"\":{\"tfxxepzpxzxlcqz\":\"dataqclmd\",\"jbsmkirpqni\":\"dataxaitiqm\",\"uzltenlb\":\"dataudmhkcomeobwk\",\"uomtxj\":\"dataxlmxozesndo\"}}") - .toObject(SapHanaTableDataset.class); - Assertions.assertEquals("kylaxrjiqoqovqhg", model.description()); - Assertions.assertEquals("njze", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("byzposzfutgpbygb").type()); - Assertions.assertEquals("ddqsvclrsnxfrp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDataset model = new SapHanaTableDataset().withDescription("kylaxrjiqoqovqhg") - .withStructure("datagxuwudgcyqru") - .withSchema("datamryddnqivahfcq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("njze") - .withParameters(mapOf("w", "datacciyoypoedks", "xuyxsxteuikhzn", "dataibpybqei", "rkrgsdc", - "dataffnhcgnaqsrmrfqd"))) - .withParameters(mapOf("byzposzfutgpbygb", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("dataqlwyqzn"), - "zpvqewflwzhxzuxe", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("datamoiqg"), - "ajdqxymxx", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataywlrkqsqvvdkfpfj"))) - .withAnnotations(Arrays.asList("datadjidcetfvgwfws", "datadigwoup")) - .withFolder(new DatasetFolder().withName("ddqsvclrsnxfrp")) - .withSchemaTypePropertiesSchema("dataaoibmjk") - .withTable("datarljd"); - model = BinaryData.fromObject(model).toObject(SapHanaTableDataset.class); - Assertions.assertEquals("kylaxrjiqoqovqhg", model.description()); - Assertions.assertEquals("njze", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("byzposzfutgpbygb").type()); - Assertions.assertEquals("ddqsvclrsnxfrp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java deleted file mode 100644 index c974699733ff..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapHanaTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapHanaTableDatasetTypeProperties; - -public final class SapHanaTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapHanaTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"dataixymckik\",\"table\":\"datayvurhwishy\"}") - .toObject(SapHanaTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapHanaTableDatasetTypeProperties model - = new SapHanaTableDatasetTypeProperties().withSchema("dataixymckik").withTable("datayvurhwishy"); - model = BinaryData.fromObject(model).toObject(SapHanaTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java deleted file mode 100644 index 058ac193f1c6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapOdpResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapOdpResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapOdpResource\",\"typeProperties\":{\"context\":\"datauzimbwttmhlvr\",\"objectName\":\"datacyxrn\"},\"description\":\"kfajnpdwzjggkw\",\"structure\":\"datap\",\"schema\":\"dataziayfiqiidxcor\",\"linkedServiceName\":{\"referenceName\":\"vudyhgtrttcuayi\",\"parameters\":{\"zifb\":\"datankmm\",\"rtgqrqkk\":\"datagqexowq\",\"kuobpw\":\"datafy\",\"pnyjtu\":\"datainpgobothxiew\"}},\"parameters\":{\"uwh\":{\"type\":\"Object\",\"defaultValue\":\"dataextchslroldo\"},\"gkudsozodwjc\":{\"type\":\"Bool\",\"defaultValue\":\"dataifiozttcbiic\"},\"mz\":{\"type\":\"Float\",\"defaultValue\":\"datayxryqyc\"}},\"annotations\":[\"datafgdwzauz\",\"datadheadnyciwz\",\"datailykqadfgesv\"],\"folder\":{\"name\":\"a\"},\"\":{\"ovqmxqsxofx\":\"dataizmadjrsbgailj\",\"kgltsxooiobhieb\":\"datankiu\",\"tlsrvqzgaqsosrn\":\"datau\",\"npesw\":\"datalvgrghnhuoxrqhjn\"}}") - .toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("kfajnpdwzjggkw", model.description()); - Assertions.assertEquals("vudyhgtrttcuayi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("uwh").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDataset model = new SapOdpResourceDataset().withDescription("kfajnpdwzjggkw") - .withStructure("datap") - .withSchema("dataziayfiqiidxcor") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vudyhgtrttcuayi") - .withParameters(mapOf("zifb", "datankmm", "rtgqrqkk", "datagqexowq", "kuobpw", "datafy", "pnyjtu", - "datainpgobothxiew"))) - .withParameters(mapOf("uwh", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("dataextchslroldo"), - "gkudsozodwjc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataifiozttcbiic"), "mz", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datayxryqyc"))) - .withAnnotations(Arrays.asList("datafgdwzauz", "datadheadnyciwz", "datailykqadfgesv")) - .withFolder(new DatasetFolder().withName("a")) - .withContext("datauzimbwttmhlvr") - .withObjectName("datacyxrn"); - model = BinaryData.fromObject(model).toObject(SapOdpResourceDataset.class); - Assertions.assertEquals("kfajnpdwzjggkw", model.description()); - Assertions.assertEquals("vudyhgtrttcuayi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("uwh").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 88f69ca6009d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapOdpResourceDatasetTypeProperties; - -public final class SapOdpResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpResourceDatasetTypeProperties model - = BinaryData.fromString("{\"context\":\"datanhqkgebzqz\",\"objectName\":\"datacsviu\"}") - .toObject(SapOdpResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpResourceDatasetTypeProperties model - = new SapOdpResourceDatasetTypeProperties().withContext("datanhqkgebzqz").withObjectName("datacsviu"); - model = BinaryData.fromObject(model).toObject(SapOdpResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java deleted file mode 100644 index 1b846e05d175..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOdpSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapOdpSource; - -public final class SapOdpSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOdpSource model = BinaryData.fromString( - "{\"type\":\"SapOdpSource\",\"extractionMode\":\"dataiumuzt\",\"subscriberProcess\":\"datajtfmcnrgwgcstozr\",\"selection\":\"dataehmvrveurpzrysef\",\"projection\":\"datachkkwah\",\"queryTimeout\":\"datayrdlvbomhfqsjz\",\"additionalColumns\":\"dataktk\",\"sourceRetryCount\":\"dataxtee\",\"sourceRetryWait\":\"datahxgnlpjytle\",\"maxConcurrentConnections\":\"datamijhnjk\",\"disableMetricsCollection\":\"dataohhuw\",\"\":{\"b\":\"datakzbdeyhwebh\",\"lynd\":\"dataocfvajmmdmb\",\"fzxs\":\"dataqu\"}}") - .toObject(SapOdpSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOdpSource model = new SapOdpSource().withSourceRetryCount("dataxtee") - .withSourceRetryWait("datahxgnlpjytle") - .withMaxConcurrentConnections("datamijhnjk") - .withDisableMetricsCollection("dataohhuw") - .withQueryTimeout("datayrdlvbomhfqsjz") - .withAdditionalColumns("dataktk") - .withExtractionMode("dataiumuzt") - .withSubscriberProcess("datajtfmcnrgwgcstozr") - .withSelection("dataehmvrveurpzrysef") - .withProjection("datachkkwah"); - 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 14bbb66fb836..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubSourceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapOpenHubSource; - -public final class SapOpenHubSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubSource model = BinaryData.fromString( - "{\"type\":\"SapOpenHubSource\",\"excludeLastRequest\":\"datar\",\"baseRequestId\":\"datalximvr\",\"customRfcReadTableFunctionModule\":\"datajja\",\"sapDataColumnDelimiter\":\"dataaskullvtsauj\",\"queryTimeout\":\"datahtz\",\"additionalColumns\":\"datazqrpfhzxkjyg\",\"sourceRetryCount\":\"dataidgwdhawj\",\"sourceRetryWait\":\"datazb\",\"maxConcurrentConnections\":\"datat\",\"disableMetricsCollection\":\"datacmxqdexnkp\",\"\":{\"kpn\":\"datacmsmz\"}}") - .toObject(SapOpenHubSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubSource model = new SapOpenHubSource().withSourceRetryCount("dataidgwdhawj") - .withSourceRetryWait("datazb") - .withMaxConcurrentConnections("datat") - .withDisableMetricsCollection("datacmxqdexnkp") - .withQueryTimeout("datahtz") - .withAdditionalColumns("datazqrpfhzxkjyg") - .withExcludeLastRequest("datar") - .withBaseRequestId("datalximvr") - .withCustomRfcReadTableFunctionModule("datajja") - .withSapDataColumnDelimiter("dataaskullvtsauj"); - model = BinaryData.fromObject(model).toObject(SapOpenHubSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java deleted file mode 100644 index 36526dcd0a18..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapOpenHubTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapOpenHubTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubTableDataset model = BinaryData.fromString( - "{\"type\":\"SapOpenHubTable\",\"typeProperties\":{\"openHubDestinationName\":\"datamrzcqfevnkyakc\",\"excludeLastRequest\":\"dataehognsddjkkdede\",\"baseRequestId\":\"dataazogfc\"},\"description\":\"cx\",\"structure\":\"dataumtcqxmyvkxixypa\",\"schema\":\"datafjczgohvpsuwi\",\"linkedServiceName\":{\"referenceName\":\"hmxczbyfkocgmzd\",\"parameters\":{\"ngtwgxro\":\"datanlwsc\",\"ihavis\":\"datawvplksdksutacuc\",\"vpmqququxlph\":\"databvjh\"}},\"parameters\":{\"icgym\":{\"type\":\"SecureString\",\"defaultValue\":\"dataexoweorocr\"},\"vhtvijvwmrg\":{\"type\":\"String\",\"defaultValue\":\"dataqpfy\"},\"hbtqyzy\":{\"type\":\"Array\",\"defaultValue\":\"datahrplcxfmbzquuutq\"},\"vxjdqosxzmdz\":{\"type\":\"Int\",\"defaultValue\":\"datambky\"}},\"annotations\":[\"dataqfufkekzfkicxhs\",\"datavmnkgghvsryjok\"],\"folder\":{\"name\":\"vbjsarxsvmfp\"},\"\":{\"hgxg\":\"databpzgfgqpu\",\"ukgsn\":\"dataeabbfpxxavlo\",\"xj\":\"datahw\"}}") - .toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("cx", model.description()); - Assertions.assertEquals("hmxczbyfkocgmzd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("icgym").type()); - Assertions.assertEquals("vbjsarxsvmfp", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDataset model = new SapOpenHubTableDataset().withDescription("cx") - .withStructure("dataumtcqxmyvkxixypa") - .withSchema("datafjczgohvpsuwi") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("hmxczbyfkocgmzd") - .withParameters( - mapOf("ngtwgxro", "datanlwsc", "ihavis", "datawvplksdksutacuc", "vpmqququxlph", "databvjh"))) - .withParameters(mapOf("icgym", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataexoweorocr"), - "vhtvijvwmrg", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataqpfy"), - "hbtqyzy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahrplcxfmbzquuutq"), - "vxjdqosxzmdz", new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datambky"))) - .withAnnotations(Arrays.asList("dataqfufkekzfkicxhs", "datavmnkgghvsryjok")) - .withFolder(new DatasetFolder().withName("vbjsarxsvmfp")) - .withOpenHubDestinationName("datamrzcqfevnkyakc") - .withExcludeLastRequest("dataehognsddjkkdede") - .withBaseRequestId("dataazogfc"); - model = BinaryData.fromObject(model).toObject(SapOpenHubTableDataset.class); - Assertions.assertEquals("cx", model.description()); - Assertions.assertEquals("hmxczbyfkocgmzd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.SECURE_STRING, model.parameters().get("icgym").type()); - Assertions.assertEquals("vbjsarxsvmfp", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java deleted file mode 100644 index deb57c73f8f8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapOpenHubTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubTableDatasetTypeProperties; - -public final class SapOpenHubTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapOpenHubTableDatasetTypeProperties model = BinaryData.fromString( - "{\"openHubDestinationName\":\"dataf\",\"excludeLastRequest\":\"dataxcebnbeo\",\"baseRequestId\":\"dataemqqerwqx\"}") - .toObject(SapOpenHubTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapOpenHubTableDatasetTypeProperties model - = new SapOpenHubTableDatasetTypeProperties().withOpenHubDestinationName("dataf") - .withExcludeLastRequest("dataxcebnbeo") - .withBaseRequestId("dataemqqerwqx"); - model = BinaryData.fromObject(model).toObject(SapOpenHubTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTablePartitionSettingsTests.java deleted file mode 100644 index dee35bb79b3b..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\":\"datakaeqrnglgit\",\"partitionUpperBound\":\"dataefwdkpadktsyy\",\"partitionLowerBound\":\"dataojrfqtfk\",\"maxPartitionsNumber\":\"dataupmdajqpdvvzb\"}") - .toObject(SapTablePartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTablePartitionSettings model = new SapTablePartitionSettings().withPartitionColumnName("datakaeqrnglgit") - .withPartitionUpperBound("dataefwdkpadktsyy") - .withPartitionLowerBound("dataojrfqtfk") - .withMaxPartitionsNumber("dataupmdajqpdvvzb"); - model = BinaryData.fromObject(model).toObject(SapTablePartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java deleted file mode 100644 index 74139d5f1378..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SapTableResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SapTableResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableResourceDataset model = BinaryData.fromString( - "{\"type\":\"SapTableResource\",\"typeProperties\":{\"tableName\":\"datadngvnqdjgsbtwg\"},\"description\":\"dxuczl\",\"structure\":\"datab\",\"schema\":\"datacznrirpiiuvcqo\",\"linkedServiceName\":{\"referenceName\":\"kqwucqsd\",\"parameters\":{\"kjlamyvwprjmaiht\":\"datacwtvmijccp\",\"ppvolzayjw\":\"datanlbhxjppcbqetfz\"}},\"parameters\":{\"rwgxeegxbnjnczep\":{\"type\":\"Array\",\"defaultValue\":\"datamprklatwiuujxsuj\"},\"uyyaescjxna\":{\"type\":\"SecureString\",\"defaultValue\":\"dataymgbfmd\"},\"inzkefkzlxvc\":{\"type\":\"Float\",\"defaultValue\":\"dataxqbkxdtbfkih\"}},\"annotations\":[\"datagoeozlib\",\"databnunzuysajvvqlho\",\"datayonelivgtibtkqjq\",\"datacaj\"],\"folder\":{\"name\":\"y\"},\"\":{\"mrvkxeojtdyulglh\":\"datahk\",\"xspxgogypbztgae\":\"datalwruklfq\"}}") - .toObject(SapTableResourceDataset.class); - Assertions.assertEquals("dxuczl", model.description()); - Assertions.assertEquals("kqwucqsd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rwgxeegxbnjnczep").type()); - Assertions.assertEquals("y", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDataset model = new SapTableResourceDataset().withDescription("dxuczl") - .withStructure("datab") - .withSchema("datacznrirpiiuvcqo") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kqwucqsd") - .withParameters(mapOf("kjlamyvwprjmaiht", "datacwtvmijccp", "ppvolzayjw", "datanlbhxjppcbqetfz"))) - .withParameters(mapOf("rwgxeegxbnjnczep", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamprklatwiuujxsuj"), - "uyyaescjxna", - new ParameterSpecification().withType(ParameterType.SECURE_STRING).withDefaultValue("dataymgbfmd"), - "inzkefkzlxvc", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxqbkxdtbfkih"))) - .withAnnotations(Arrays.asList("datagoeozlib", "databnunzuysajvvqlho", "datayonelivgtibtkqjq", "datacaj")) - .withFolder(new DatasetFolder().withName("y")) - .withTableName("datadngvnqdjgsbtwg"); - model = BinaryData.fromObject(model).toObject(SapTableResourceDataset.class); - Assertions.assertEquals("dxuczl", model.description()); - Assertions.assertEquals("kqwucqsd", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("rwgxeegxbnjnczep").type()); - Assertions.assertEquals("y", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java deleted file mode 100644 index 6096a2d00fb9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableResourceDatasetTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SapTableResourceDatasetTypeProperties; - -public final class SapTableResourceDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableResourceDatasetTypeProperties model = BinaryData.fromString("{\"tableName\":\"datajnskvct\"}") - .toObject(SapTableResourceDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableResourceDatasetTypeProperties model - = new SapTableResourceDatasetTypeProperties().withTableName("datajnskvct"); - model = BinaryData.fromObject(model).toObject(SapTableResourceDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java deleted file mode 100644 index e2d356ed4b19..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SapTableSourceTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SapTablePartitionSettings; -import com.azure.resourcemanager.datafactory.models.SapTableSource; - -public final class SapTableSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SapTableSource model = BinaryData.fromString( - "{\"type\":\"SapTableSource\",\"rowCount\":\"dataujohwwtle\",\"rowSkips\":\"datapfr\",\"rfcTableFields\":\"dataqnjushsxhtvn\",\"rfcTableOptions\":\"datamrrgmlwgomhs\",\"batchSize\":\"datad\",\"customRfcReadTableFunctionModule\":\"datacn\",\"sapDataColumnDelimiter\":\"dataijxfcngeffrg\",\"partitionOption\":\"datadmrowhrrguvd\",\"partitionSettings\":{\"partitionColumnName\":\"dataucwawlms\",\"partitionUpperBound\":\"datalzomdfcphg\",\"partitionLowerBound\":\"dataijzhrb\",\"maxPartitionsNumber\":\"datajvublou\"},\"queryTimeout\":\"datafyqfbgeblp\",\"additionalColumns\":\"datackmnpzubz\",\"sourceRetryCount\":\"dataswgfjrg\",\"sourceRetryWait\":\"datacpbshqzzlcfe\",\"maxConcurrentConnections\":\"dataryxnklfswzsyigx\",\"disableMetricsCollection\":\"dataxhygc\",\"\":{\"suopcdiaossp\":\"dataapeuqyzf\",\"qgllnhgisiw\":\"datautgkmrsq\"}}") - .toObject(SapTableSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SapTableSource model = new SapTableSource().withSourceRetryCount("dataswgfjrg") - .withSourceRetryWait("datacpbshqzzlcfe") - .withMaxConcurrentConnections("dataryxnklfswzsyigx") - .withDisableMetricsCollection("dataxhygc") - .withQueryTimeout("datafyqfbgeblp") - .withAdditionalColumns("datackmnpzubz") - .withRowCount("dataujohwwtle") - .withRowSkips("datapfr") - .withRfcTableFields("dataqnjushsxhtvn") - .withRfcTableOptions("datamrrgmlwgomhs") - .withBatchSize("datad") - .withCustomRfcReadTableFunctionModule("datacn") - .withSapDataColumnDelimiter("dataijxfcngeffrg") - .withPartitionOption("datadmrowhrrguvd") - .withPartitionSettings(new SapTablePartitionSettings().withPartitionColumnName("dataucwawlms") - .withPartitionUpperBound("datalzomdfcphg") - .withPartitionLowerBound("dataijzhrb") - .withMaxPartitionsNumber("datajvublou")); - 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 891c5e3f6da2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerRecurrenceTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated 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\":\"Hour\",\"interval\":565444371,\"startTime\":\"2021-04-16T17:13:44Z\",\"endTime\":\"2021-07-11T08:54:52Z\",\"timeZone\":\"xnopdeqqf\",\"schedule\":{\"minutes\":[992003430,1672235517,1532557735,1318273783],\"hours\":[1522713628],\"weekDays\":[\"Tuesday\",\"Tuesday\"],\"monthDays\":[1460273823,164048462],\"monthlyOccurrences\":[{\"day\":\"Saturday\",\"occurrence\":2147336524,\"\":{\"jkwspn\":\"dataamx\",\"djeegllcyk\":\"databb\",\"ukfmkq\":\"datahymd\",\"jyxhwvnyupszchq\":\"datakzvxknygimohrll\"}}],\"\":{\"nxbl\":\"dataddlazvs\"}},\"\":{\"oxehynur\":\"databymgfwdxukm\"}}") - .toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.HOUR, model.frequency()); - Assertions.assertEquals(565444371, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T17:13:44Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-11T08:54:52Z"), model.endTime()); - Assertions.assertEquals("xnopdeqqf", model.timeZone()); - Assertions.assertEquals(992003430, model.schedule().minutes().get(0)); - Assertions.assertEquals(1522713628, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.TUESDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(1460273823, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(2147336524, model.schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTriggerRecurrence model - = new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.HOUR) - .withInterval(565444371) - .withStartTime(OffsetDateTime.parse("2021-04-16T17:13:44Z")) - .withEndTime(OffsetDateTime.parse("2021-07-11T08:54:52Z")) - .withTimeZone("xnopdeqqf") - .withSchedule(new RecurrenceSchedule() - .withMinutes(Arrays.asList(992003430, 1672235517, 1532557735, 1318273783)) - .withHours(Arrays.asList(1522713628)) - .withWeekDays(Arrays.asList(DaysOfWeek.TUESDAY, DaysOfWeek.TUESDAY)) - .withMonthDays(Arrays.asList(1460273823, 164048462)) - .withMonthlyOccurrences(Arrays.asList(new RecurrenceScheduleOccurrence().withDay(DayOfWeek.SATURDAY) - .withOccurrence(2147336524) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerRecurrence.class); - Assertions.assertEquals(RecurrenceFrequency.HOUR, model.frequency()); - Assertions.assertEquals(565444371, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T17:13:44Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-11T08:54:52Z"), model.endTime()); - Assertions.assertEquals("xnopdeqqf", model.timeZone()); - Assertions.assertEquals(992003430, model.schedule().minutes().get(0)); - Assertions.assertEquals(1522713628, model.schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.TUESDAY, model.schedule().weekDays().get(0)); - Assertions.assertEquals(1460273823, model.schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(2147336524, 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 0cda8a21a17e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTests.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DayOfWeek; -import com.azure.resourcemanager.datafactory.models.DaysOfWeek; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RecurrenceFrequency; -import com.azure.resourcemanager.datafactory.models.RecurrenceSchedule; -import com.azure.resourcemanager.datafactory.models.RecurrenceScheduleOccurrence; -import com.azure.resourcemanager.datafactory.models.ScheduleTrigger; -import com.azure.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleTrigger model = BinaryData.fromString( - "{\"type\":\"ScheduleTrigger\",\"typeProperties\":{\"recurrence\":{\"frequency\":\"NotSpecified\",\"interval\":12509381,\"startTime\":\"2021-04-15T03:16:07Z\",\"endTime\":\"2021-02-16T00:41:52Z\",\"timeZone\":\"jzq\",\"schedule\":{\"minutes\":[1741544202,1918611282],\"hours\":[1229230791,1645758799,1777373889,1110822860],\"weekDays\":[\"Wednesday\",\"Wednesday\",\"Thursday\"],\"monthDays\":[89265471],\"monthlyOccurrences\":[{\"day\":\"Sunday\",\"occurrence\":1945961956,\"\":{\"oxssf\":\"datadrkcsh\",\"hzgxkwcqpvrrm\":\"datatlxqhyy\"}},{\"day\":\"Monday\",\"occurrence\":1860743831,\"\":{\"kbr\":\"datadvxddsfylb\",\"wnnsbzkumxbcn\":\"dataykrxaevburav\",\"hbtycfj\":\"dataojyn\"}}],\"\":{\"tsukdoy\":\"dataia\",\"zzcxqdrqs\":\"datapwzniekedxvwevip\"}},\"\":{\"zqazwyb\":\"datakzqybpoxqwcuslsp\",\"rnbmc\":\"dataewjvyrdownb\",\"hpdkrjlwrqh\":\"datalmzaruosmpcajxua\",\"voahektwgiumccom\":\"datahnazckgbpysgzg\"}}},\"pipelines\":[{\"pipelineReference\":{\"referenceName\":\"a\",\"name\":\"rbdhrkhf\"},\"parameters\":{\"qq\":\"dataiwcnzsimbgvrksj\",\"gzwwyubkppo\":\"dataarb\"}},{\"pipelineReference\":{\"referenceName\":\"yjqemgb\",\"name\":\"xuxmkkgbyj\"},\"parameters\":{\"ll\":\"datanbnwfekp\",\"zlvcjb\":\"datazvrvjwsff\",\"qugnqsclr\":\"datavkijynvgu\"}},{\"pipelineReference\":{\"referenceName\":\"uwhmncewcfins\",\"name\":\"mxxsyb\"},\"parameters\":{\"ckdxfl\":\"datagxzogclusic\",\"btce\":\"dataj\",\"sbgj\":\"datailcerrpalxm\"}}],\"description\":\"hzfjmnaby\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datakwlmittpbivhkdxh\",\"datavybxplbdaz\"],\"\":{\"zu\":\"datagvd\"}}") - .toObject(ScheduleTrigger.class); - Assertions.assertEquals("hzfjmnaby", model.description()); - Assertions.assertEquals("a", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("rbdhrkhf", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.NOT_SPECIFIED, model.recurrence().frequency()); - Assertions.assertEquals(12509381, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-15T03:16:07Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T00:41:52Z"), model.recurrence().endTime()); - Assertions.assertEquals("jzq", model.recurrence().timeZone()); - Assertions.assertEquals(1741544202, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(1229230791, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(89265471, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1945961956, model.recurrence().schedule().monthlyOccurrences().get(0).occurrence()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleTrigger model - = new ScheduleTrigger().withDescription("hzfjmnaby") - .withAnnotations(Arrays.asList("datakwlmittpbivhkdxh", "datavybxplbdaz")) - .withPipelines(Arrays.asList(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("a").withName("rbdhrkhf")) - .withParameters(mapOf("qq", "dataiwcnzsimbgvrksj", "gzwwyubkppo", "dataarb")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("yjqemgb").withName("xuxmkkgbyj")) - .withParameters( - mapOf("ll", "datanbnwfekp", "zlvcjb", "datazvrvjwsff", "qugnqsclr", "datavkijynvgu")), - new TriggerPipelineReference() - .withPipelineReference( - new PipelineReference().withReferenceName("uwhmncewcfins").withName("mxxsyb")) - .withParameters( - mapOf("ckdxfl", "datagxzogclusic", "btce", "dataj", "sbgj", "datailcerrpalxm")))) - .withRecurrence(new ScheduleTriggerRecurrence().withFrequency(RecurrenceFrequency.NOT_SPECIFIED) - .withInterval(12509381) - .withStartTime(OffsetDateTime.parse("2021-04-15T03:16:07Z")) - .withEndTime(OffsetDateTime.parse("2021-02-16T00:41:52Z")) - .withTimeZone("jzq") - .withSchedule(new RecurrenceSchedule().withMinutes(Arrays.asList(1741544202, 1918611282)) - .withHours(Arrays.asList(1229230791, 1645758799, 1777373889, 1110822860)) - .withWeekDays(Arrays.asList(DaysOfWeek.WEDNESDAY, DaysOfWeek.WEDNESDAY, DaysOfWeek.THURSDAY)) - .withMonthDays(Arrays.asList(89265471)) - .withMonthlyOccurrences(Arrays.asList( - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.SUNDAY) - .withOccurrence(1945961956) - .withAdditionalProperties(mapOf()), - new RecurrenceScheduleOccurrence().withDay(DayOfWeek.MONDAY) - .withOccurrence(1860743831) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTrigger.class); - Assertions.assertEquals("hzfjmnaby", model.description()); - Assertions.assertEquals("a", model.pipelines().get(0).pipelineReference().referenceName()); - Assertions.assertEquals("rbdhrkhf", model.pipelines().get(0).pipelineReference().name()); - Assertions.assertEquals(RecurrenceFrequency.NOT_SPECIFIED, model.recurrence().frequency()); - Assertions.assertEquals(12509381, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-15T03:16:07Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T00:41:52Z"), model.recurrence().endTime()); - Assertions.assertEquals("jzq", model.recurrence().timeZone()); - Assertions.assertEquals(1741544202, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(1229230791, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.WEDNESDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(89265471, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(1945961956, 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 45af8d76a1a0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScheduleTriggerTypePropertiesTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by 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\":772728705,\"startTime\":\"2021-05-24T22:03:25Z\",\"endTime\":\"2020-12-30T08:39:54Z\",\"timeZone\":\"admihgbtnle\",\"schedule\":{\"minutes\":[2062956689,1290519894,198397061,1571649348],\"hours\":[1416322378,1266191776,2003495644],\"weekDays\":[\"Friday\",\"Wednesday\",\"Thursday\"],\"monthDays\":[1521800441],\"monthlyOccurrences\":[{\"day\":\"Tuesday\",\"occurrence\":71551699,\"\":{\"dlgignja\":\"datayjx\",\"r\":\"dataccixwtwzgbuhcrw\"}}],\"\":{\"mfufs\":\"dataznz\",\"uwxehozazb\":\"datavsjiojvetlcqaa\",\"imyccdog\":\"datacbdkqrywv\",\"kakdjnszj\":\"datahwhvgo\"}},\"\":{\"tuzhcpxtdvy\":\"datawb\",\"fe\":\"dataxv\",\"lvea\":\"datalyoiyovcrmo\",\"ezrajpedowmh\":\"datauz\"}}}") - .toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.NOT_SPECIFIED, model.recurrence().frequency()); - Assertions.assertEquals(772728705, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T22:03:25Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-30T08:39:54Z"), model.recurrence().endTime()); - Assertions.assertEquals("admihgbtnle", model.recurrence().timeZone()); - Assertions.assertEquals(2062956689, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(1416322378, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.FRIDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(1521800441, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(71551699, 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(772728705) - .withStartTime(OffsetDateTime.parse("2021-05-24T22:03:25Z")) - .withEndTime(OffsetDateTime.parse("2020-12-30T08:39:54Z")) - .withTimeZone("admihgbtnle") - .withSchedule(new RecurrenceSchedule() - .withMinutes(Arrays.asList(2062956689, 1290519894, 198397061, 1571649348)) - .withHours(Arrays.asList(1416322378, 1266191776, 2003495644)) - .withWeekDays(Arrays.asList(DaysOfWeek.FRIDAY, DaysOfWeek.WEDNESDAY, DaysOfWeek.THURSDAY)) - .withMonthDays(Arrays.asList(1521800441)) - .withMonthlyOccurrences(Arrays.asList(new RecurrenceScheduleOccurrence().withDay(DayOfWeek.TUESDAY) - .withOccurrence(71551699) - .withAdditionalProperties(mapOf()))) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ScheduleTriggerTypeProperties.class); - Assertions.assertEquals(RecurrenceFrequency.NOT_SPECIFIED, model.recurrence().frequency()); - Assertions.assertEquals(772728705, model.recurrence().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T22:03:25Z"), model.recurrence().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-30T08:39:54Z"), model.recurrence().endTime()); - Assertions.assertEquals("admihgbtnle", model.recurrence().timeZone()); - Assertions.assertEquals(2062956689, model.recurrence().schedule().minutes().get(0)); - Assertions.assertEquals(1416322378, model.recurrence().schedule().hours().get(0)); - Assertions.assertEquals(DaysOfWeek.FRIDAY, model.recurrence().schedule().weekDays().get(0)); - Assertions.assertEquals(1521800441, model.recurrence().schedule().monthDays().get(0)); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.recurrence().schedule().monthlyOccurrences().get(0).day()); - Assertions.assertEquals(71551699, 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 54290f516503..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActionTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ScriptAction; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptAction model = BinaryData.fromString( - "{\"name\":\"cqqtqzwntnly\",\"uri\":\"pbmdwiaxsucfo\",\"roles\":\"datagcufiphnroizzzk\",\"parameters\":\"bfsoa\"}") - .toObject(ScriptAction.class); - Assertions.assertEquals("cqqtqzwntnly", model.name()); - Assertions.assertEquals("pbmdwiaxsucfo", model.uri()); - Assertions.assertEquals("bfsoa", model.parameters()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptAction model = new ScriptAction().withName("cqqtqzwntnly") - .withUri("pbmdwiaxsucfo") - .withRoles("datagcufiphnroizzzk") - .withParameters("bfsoa"); - model = BinaryData.fromObject(model).toObject(ScriptAction.class); - Assertions.assertEquals("cqqtqzwntnly", model.name()); - Assertions.assertEquals("pbmdwiaxsucfo", model.uri()); - Assertions.assertEquals("bfsoa", 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 67a69ffd7731..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\":\"datapjz\",\"type\":\"Int64\",\"value\":\"datazjwugrjio\",\"direction\":\"Output\",\"size\":1553305797}") - .toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.INT64, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, model.direction()); - Assertions.assertEquals(1553305797, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityParameter model = new ScriptActivityParameter().withName("datapjz") - .withType(ScriptActivityParameterType.INT64) - .withValue("datazjwugrjio") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1553305797); - model = BinaryData.fromObject(model).toObject(ScriptActivityParameter.class); - Assertions.assertEquals(ScriptActivityParameterType.INT64, model.type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, model.direction()); - Assertions.assertEquals(1553305797, 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 8c01490114ba..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityScriptBlockTests.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.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\":\"dataplvrqkmpqs\",\"type\":\"datalvinxwtxtetwqk\",\"parameters\":[{\"name\":\"dataumzw\",\"type\":\"Decimal\",\"value\":\"datavkneozp\",\"direction\":\"Input\",\"size\":1382124393},{\"name\":\"dataugqwxslisgfxw\",\"type\":\"DateTime\",\"value\":\"dataajtzquhqrjwllg\",\"direction\":\"Input\",\"size\":451418164}]}") - .toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptActivityParameterType.DECIMAL, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1382124393, model.parameters().get(0).size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityScriptBlock model = new ScriptActivityScriptBlock().withText("dataplvrqkmpqs") - .withType("datalvinxwtxtetwqk") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("dataumzw") - .withType(ScriptActivityParameterType.DECIMAL) - .withValue("datavkneozp") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(1382124393), - new ScriptActivityParameter().withName("dataugqwxslisgfxw") - .withType(ScriptActivityParameterType.DATE_TIME) - .withValue("dataajtzquhqrjwllg") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(451418164))); - model = BinaryData.fromObject(model).toObject(ScriptActivityScriptBlock.class); - Assertions.assertEquals(ScriptActivityParameterType.DECIMAL, model.parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, model.parameters().get(0).direction()); - Assertions.assertEquals(1382124393, 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 5aebeec1ca40..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTests.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivity; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameter; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterDirection; -import com.azure.resourcemanager.datafactory.models.ScriptActivityParameterType; -import com.azure.resourcemanager.datafactory.models.ScriptActivityScriptBlock; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivity model = BinaryData.fromString( - "{\"type\":\"Script\",\"typeProperties\":{\"scriptBlockExecutionTimeout\":\"datafv\",\"scripts\":[{\"text\":\"datalxbpxzducfzdpgtb\",\"type\":\"datatibpg\",\"parameters\":[{\"name\":\"dataujfputci\",\"type\":\"String\",\"value\":\"datapksjwaglhwnnfgy\",\"direction\":\"Input\",\"size\":2133630125},{\"name\":\"datakmwvqtmfq\",\"type\":\"Int32\",\"value\":\"dataeljytshjjbocuu\",\"direction\":\"InputOutput\",\"size\":472367966},{\"name\":\"datahezhezyhwo\",\"type\":\"Boolean\",\"value\":\"datash\",\"direction\":\"InputOutput\",\"size\":950117586}]}],\"logSettings\":{\"logDestination\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"zeylthdrnzeidblr\",\"parameters\":{\"icwgdivq\":\"datafcck\",\"zomsqebmfopely\":\"databvgcebutskdgsuht\",\"bosnlaxeozgjtuh\":\"dataulia\",\"ptoentuve\":\"datagmshuyqehbpr\"}},\"path\":\"datatlfbzlzi\"}},\"returnMultistatementResult\":\"dataqlxwretsphetrq\"},\"linkedServiceName\":{\"referenceName\":\"xzrbgqtjj\",\"parameters\":{\"iwpaeumely\":\"dataryzzxk\",\"ukgmtrnwwwwlv\":\"datahphurzaz\"}},\"policy\":{\"timeout\":\"dataitghbaqumqlfnosi\",\"retry\":\"datarzygkdldyltqry\",\"retryIntervalInSeconds\":1775786872,\"secureInput\":true,\"secureOutput\":false,\"\":{\"yptzefeov\":\"datapisjlkjvoeui\",\"kvsnfnkfsfga\":\"datag\",\"bvgwylta\":\"datadumhpbcixday\"}},\"name\":\"n\",\"description\":\"elxmulyal\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"fdyawetkrmq\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Skipped\",\"Succeeded\"],\"\":{\"dceimlu\":\"dataxtnlor\",\"oxrj\":\"dataqxjxqqbkfdnski\",\"aufhxeeebcxeecgf\":\"datagmscic\"}},{\"activity\":\"ldjipayy\",\"dependencyConditions\":[\"Failed\"],\"\":{\"wltkukmdeqr\":\"datayyltn\",\"ijevf\":\"datauam\",\"xtkvpejtdlqorcyp\":\"datanvuokwjmtehpfn\"}},{\"activity\":\"kwfalgzsgk\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Completed\"],\"\":{\"vhhayqxlcrsho\":\"datahiqgihdu\"}}],\"userProperties\":[{\"name\":\"enobfviscauudx\",\"value\":\"datacvtzrgcmxbrf\"},{\"name\":\"iekwfx\",\"value\":\"datadotdgvsoypgqoqvc\"}],\"\":{\"uhbkapbgmjodfs\":\"dataypzcql\",\"gvsjuvjmnsgv\":\"datahlipxkxhj\",\"lvglwxepiwpi\":\"datayhomd\"}}") - .toObject(ScriptActivity.class); - Assertions.assertEquals("n", model.name()); - Assertions.assertEquals("elxmulyal", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("fdyawetkrmq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("enobfviscauudx", model.userProperties().get(0).name()); - Assertions.assertEquals("xzrbgqtjj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1775786872, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(ScriptActivityParameterType.STRING, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(2133630125, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("zeylthdrnzeidblr", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivity model - = new ScriptActivity().withName("n") - .withDescription("elxmulyal") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("fdyawetkrmq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ldjipayy") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("kwfalgzsgk") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("enobfviscauudx").withValue("datacvtzrgcmxbrf"), - new UserProperty().withName("iekwfx").withValue("datadotdgvsoypgqoqvc"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("xzrbgqtjj") - .withParameters(mapOf("iwpaeumely", "dataryzzxk", "ukgmtrnwwwwlv", "datahphurzaz"))) - .withPolicy(new ActivityPolicy().withTimeout("dataitghbaqumqlfnosi") - .withRetry("datarzygkdldyltqry") - .withRetryIntervalInSeconds(1775786872) - .withSecureInput(true) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withScriptBlockExecutionTimeout("datafv") - .withScripts(Arrays.asList(new ScriptActivityScriptBlock().withText("datalxbpxzducfzdpgtb") - .withType("datatibpg") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("dataujfputci") - .withType(ScriptActivityParameterType.STRING) - .withValue("datapksjwaglhwnnfgy") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(2133630125), - new ScriptActivityParameter().withName("datakmwvqtmfq") - .withType(ScriptActivityParameterType.INT32) - .withValue("dataeljytshjjbocuu") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(472367966), - new ScriptActivityParameter().withName("datahezhezyhwo") - .withType(ScriptActivityParameterType.BOOLEAN) - .withValue("datash") - .withDirection(ScriptActivityParameterDirection.INPUT_OUTPUT) - .withSize(950117586))))) - .withLogSettings(new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.EXTERNAL_STORE) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("zeylthdrnzeidblr") - .withParameters(mapOf("icwgdivq", "datafcck", "zomsqebmfopely", "databvgcebutskdgsuht", - "bosnlaxeozgjtuh", "dataulia", "ptoentuve", "datagmshuyqehbpr"))) - .withPath("datatlfbzlzi"))) - .withReturnMultistatementResult("dataqlxwretsphetrq"); - model = BinaryData.fromObject(model).toObject(ScriptActivity.class); - Assertions.assertEquals("n", model.name()); - Assertions.assertEquals("elxmulyal", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("fdyawetkrmq", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("enobfviscauudx", model.userProperties().get(0).name()); - Assertions.assertEquals("xzrbgqtjj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1775786872, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(true, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(ScriptActivityParameterType.STRING, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.INPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(2133630125, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logSettings().logDestination()); - Assertions.assertEquals("zeylthdrnzeidblr", - 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 1a849ec1bdc1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesLogSettingsTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.LogLocationSettings; -import com.azure.resourcemanager.datafactory.models.ScriptActivityLogDestination; -import com.azure.resourcemanager.datafactory.models.ScriptActivityTypePropertiesLogSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ScriptActivityTypePropertiesLogSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScriptActivityTypePropertiesLogSettings model = BinaryData.fromString( - "{\"logDestination\":\"ExternalStore\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"mfftvylfkecsdfq\",\"parameters\":{\"wuldyjmjv\":\"dataqdj\",\"hs\":\"datapldhbapfrriwrmdm\",\"mipkatjyxhvjjvsv\":\"databvnqa\",\"loamgnpf\":\"datamdlysfroyn\"}},\"path\":\"datav\"}}") - .toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logDestination()); - Assertions.assertEquals("mfftvylfkecsdfq", 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("mfftvylfkecsdfq") - .withParameters(mapOf("wuldyjmjv", "dataqdj", "hs", "datapldhbapfrriwrmdm", - "mipkatjyxhvjjvsv", "databvnqa", "loamgnpf", "datamdlysfroyn"))) - .withPath("datav")); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypePropertiesLogSettings.class); - Assertions.assertEquals(ScriptActivityLogDestination.EXTERNAL_STORE, model.logDestination()); - Assertions.assertEquals("mfftvylfkecsdfq", 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 1832e86ac580..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ScriptActivityTypePropertiesTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by 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\":\"datadxmplxzrof\",\"scripts\":[{\"text\":\"databrt\",\"type\":\"datayjqur\",\"parameters\":[{\"name\":\"datazkpumzdatbo\",\"type\":\"Double\",\"value\":\"dataavphuperrpzcvgi\",\"direction\":\"Output\",\"size\":1216838662},{\"name\":\"datagccqefewof\",\"type\":\"Single\",\"value\":\"dataqkb\",\"direction\":\"Input\",\"size\":987205767},{\"name\":\"datatzxvfsrufjf\",\"type\":\"DateTime\",\"value\":\"datafbzjvzgyzenveiy\",\"direction\":\"Output\",\"size\":737775312}]}],\"logSettings\":{\"logDestination\":\"ActivityOutput\",\"logLocationSettings\":{\"linkedServiceName\":{\"referenceName\":\"dumpmxofkbbch\",\"parameters\":{\"blkpteclfjaue\":\"datacskmrvgd\",\"cfgrtgnvlrm\":\"datazpp\"}},\"path\":\"dataz\"}},\"returnMultistatementResult\":\"dataxsybnwogvkc\"}") - .toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptActivityParameterType.DOUBLE, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(1216838662, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logSettings().logDestination()); - Assertions.assertEquals("dumpmxofkbbch", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptActivityTypeProperties model - = new ScriptActivityTypeProperties().withScriptBlockExecutionTimeout("datadxmplxzrof") - .withScripts(Arrays.asList(new ScriptActivityScriptBlock().withText("databrt") - .withType("datayjqur") - .withParameters(Arrays.asList( - new ScriptActivityParameter().withName("datazkpumzdatbo") - .withType(ScriptActivityParameterType.DOUBLE) - .withValue("dataavphuperrpzcvgi") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(1216838662), - new ScriptActivityParameter().withName("datagccqefewof") - .withType(ScriptActivityParameterType.SINGLE) - .withValue("dataqkb") - .withDirection(ScriptActivityParameterDirection.INPUT) - .withSize(987205767), - new ScriptActivityParameter().withName("datatzxvfsrufjf") - .withType(ScriptActivityParameterType.DATE_TIME) - .withValue("datafbzjvzgyzenveiy") - .withDirection(ScriptActivityParameterDirection.OUTPUT) - .withSize(737775312))))) - .withLogSettings(new ScriptActivityTypePropertiesLogSettings() - .withLogDestination(ScriptActivityLogDestination.ACTIVITY_OUTPUT) - .withLogLocationSettings(new LogLocationSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("dumpmxofkbbch") - .withParameters(mapOf("blkpteclfjaue", "datacskmrvgd", "cfgrtgnvlrm", "datazpp"))) - .withPath("dataz"))) - .withReturnMultistatementResult("dataxsybnwogvkc"); - model = BinaryData.fromObject(model).toObject(ScriptActivityTypeProperties.class); - Assertions.assertEquals(ScriptActivityParameterType.DOUBLE, model.scripts().get(0).parameters().get(0).type()); - Assertions.assertEquals(ScriptActivityParameterDirection.OUTPUT, - model.scripts().get(0).parameters().get(0).direction()); - Assertions.assertEquals(1216838662, model.scripts().get(0).parameters().get(0).size()); - Assertions.assertEquals(ScriptActivityLogDestination.ACTIVITY_OUTPUT, model.logSettings().logDestination()); - Assertions.assertEquals("dumpmxofkbbch", - model.logSettings().logLocationSettings().linkedServiceName().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java deleted file mode 100644 index e1268f0b1eae..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecretBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecretBase; - -public final class SecretBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecretBase model = BinaryData.fromString("{\"type\":\"SecretBase\"}").toObject(SecretBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecretBase model = new SecretBase(); - model = BinaryData.fromObject(model).toObject(SecretBase.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureInputOutputPolicyTests.java deleted file mode 100644 index 7dcae072388b..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\":true}") - .toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureInputOutputPolicy model = new SecureInputOutputPolicy().withSecureInput(false).withSecureOutput(true); - model = BinaryData.fromObject(model).toObject(SecureInputOutputPolicy.class); - Assertions.assertEquals(false, model.secureInput()); - Assertions.assertEquals(true, model.secureOutput()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java deleted file mode 100644 index d74b8aa7be84..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SecureStringTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SecureString; -import org.junit.jupiter.api.Assertions; - -public final class SecureStringTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecureString model = BinaryData.fromString("{\"type\":\"SecureString\",\"value\":\"qxvztpbnfnqtxjt\"}") - .toObject(SecureString.class); - Assertions.assertEquals("qxvztpbnfnqtxjt", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureString model = new SecureString().withValue("qxvztpbnfnqtxjt"); - model = BinaryData.fromObject(model).toObject(SecureString.class); - Assertions.assertEquals("qxvztpbnfnqtxjt", model.value()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java deleted file mode 100644 index 4b7aee49616d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfDependencyTumblingWindowTriggerReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SelfDependencyTumblingWindowTriggerReference; -import org.junit.jupiter.api.Assertions; - -public final class SelfDependencyTumblingWindowTriggerReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfDependencyTumblingWindowTriggerReference model = BinaryData.fromString( - "{\"type\":\"SelfDependencyTumblingWindowTriggerReference\",\"offset\":\"dxuzoxmajpxb\",\"size\":\"zvtiqtgrm\"}") - .toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("dxuzoxmajpxb", model.offset()); - Assertions.assertEquals("zvtiqtgrm", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfDependencyTumblingWindowTriggerReference model - = new SelfDependencyTumblingWindowTriggerReference().withOffset("dxuzoxmajpxb").withSize("zvtiqtgrm"); - model = BinaryData.fromObject(model).toObject(SelfDependencyTumblingWindowTriggerReference.class); - Assertions.assertEquals("dxuzoxmajpxb", model.offset()); - Assertions.assertEquals("zvtiqtgrm", model.size()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java deleted file mode 100644 index 3131e9319754..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeNodeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = BinaryData.fromString( - "{\"nodeName\":\"e\",\"machineName\":\"sgzvahapjyzhpv\",\"hostServiceUri\":\"zcjrvxdjzlmwlx\",\"status\":\"Online\",\"capabilities\":{\"nnprn\":\"hzovawjvzunlut\",\"eilpjzuaejxdu\":\"i\",\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\"},\"versionStatus\":\"sd\",\"version\":\"ouwaboekqvkeln\",\"registerTime\":\"2021-02-02T03:25:54Z\",\"lastConnectTime\":\"2020-12-28T23:28:21Z\",\"expiryTime\":\"2021-07-06T07:16:14Z\",\"lastStartTime\":\"2021-03-30T06:11:19Z\",\"lastStopTime\":\"2021-08-23T09:42:03Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-01-31T17:20:46Z\",\"lastEndUpdateTime\":\"2021-07-31T18:32:18Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1744629944,\"maxConcurrentJobs\":923639125,\"\":{\"iidzyexzne\":\"dataawjoyaqcslyjp\"}}") - .toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties(mapOf("nodeName", "e", "lastStartUpdateTime", "2021-01-31T17:20:46Z", - "lastConnectTime", "2020-12-28T23:28:21Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"nnprn\":\"hzovawjvzunlut\",\"eilpjzuaejxdu\":\"i\",\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "zcjrvxdjzlmwlx", "registerTime", "2021-02-02T03:25:54Z", "maxConcurrentJobs", - 923639125, "lastStopTime", "2021-08-23T09:42:03Z", "version", "ouwaboekqvkeln", "machineName", - "sgzvahapjyzhpv", "versionStatus", "sd", "concurrentJobsLimit", 1744629944, "lastEndUpdateTime", - "2021-07-31T18:32:18Z", "expiryTime", "2021-07-06T07:16:14Z", "lastStartTime", "2021-03-30T06:11:19Z", - "lastUpdateResult", "Fail", "isActiveDispatcher", true, "status", "Online")); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.java deleted file mode 100644 index 08c8c3cf2eb6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTests.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.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntimeStatus; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = BinaryData.fromString( - "{\"type\":\"SelfHosted\",\"typeProperties\":{\"createTime\":\"2021-02-26T23:11:52Z\",\"taskQueueId\":\"cfqzxjziqcso\",\"internalChannelEncryption\":\"NotEncrypted\",\"version\":\"k\",\"nodes\":[{\"nodeName\":\"efq\",\"machineName\":\"rmgm\",\"hostServiceUri\":\"ddaxaogs\",\"status\":\"Upgrading\",\"capabilities\":{\"bfjcvmk\":\"mbipysehyyb\"},\"versionStatus\":\"pgdiwd\",\"version\":\"hdtiemb\",\"registerTime\":\"2021-03-10T22:00:56Z\",\"lastConnectTime\":\"2021-02-26T14:13:20Z\",\"expiryTime\":\"2021-06-14T22:48:16Z\",\"lastStartTime\":\"2021-03-01T08:51:48Z\",\"lastStopTime\":\"2021-05-19T23:17:23Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-05-28T18:05:19Z\",\"lastEndUpdateTime\":\"2021-08-28T10:16:29Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1506230530,\"maxConcurrentJobs\":951625190,\"\":{\"e\":\"datawjfqktuzrlt\",\"njpbhjlugcupcyfr\":\"datasdkbqfzbvttqjntv\",\"xsuw\":\"dataooyvmvuxyeeaf\"}},{\"nodeName\":\"nxzhgbspdxbhjqux\",\"machineName\":\"xqomzdfaupqve\",\"hostServiceUri\":\"zwnkbjqpz\",\"status\":\"Limited\",\"capabilities\":{\"ochtuxapewzwqlb\":\"qux\",\"mc\":\"mynslcvynavwttt\",\"caqimodn\":\"rod\"},\"versionStatus\":\"mjxkhbucm\",\"version\":\"qtkfjacktav\",\"registerTime\":\"2021-08-11T08:10:38Z\",\"lastConnectTime\":\"2021-01-13T03:30:44Z\",\"expiryTime\":\"2021-11-10T12:02:11Z\",\"lastStartTime\":\"2021-05-26T19:02:01Z\",\"lastStopTime\":\"2021-03-06T00:39:15Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-06-24T00:00:51Z\",\"lastEndUpdateTime\":\"2021-12-02T11:56:22Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":718075939,\"maxConcurrentJobs\":1264951120,\"\":{\"fjqdfadgywylavet\":\"dataxiebnzoteik\"}},{\"nodeName\":\"vohy\",\"machineName\":\"dgjtpbtkogfg\",\"hostServiceUri\":\"lyzolrvwsgseqj\",\"status\":\"Initializing\",\"capabilities\":{\"rjybpvsoba\":\"irmgis\",\"ukegougxpyp\":\"tarirdzdgvqofl\",\"lmnxrxkuly\":\"mzqsx\"},\"versionStatus\":\"vviyqonbxxyf\",\"version\":\"b\",\"registerTime\":\"2021-02-09T08:11:56Z\",\"lastConnectTime\":\"2021-08-31T08:17:04Z\",\"expiryTime\":\"2021-08-26T00:02:37Z\",\"lastStartTime\":\"2021-04-19T13:24:32Z\",\"lastStopTime\":\"2021-01-12T06:41:07Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-03-25T10:57:13Z\",\"lastEndUpdateTime\":\"2021-05-18T01:36:42Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":763137103,\"maxConcurrentJobs\":1849742414,\"\":{\"vvyjehy\":\"dataaxtmvmycvjpaxjd\",\"v\":\"datanfjngoqmr\",\"xunwenbphyl\":\"databgtuhw\"}}],\"scheduledUpdateDate\":\"2021-08-09T19:35:20Z\",\"updateDelayOffset\":\"zr\",\"localTimeZoneOffset\":\"dusebkcfetxp\",\"capabilities\":{\"uiqr\":\"erma\",\"ftubqwxvs\":\"n\"},\"serviceUrls\":[\"iyzjlgrwjbsyc\",\"kbocsitsx\",\"vsg\",\"pwqieyxjkctyqst\"],\"autoUpdate\":\"On\",\"versionStatus\":\"qepeftmub\",\"links\":[{\"name\":\"epeqlhbtys\",\"subscriptionId\":\"zeq\",\"dataFactoryName\":\"tp\",\"dataFactoryLocation\":\"ofkwhgyzwfy\",\"createTime\":\"2021-05-10T10:09:31Z\"},{\"name\":\"ooelm\",\"subscriptionId\":\"d\",\"dataFactoryName\":\"qykgjjsmvsi\",\"dataFactoryLocation\":\"mlmwj\",\"createTime\":\"2021-10-24T00:35:28Z\"},{\"name\":\"wbmacvemmriyz\",\"subscriptionId\":\"quesxplcsinbulo\",\"dataFactoryName\":\"xhcynnmv\",\"dataFactoryLocation\":\"zvkwqqpw\",\"createTime\":\"2021-02-12T08:54:34Z\"},{\"name\":\"jqcqyzmrtfdlgpr\",\"subscriptionId\":\"jl\",\"dataFactoryName\":\"albcyuwahwzagvai\",\"dataFactoryLocation\":\"cephnhnuhg\",\"createTime\":\"2021-12-06T19:07:33Z\"}],\"pushedVersion\":\"hi\",\"latestVersion\":\"rwpekiprjb\",\"autoUpdateETA\":\"2021-03-14T04:58:42Z\",\"selfContainedInteractiveAuthoringEnabled\":false},\"dataFactoryName\":\"airpwj\",\"state\":\"Offline\",\"\":{\"qopugrse\":\"datasywpejt\",\"dmcbc\":\"datagiuztqefzypul\",\"gukqmkiynbfvkiwm\":\"datandidhuepikwcxoa\",\"y\":\"datanw\"}}") - .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", "efq", "lastStartUpdateTime", "2021-05-28T18:05:19Z", - "lastConnectTime", "2021-02-26T14:13:20Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"bfjcvmk\":\"mbipysehyyb\"}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", "ddaxaogs", "registerTime", "2021-03-10T22:00:56Z", "maxConcurrentJobs", - 951625190, "lastStopTime", "2021-05-19T23:17:23Z", "version", "hdtiemb", "machineName", "rmgm", - "versionStatus", "pgdiwd", "concurrentJobsLimit", 1506230530, "lastEndUpdateTime", - "2021-08-28T10:16:29Z", "expiryTime", "2021-06-14T22:48:16Z", "lastStartTime", - "2021-03-01T08:51:48Z", "lastUpdateResult", "None", "isActiveDispatcher", true, "status", - "Upgrading")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", - "nxzhgbspdxbhjqux", "lastStartUpdateTime", "2021-06-24T00:00:51Z", "lastConnectTime", - "2021-01-13T03:30:44Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"ochtuxapewzwqlb\":\"qux\",\"mc\":\"mynslcvynavwttt\",\"caqimodn\":\"rod\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "zwnkbjqpz", "registerTime", "2021-08-11T08:10:38Z", "maxConcurrentJobs", - 1264951120, "lastStopTime", "2021-03-06T00:39:15Z", "version", "qtkfjacktav", "machineName", - "xqomzdfaupqve", "versionStatus", "mjxkhbucm", "concurrentJobsLimit", 718075939, - "lastEndUpdateTime", "2021-12-02T11:56:22Z", "expiryTime", "2021-11-10T12:02:11Z", "lastStartTime", - "2021-05-26T19:02:01Z", "lastUpdateResult", "Fail", "isActiveDispatcher", false, "status", - "Limited")), - new SelfHostedIntegrationRuntimeNodeInner().withAdditionalProperties(mapOf("nodeName", "vohy", - "lastStartUpdateTime", "2021-03-25T10:57:13Z", "lastConnectTime", "2021-08-31T08:17:04Z", - "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize( - "{\"rjybpvsoba\":\"irmgis\",\"ukegougxpyp\":\"tarirdzdgvqofl\",\"lmnxrxkuly\":\"mzqsx\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "lyzolrvwsgseqj", "registerTime", "2021-02-09T08:11:56Z", "maxConcurrentJobs", - 1849742414, "lastStopTime", "2021-01-12T06:41:07Z", "version", "b", "machineName", "dgjtpbtkogfg", - "versionStatus", "vviyqonbxxyf", "concurrentJobsLimit", 763137103, "lastEndUpdateTime", - "2021-05-18T01:36:42Z", "expiryTime", "2021-08-26T00:02:37Z", "lastStartTime", - "2021-04-19T13:24:32Z", "lastUpdateResult", "Succeed", "isActiveDispatcher", true, "status", - "Initializing")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime())); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatus.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java deleted file mode 100644 index 0611f6118672..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.fluent.models.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-01-04T00:59:28Z\",\"taskQueueId\":\"irgyutexnzh\",\"internalChannelEncryption\":\"SslEncrypted\",\"version\":\"vjbryb\",\"nodes\":[{\"nodeName\":\"hkoqcudnwmoyhdpj\",\"machineName\":\"qnzcbjfpxoy\",\"hostServiceUri\":\"mjn\",\"status\":\"Limited\",\"capabilities\":{\"njq\":\"xyxf\",\"snlpaymketotk\":\"stnwvravntvklkwq\",\"wlkryzmpgqqdh\":\"dme\"},\"versionStatus\":\"tx\",\"version\":\"egykjmpadbzjo\",\"registerTime\":\"2021-02-15T10:57:09Z\",\"lastConnectTime\":\"2021-03-04T00:28:50Z\",\"expiryTime\":\"2021-08-29T22:11:09Z\",\"lastStartTime\":\"2021-05-24T07:23:03Z\",\"lastStopTime\":\"2021-04-23T23:40:15Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-08-30T22:11:23Z\",\"lastEndUpdateTime\":\"2021-11-22T06:03:09Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":602113668,\"maxConcurrentJobs\":1226454239,\"\":{\"isi\":\"dataqbactffxd\"}}],\"scheduledUpdateDate\":\"2021-11-19T11:40:04Z\",\"updateDelayOffset\":\"afapctgljopizqq\",\"localTimeZoneOffset\":\"vbkuf\",\"capabilities\":{\"npgomzmkjpaj\":\"ddj\"},\"serviceUrls\":[\"svrljlhejccc\",\"xbnwitaf\",\"jevptvitgh\"],\"autoUpdate\":\"On\",\"versionStatus\":\"kparskplqf\",\"links\":[{\"name\":\"qmbsudcy\",\"subscriptionId\":\"ul\",\"dataFactoryName\":\"lfw\",\"dataFactoryLocation\":\"suxyq\",\"createTime\":\"2021-02-12T23:31:30Z\"}],\"pushedVersion\":\"ubxlpkdsnbqoy\",\"latestVersion\":\"dlraduhg\",\"autoUpdateETA\":\"2021-09-14T21:07:48Z\",\"selfContainedInteractiveAuthoringEnabled\":true}") - .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", "hkoqcudnwmoyhdpj", "lastStartUpdateTime", "2021-08-30T22:11:23Z", "lastConnectTime", - "2021-03-04T00:28:50Z", "capabilities", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"njq\":\"xyxf\",\"snlpaymketotk\":\"stnwvravntvklkwq\",\"wlkryzmpgqqdh\":\"dme\"}", - Object.class, SerializerEncoding.JSON), - "hostServiceUri", "mjn", "registerTime", "2021-02-15T10:57:09Z", "maxConcurrentJobs", 1226454239, - "lastStopTime", "2021-04-23T23:40:15Z", "version", "egykjmpadbzjo", "machineName", "qnzcbjfpxoy", - "versionStatus", "tx", "concurrentJobsLimit", 602113668, "lastEndUpdateTime", "2021-11-22T06:03:09Z", - "expiryTime", "2021-08-29T22:11:09Z", "lastStartTime", "2021-05-24T07:23:03Z", "lastUpdateResult", - "Fail", "isActiveDispatcher", true, "status", "Limited")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime())); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java deleted file mode 100644 index 38cf0b14aa2d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ServiceNowObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowObjectDataset model = BinaryData.fromString( - "{\"type\":\"ServiceNowObject\",\"typeProperties\":{\"tableName\":\"datamfvybfmpotal\"},\"description\":\"figrxxtrco\",\"structure\":\"dataqe\",\"schema\":\"dataldmxxbjh\",\"linkedServiceName\":{\"referenceName\":\"pvamsxrwqlwdf\",\"parameters\":{\"bboffgxtae\":\"datarplzeqzv\",\"fcyatbxdwr\":\"dataxt\",\"fbpeigkflvovriq\":\"datayvtkmxvztshnu\"}},\"parameters\":{\"txur\":{\"type\":\"Float\",\"defaultValue\":\"datakqcgzygtdjhtbar\"}},\"annotations\":[\"datayyumhzpst\",\"datacqacvttyh\",\"databilnszyjbuw\"],\"folder\":{\"name\":\"sydsci\"},\"\":{\"l\":\"dataayioxpqgqs\",\"akqsjymcfv\":\"datalefeombodvdgf\",\"nbpkfnxrlncmlzvv\":\"datazceuyuqktck\",\"cjqzrevfwcba\":\"datamesfhqs\"}}") - .toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("figrxxtrco", model.description()); - Assertions.assertEquals("pvamsxrwqlwdf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("txur").type()); - Assertions.assertEquals("sydsci", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowObjectDataset model = new ServiceNowObjectDataset().withDescription("figrxxtrco") - .withStructure("dataqe") - .withSchema("dataldmxxbjh") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("pvamsxrwqlwdf") - .withParameters(mapOf("bboffgxtae", "datarplzeqzv", "fcyatbxdwr", "dataxt", "fbpeigkflvovriq", - "datayvtkmxvztshnu"))) - .withParameters(mapOf("txur", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datakqcgzygtdjhtbar"))) - .withAnnotations(Arrays.asList("datayyumhzpst", "datacqacvttyh", "databilnszyjbuw")) - .withFolder(new DatasetFolder().withName("sydsci")) - .withTableName("datamfvybfmpotal"); - model = BinaryData.fromObject(model).toObject(ServiceNowObjectDataset.class); - Assertions.assertEquals("figrxxtrco", model.description()); - Assertions.assertEquals("pvamsxrwqlwdf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("txur").type()); - Assertions.assertEquals("sydsci", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java deleted file mode 100644 index f9cfa6a91257..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ServiceNowSource; - -public final class ServiceNowSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowSource model = BinaryData.fromString( - "{\"type\":\"ServiceNowSource\",\"query\":\"datagw\",\"queryTimeout\":\"dataujshcsnk\",\"additionalColumns\":\"datagpqxqevt\",\"sourceRetryCount\":\"datavyy\",\"sourceRetryWait\":\"datakjirvjogsalvjl\",\"maxConcurrentConnections\":\"dataimua\",\"disableMetricsCollection\":\"datakympwquu\",\"\":{\"iqeftgunropdpuf\":\"dataofuzthszjyanhs\"}}") - .toObject(ServiceNowSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowSource model = new ServiceNowSource().withSourceRetryCount("datavyy") - .withSourceRetryWait("datakjirvjogsalvjl") - .withMaxConcurrentConnections("dataimua") - .withDisableMetricsCollection("datakympwquu") - .withQueryTimeout("dataujshcsnk") - .withAdditionalColumns("datagpqxqevt") - .withQuery("datagw"); - model = BinaryData.fromObject(model).toObject(ServiceNowSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2DatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2DatasetTypePropertiesTests.java deleted file mode 100644 index f0268c5f00b1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2DatasetTypePropertiesTests.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.ServiceNowV2DatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.ValueType; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowV2DatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowV2DatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"datakewqwamptld\",\"valueType\":\"display\"}") - .toObject(ServiceNowV2DatasetTypeProperties.class); - Assertions.assertEquals(ValueType.DISPLAY, model.valueType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowV2DatasetTypeProperties model - = new ServiceNowV2DatasetTypeProperties().withTableName("datakewqwamptld").withValueType(ValueType.DISPLAY); - model = BinaryData.fromObject(model).toObject(ServiceNowV2DatasetTypeProperties.class); - Assertions.assertEquals(ValueType.DISPLAY, model.valueType()); - } -} 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 0fd08c3345b5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2ObjectDatasetTests.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.ServiceNowV2ObjectDataset; -import com.azure.resourcemanager.datafactory.models.ValueType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowV2ObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowV2ObjectDataset model = BinaryData.fromString( - "{\"type\":\"ServiceNowV2Object\",\"typeProperties\":{\"tableName\":\"datavsveamseauuuvhx\",\"valueType\":\"actual\"},\"description\":\"lmufzuuysz\",\"structure\":\"dataeemtyosdpxtsdywf\",\"schema\":\"datafvwgwphwxiav\",\"linkedServiceName\":{\"referenceName\":\"mixaqgfpuhhzwr\",\"parameters\":{\"kjsvkbtmlixalph\":\"datam\",\"e\":\"datagmin\"}},\"parameters\":{\"uyrlk\":{\"type\":\"Int\",\"defaultValue\":\"datadjmsngm\"}},\"annotations\":[\"datammrmrjpjthi\",\"datasabcylzz\",\"dataetumzenkrd\"],\"folder\":{\"name\":\"sxexawxoibdctj\"},\"\":{\"clczfrofyyraiai\":\"databqqqeetsq\"}}") - .toObject(ServiceNowV2ObjectDataset.class); - Assertions.assertEquals("lmufzuuysz", model.description()); - Assertions.assertEquals("mixaqgfpuhhzwr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("uyrlk").type()); - Assertions.assertEquals("sxexawxoibdctj", model.folder().name()); - Assertions.assertEquals(ValueType.ACTUAL, model.valueType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowV2ObjectDataset model = new ServiceNowV2ObjectDataset().withDescription("lmufzuuysz") - .withStructure("dataeemtyosdpxtsdywf") - .withSchema("datafvwgwphwxiav") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mixaqgfpuhhzwr") - .withParameters(mapOf("kjsvkbtmlixalph", "datam", "e", "datagmin"))) - .withParameters(mapOf("uyrlk", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datadjmsngm"))) - .withAnnotations(Arrays.asList("datammrmrjpjthi", "datasabcylzz", "dataetumzenkrd")) - .withFolder(new DatasetFolder().withName("sxexawxoibdctj")) - .withTableName("datavsveamseauuuvhx") - .withValueType(ValueType.ACTUAL); - model = BinaryData.fromObject(model).toObject(ServiceNowV2ObjectDataset.class); - Assertions.assertEquals("lmufzuuysz", model.description()); - Assertions.assertEquals("mixaqgfpuhhzwr", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("uyrlk").type()); - Assertions.assertEquals("sxexawxoibdctj", model.folder().name()); - Assertions.assertEquals(ValueType.ACTUAL, model.valueType()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[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 e27a469062d4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ServiceNowV2SourceTests.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 com.azure.resourcemanager.datafactory.models.ServiceNowV2Source; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServiceNowV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceNowV2Source model = BinaryData.fromString( - "{\"type\":\"ServiceNowV2Source\",\"expression\":{\"type\":\"Constant\",\"value\":\"wactjp\",\"operators\":[\"eul\",\"zxgha\",\"lrvpaumkz\",\"tjngkfipxolp\"],\"operands\":[{\"type\":\"Binary\",\"value\":\"jnalsbxvoux\",\"operators\":[\"nthgpw\"],\"operands\":[{\"type\":\"Binary\",\"value\":\"kocexhlv\",\"operators\":[\"r\",\"hlarohwqxjhzws\",\"qrmxpyznba\"],\"operands\":[{},{},{},{}]},{\"type\":\"Binary\",\"value\":\"say\",\"operators\":[\"odct\",\"c\",\"zqusfugwsrrrgi\"],\"operands\":[{},{}]},{\"type\":\"Constant\",\"value\":\"kyswyaejffvf\",\"operators\":[\"gqsjecccfycywcuh\",\"fx\",\"erfzaurermnyphco\"],\"operands\":[{}]},{\"type\":\"Field\",\"value\":\"bzrnvu\",\"operators\":[\"jyttgkpscm\",\"cczz\",\"la\"],\"operands\":[{},{},{},{}]}]},{\"type\":\"NAry\",\"value\":\"bhirftlomeczdngb\",\"operators\":[\"oefnbefavbsbhd\",\"iaqafalbk\",\"mod\",\"vdhvdv\"],\"operands\":[{\"type\":\"Unary\",\"value\":\"x\",\"operators\":[\"hrziwndnp\",\"jmgkeoqrxhdsu\",\"onjuwgvse\",\"kbvaxehiegk\"],\"operands\":[{},{}]},{\"type\":\"Field\",\"value\":\"cvlbq\",\"operators\":[\"i\",\"likiogdtdekmwzs\",\"yakphjs\",\"kh\"],\"operands\":[{},{},{},{}]},{\"type\":\"NAry\",\"value\":\"dbsiiz\",\"operators\":[\"bnqyswpnoghk\",\"zwfnsduwttr\",\"gzj\",\"ptprfqttzg\"],\"operands\":[{},{},{}]}]}]},\"pageSize\":\"datazvtfkdzqtkxiyjq\",\"queryTimeout\":\"dataz\",\"additionalColumns\":\"dataebdhpizk\",\"sourceRetryCount\":\"datakyl\",\"sourceRetryWait\":\"dataydiodcgwbkfcajt\",\"maxConcurrentConnections\":\"dataduqthqgng\",\"disableMetricsCollection\":\"datazaexewftqoi\",\"\":{\"ahmeskdsbpb\":\"datafa\",\"jryppvdhklcczg\":\"datadajcbrlnxjucoj\",\"wb\":\"datalogzstc\"}}") - .toObject(ServiceNowV2Source.class); - Assertions.assertEquals(ExpressionV2Type.CONSTANT, model.expression().type()); - Assertions.assertEquals("wactjp", model.expression().value()); - Assertions.assertEquals("eul", model.expression().operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.expression().operands().get(0).type()); - Assertions.assertEquals("jnalsbxvoux", model.expression().operands().get(0).value()); - Assertions.assertEquals("nthgpw", model.expression().operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.expression().operands().get(0).operands().get(0).type()); - Assertions.assertEquals("kocexhlv", model.expression().operands().get(0).operands().get(0).value()); - Assertions.assertEquals("r", model.expression().operands().get(0).operands().get(0).operators().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceNowV2Source model - = new ServiceNowV2Source().withSourceRetryCount("datakyl") - .withSourceRetryWait("dataydiodcgwbkfcajt") - .withMaxConcurrentConnections("dataduqthqgng") - .withDisableMetricsCollection("datazaexewftqoi") - .withQueryTimeout("dataz") - .withAdditionalColumns("dataebdhpizk") - .withExpression( - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("wactjp") - .withOperators(Arrays.asList("eul", "zxgha", "lrvpaumkz", "tjngkfipxolp")) - .withOperands( - Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("jnalsbxvoux") - .withOperators(Arrays.asList("nthgpw")) - .withOperands(Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("kocexhlv") - .withOperators(Arrays.asList("r", "hlarohwqxjhzws", "qrmxpyznba")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2(), new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.BINARY) - .withValue("say") - .withOperators(Arrays.asList("odct", "c", "zqusfugwsrrrgi")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.CONSTANT) - .withValue("kyswyaejffvf") - .withOperators(Arrays.asList("gqsjecccfycywcuh", "fx", "erfzaurermnyphco")) - .withOperands(Arrays.asList(new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("bzrnvu") - .withOperators(Arrays.asList("jyttgkpscm", "cczz", "la")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2(), new ExpressionV2())))), - new ExpressionV2().withType(ExpressionV2Type.NARY) - .withValue("bhirftlomeczdngb") - .withOperators(Arrays.asList("oefnbefavbsbhd", "iaqafalbk", "mod", "vdhvdv")) - .withOperands( - Arrays.asList( - new ExpressionV2().withType(ExpressionV2Type.UNARY) - .withValue("x") - .withOperators(Arrays.asList("hrziwndnp", "jmgkeoqrxhdsu", "onjuwgvse", - "kbvaxehiegk")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.FIELD) - .withValue("cvlbq") - .withOperators(Arrays.asList("i", "likiogdtdekmwzs", "yakphjs", "kh")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2(), new ExpressionV2())), - new ExpressionV2().withType(ExpressionV2Type.NARY) - .withValue("dbsiiz") - .withOperators( - Arrays.asList("bnqyswpnoghk", "zwfnsduwttr", "gzj", "ptprfqttzg")) - .withOperands(Arrays.asList(new ExpressionV2(), new ExpressionV2(), - new ExpressionV2()))))))) - .withPageSize("datazvtfkdzqtkxiyjq"); - model = BinaryData.fromObject(model).toObject(ServiceNowV2Source.class); - Assertions.assertEquals(ExpressionV2Type.CONSTANT, model.expression().type()); - Assertions.assertEquals("wactjp", model.expression().value()); - Assertions.assertEquals("eul", model.expression().operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.expression().operands().get(0).type()); - Assertions.assertEquals("jnalsbxvoux", model.expression().operands().get(0).value()); - Assertions.assertEquals("nthgpw", model.expression().operands().get(0).operators().get(0)); - Assertions.assertEquals(ExpressionV2Type.BINARY, model.expression().operands().get(0).operands().get(0).type()); - Assertions.assertEquals("kocexhlv", model.expression().operands().get(0).operands().get(0).value()); - Assertions.assertEquals("r", model.expression().operands().get(0).operands().get(0).operators().get(0)); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java deleted file mode 100644 index 4f553f7c8a84..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SetVariableActivityTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.SecureInputOutputPolicy; -import com.azure.resourcemanager.datafactory.models.SetVariableActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SetVariableActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SetVariableActivity model = BinaryData.fromString( - "{\"type\":\"SetVariable\",\"typeProperties\":{\"variableName\":\"lxlxlezzym\",\"value\":\"datazoiud\",\"setSystemVariable\":false},\"policy\":{\"secureInput\":false,\"secureOutput\":false},\"name\":\"xajiaycgxwacuudn\",\"description\":\"tsjafvzds\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"m\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"bsgzewyfh\":\"datavbnmzjwh\",\"lzqmwmwoggbxias\":\"dataz\",\"cnpfl\":\"dataiz\",\"pixuj\":\"dataedwhvhlzp\"}},{\"activity\":\"y\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Failed\",\"Failed\"],\"\":{\"bbnvctbtm\":\"datad\",\"lrvklyp\":\"dataanmpt\",\"soxykrmalen\":\"datauqyaisdiwokgv\"}},{\"activity\":\"bvahj\",\"dependencyConditions\":[\"Succeeded\",\"Completed\"],\"\":{\"jopsgedsyykueif\":\"dataebg\"}}],\"userProperties\":[{\"name\":\"ntlf\",\"value\":\"dataiq\"},{\"name\":\"vazffzhbh\",\"value\":\"datalgwlrdgp\"},{\"name\":\"dbimehdxcy\",\"value\":\"datayfhwkbhapfnyo\"}],\"\":{\"zunbcvfzc\":\"dataebehjrmfejeihnhw\",\"gudobutkq\":\"datayirngfujvxafrqq\"}}") - .toObject(SetVariableActivity.class); - Assertions.assertEquals("xajiaycgxwacuudn", model.name()); - Assertions.assertEquals("tsjafvzds", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("m", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ntlf", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("lxlxlezzym", model.variableName()); - Assertions.assertEquals(false, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivity model = new SetVariableActivity().withName("xajiaycgxwacuudn") - .withDescription("tsjafvzds") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("m") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("y") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED, - DependencyCondition.FAILED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bvahj") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ntlf").withValue("dataiq"), - new UserProperty().withName("vazffzhbh").withValue("datalgwlrdgp"), - new UserProperty().withName("dbimehdxcy").withValue("datayfhwkbhapfnyo"))) - .withPolicy(new SecureInputOutputPolicy().withSecureInput(false).withSecureOutput(false)) - .withVariableName("lxlxlezzym") - .withValue("datazoiud") - .withSetSystemVariable(false); - model = BinaryData.fromObject(model).toObject(SetVariableActivity.class); - Assertions.assertEquals("xajiaycgxwacuudn", model.name()); - Assertions.assertEquals("tsjafvzds", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, model.onInactiveMarkAs()); - Assertions.assertEquals("m", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ntlf", model.userProperties().get(0).name()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals("lxlxlezzym", 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 dc847d264454..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\":\"sxxc\",\"value\":\"datagraikiuxvd\",\"setSystemVariable\":false}") - .toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("sxxc", model.variableName()); - Assertions.assertEquals(false, model.setSystemVariable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SetVariableActivityTypeProperties model = new SetVariableActivityTypeProperties().withVariableName("sxxc") - .withValue("datagraikiuxvd") - .withSetSystemVariable(false); - model = BinaryData.fromObject(model).toObject(SetVariableActivityTypeProperties.class); - Assertions.assertEquals("sxxc", 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 f805dc109d1c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpLocationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SftpLocation; - -public final class SftpLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpLocation model = BinaryData.fromString( - "{\"type\":\"SftpLocation\",\"folderPath\":\"dataclbtxl\",\"fileName\":\"datavsolzwil\",\"\":{\"jx\":\"dataojfsqebuu\",\"kktpmbmxbmbr\":\"datafxfjwp\"}}") - .toObject(SftpLocation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpLocation model = new SftpLocation().withFolderPath("dataclbtxl").withFileName("datavsolzwil"); - model = BinaryData.fromObject(model).toObject(SftpLocation.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java deleted file mode 100644 index f659719bc4d5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpReadSettingsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SftpReadSettings; - -public final class SftpReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpReadSettings model = BinaryData.fromString( - "{\"type\":\"SftpReadSettings\",\"recursive\":\"datambzfx\",\"wildcardFolderPath\":\"datahaqfueqfniagzm\",\"wildcardFileName\":\"datasoxqarjtu\",\"enablePartitionDiscovery\":\"datallmtiyguuhylz\",\"partitionRootPath\":\"dataim\",\"fileListPath\":\"dataohjxfqyyu\",\"deleteFilesAfterCompletion\":\"datailxzn\",\"modifiedDatetimeStart\":\"databttk\",\"modifiedDatetimeEnd\":\"datacxjxueilixzjvkqj\",\"disableChunking\":\"datablhcmxx\",\"maxConcurrentConnections\":\"datankxcljnkmsfsqux\",\"disableMetricsCollection\":\"datacimnchvk\",\"\":{\"dgt\":\"dataivagcsmrtepsy\",\"jdcokbpbpqelmszo\":\"dataozys\",\"rd\":\"datatneltnbyvb\",\"bia\":\"dataumududwecds\"}}") - .toObject(SftpReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpReadSettings model = new SftpReadSettings().withMaxConcurrentConnections("datankxcljnkmsfsqux") - .withDisableMetricsCollection("datacimnchvk") - .withRecursive("datambzfx") - .withWildcardFolderPath("datahaqfueqfniagzm") - .withWildcardFileName("datasoxqarjtu") - .withEnablePartitionDiscovery("datallmtiyguuhylz") - .withPartitionRootPath("dataim") - .withFileListPath("dataohjxfqyyu") - .withDeleteFilesAfterCompletion("datailxzn") - .withModifiedDatetimeStart("databttk") - .withModifiedDatetimeEnd("datacxjxueilixzjvkqj") - .withDisableChunking("datablhcmxx"); - 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 34e175641cd4..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SftpWriteSettingsTests.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.MetadataItem; -import com.azure.resourcemanager.datafactory.models.SftpWriteSettings; -import java.util.Arrays; - -public final class SftpWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SftpWriteSettings model = BinaryData.fromString( - "{\"type\":\"SftpWriteSettings\",\"operationTimeout\":\"datafshfmgiixurve\",\"useTempFileRename\":\"datahsmulvmy\",\"maxConcurrentConnections\":\"dataefkpuu\",\"disableMetricsCollection\":\"dataiuwhcyckekm\",\"copyBehavior\":\"dataipygtmoycpotmaos\",\"metadata\":[{\"name\":\"databhvh\",\"value\":\"datavubwwqgiyu\"},{\"name\":\"datarvwjxmwal\",\"value\":\"datajtnsnbpiuvqho\"},{\"name\":\"datamortr\",\"value\":\"datapbsungnjkkmkz\"}],\"\":{\"bgzjyrdiiwhmrhz\":\"datauc\",\"ytjpua\":\"dataqvpjydwmaq\"}}") - .toObject(SftpWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SftpWriteSettings model = new SftpWriteSettings().withMaxConcurrentConnections("dataefkpuu") - .withDisableMetricsCollection("dataiuwhcyckekm") - .withCopyBehavior("dataipygtmoycpotmaos") - .withMetadata(Arrays.asList(new MetadataItem().withName("databhvh").withValue("datavubwwqgiyu"), - new MetadataItem().withName("datarvwjxmwal").withValue("datajtnsnbpiuvqho"), - new MetadataItem().withName("datamortr").withValue("datapbsungnjkkmkz"))) - .withOperationTimeout("datafshfmgiixurve") - .withUseTempFileRename("datahsmulvmy"); - model = BinaryData.fromObject(model).toObject(SftpWriteSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java deleted file mode 100644 index a733376b908c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListDatasetTypeProperties; - -public final class SharePointOnlineListDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model - = BinaryData.fromString("{\"listName\":\"datavihylrxsiyzsyium\"}") - .toObject(SharePointOnlineListDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListDatasetTypeProperties model - = new SharePointOnlineListDatasetTypeProperties().withListName("datavihylrxsiyzsyium"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java deleted file mode 100644 index 22dfbf38ef20..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListResourceDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SharePointOnlineListResourceDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SharePointOnlineListResourceDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListResourceDataset model = BinaryData.fromString( - "{\"type\":\"SharePointOnlineListResource\",\"typeProperties\":{\"listName\":\"dataxtsa\"},\"description\":\"tcoojybolqox\",\"structure\":\"datatsl\",\"schema\":\"datavmlkwkzlinv\",\"linkedServiceName\":{\"referenceName\":\"mtykxszdekfxcsqm\",\"parameters\":{\"plrgcnbvmhvq\":\"datazktkdpczeo\"}},\"parameters\":{\"orfji\":{\"type\":\"String\",\"defaultValue\":\"dataxku\"},\"gavfyihu\":{\"type\":\"Float\",\"defaultValue\":\"datadawe\"},\"zgkooagrlwpame\":{\"type\":\"String\",\"defaultValue\":\"datapwnyfjcypazwiimd\"},\"atfamrna\":{\"type\":\"Float\",\"defaultValue\":\"datawqadewhuwxkyx\"}},\"annotations\":[\"datalxccprkiyf\",\"datazwhomydxgtuqbv\"],\"folder\":{\"name\":\"zihirqvvketyd\"},\"\":{\"aqgbb\":\"dataoktssgvqxerxrmhr\"}}") - .toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("tcoojybolqox", model.description()); - Assertions.assertEquals("mtykxszdekfxcsqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("orfji").type()); - Assertions.assertEquals("zihirqvvketyd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListResourceDataset model = new SharePointOnlineListResourceDataset() - .withDescription("tcoojybolqox") - .withStructure("datatsl") - .withSchema("datavmlkwkzlinv") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mtykxszdekfxcsqm") - .withParameters(mapOf("plrgcnbvmhvq", "datazktkdpczeo"))) - .withParameters( - mapOf("orfji", new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataxku"), - "gavfyihu", new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datadawe"), - "zgkooagrlwpame", - new ParameterSpecification().withType(ParameterType.STRING) - .withDefaultValue("datapwnyfjcypazwiimd"), - "atfamrna", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datawqadewhuwxkyx"))) - .withAnnotations(Arrays.asList("datalxccprkiyf", "datazwhomydxgtuqbv")) - .withFolder(new DatasetFolder().withName("zihirqvvketyd")) - .withListName("dataxtsa"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListResourceDataset.class); - Assertions.assertEquals("tcoojybolqox", model.description()); - Assertions.assertEquals("mtykxszdekfxcsqm", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("orfji").type()); - Assertions.assertEquals("zihirqvvketyd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java deleted file mode 100644 index 38ba27686023..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SharePointOnlineListSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SharePointOnlineListSource; - -public final class SharePointOnlineListSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharePointOnlineListSource model = BinaryData.fromString( - "{\"type\":\"SharePointOnlineListSource\",\"query\":\"datasnrknikpgjuk\",\"httpRequestTimeout\":\"dataxy\",\"sourceRetryCount\":\"dataycl\",\"sourceRetryWait\":\"dataepashmfbzkfehrs\",\"maxConcurrentConnections\":\"dataofnsu\",\"disableMetricsCollection\":\"datauroddohngb\",\"\":{\"orsandslrndi\":\"datahs\",\"bhxujgyzfsswezn\":\"datasoiekdmnva\"}}") - .toObject(SharePointOnlineListSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharePointOnlineListSource model = new SharePointOnlineListSource().withSourceRetryCount("dataycl") - .withSourceRetryWait("dataepashmfbzkfehrs") - .withMaxConcurrentConnections("dataofnsu") - .withDisableMetricsCollection("datauroddohngb") - .withQuery("datasnrknikpgjuk") - .withHttpRequestTimeout("dataxy"); - model = BinaryData.fromObject(model).toObject(SharePointOnlineListSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java deleted file mode 100644 index f8c488d9aed9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifyObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ShopifyObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ShopifyObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShopifyObjectDataset model = BinaryData.fromString( - "{\"type\":\"ShopifyObject\",\"typeProperties\":{\"tableName\":\"datandmtqvmkmzvag\"},\"description\":\"fblsxyfqgtodg\",\"structure\":\"datalefmizdcsr\",\"schema\":\"databnasgfyxhsxcg\",\"linkedServiceName\":{\"referenceName\":\"bmxbpqcnx\",\"parameters\":{\"uufhpdncokqrg\":\"datahojvmazuflfp\",\"fnmmib\":\"datavbhmnimjlyhb\",\"umqeobrwreu\":\"datawcduyrgcay\"}},\"parameters\":{\"aagwkrxjkcge\":{\"type\":\"Array\",\"defaultValue\":\"datahamigsqzmfk\"},\"t\":{\"type\":\"Float\",\"defaultValue\":\"databrfkjfkxn\"}},\"annotations\":[\"dataoeqcrjvcjskqsfn\",\"dataiwap\",\"dataunhdikatzmtuv\",\"datanh\"],\"folder\":{\"name\":\"kbibxlwzlvkcm\"},\"\":{\"aoboiahk\":\"dataaunlodincf\",\"ksaxyeedvpmodkt\":\"datapsvax\",\"mor\":\"datautydvvg\",\"yvuz\":\"datapcjes\"}}") - .toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("fblsxyfqgtodg", model.description()); - Assertions.assertEquals("bmxbpqcnx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("aagwkrxjkcge").type()); - Assertions.assertEquals("kbibxlwzlvkcm", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifyObjectDataset model = new ShopifyObjectDataset().withDescription("fblsxyfqgtodg") - .withStructure("datalefmizdcsr") - .withSchema("databnasgfyxhsxcg") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bmxbpqcnx") - .withParameters(mapOf("uufhpdncokqrg", "datahojvmazuflfp", "fnmmib", "datavbhmnimjlyhb", "umqeobrwreu", - "datawcduyrgcay"))) - .withParameters(mapOf("aagwkrxjkcge", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datahamigsqzmfk"), "t", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("databrfkjfkxn"))) - .withAnnotations(Arrays.asList("dataoeqcrjvcjskqsfn", "dataiwap", "dataunhdikatzmtuv", "datanh")) - .withFolder(new DatasetFolder().withName("kbibxlwzlvkcm")) - .withTableName("datandmtqvmkmzvag"); - model = BinaryData.fromObject(model).toObject(ShopifyObjectDataset.class); - Assertions.assertEquals("fblsxyfqgtodg", model.description()); - Assertions.assertEquals("bmxbpqcnx", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("aagwkrxjkcge").type()); - Assertions.assertEquals("kbibxlwzlvkcm", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java deleted file mode 100644 index ca0525b10fc8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ShopifySourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ShopifySource; - -public final class ShopifySourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShopifySource model = BinaryData.fromString( - "{\"type\":\"ShopifySource\",\"query\":\"datadtq\",\"queryTimeout\":\"datajbxol\",\"additionalColumns\":\"datahquqihgibog\",\"sourceRetryCount\":\"datajupenoupcolxc\",\"sourceRetryWait\":\"dataszwadesisd\",\"maxConcurrentConnections\":\"datauhqts\",\"disableMetricsCollection\":\"datab\",\"\":{\"bymrgelgoduexx\":\"dataeeucvv\",\"fr\":\"datad\",\"wqzvqtnozwphka\":\"dataenvkqtvtq\",\"bzbbjxkami\":\"dataracvcbrtltpo\"}}") - .toObject(ShopifySource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShopifySource model = new ShopifySource().withSourceRetryCount("datajupenoupcolxc") - .withSourceRetryWait("dataszwadesisd") - .withMaxConcurrentConnections("datauhqts") - .withDisableMetricsCollection("datab") - .withQueryTimeout("datajbxol") - .withAdditionalColumns("datahquqihgibog") - .withQuery("datadtq"); - 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 f15ceeee71d9..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\":\"datautdrrqqajhklttl\",\"dataInconsistency\":\"datawdrt\"}") - .toObject(SkipErrorFile.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkipErrorFile model - = new SkipErrorFile().withFileMissing("datautdrrqqajhklttl").withDataInconsistency("datawdrt"); - model = BinaryData.fromObject(model).toObject(SkipErrorFile.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java deleted file mode 100644 index 376c237b024d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SnowflakeDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnowflakeDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeDataset model = BinaryData.fromString( - "{\"type\":\"SnowflakeTable\",\"typeProperties\":{\"schema\":\"dataybfby\",\"table\":\"datalqllbofsn\"},\"description\":\"cybrhxgiknrl\",\"structure\":\"dataseiqbroqjfeamzku\",\"schema\":\"datagpksgotbunvnjqld\",\"linkedServiceName\":{\"referenceName\":\"qqvcugusqlxlxedt\",\"parameters\":{\"lnlmpuyypaggpaih\":\"datalnvqacbyfis\",\"ymipvlxty\":\"dataaeyzwloqrmgd\",\"pllitx\":\"dataukhjd\",\"qoivxcodw\":\"datargkwiyoy\"}},\"parameters\":{\"fwfiikqcdnzsfi\":{\"type\":\"Array\",\"defaultValue\":\"datacachhsizfuew\"},\"ah\":{\"type\":\"Int\",\"defaultValue\":\"dataneoodmcrxlyz\"},\"brnlsyiaan\":{\"type\":\"SecureString\",\"defaultValue\":\"datafakrxjjwnbrmdw\"}},\"annotations\":[\"datacjhatclpphc\",\"datatmrycpana\",\"datafa\",\"dataizrinlpxngzzxqb\"],\"folder\":{\"name\":\"zmzctbxzjk\"},\"\":{\"dozw\":\"datapucv\",\"e\":\"datask\",\"qmbinpxmiwt\":\"datafz\"}}") - .toObject(SnowflakeDataset.class); - Assertions.assertEquals("cybrhxgiknrl", model.description()); - Assertions.assertEquals("qqvcugusqlxlxedt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("fwfiikqcdnzsfi").type()); - Assertions.assertEquals("zmzctbxzjk", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDataset model = new SnowflakeDataset().withDescription("cybrhxgiknrl") - .withStructure("dataseiqbroqjfeamzku") - .withSchema("datagpksgotbunvnjqld") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qqvcugusqlxlxedt") - .withParameters(mapOf("lnlmpuyypaggpaih", "datalnvqacbyfis", "ymipvlxty", "dataaeyzwloqrmgd", "pllitx", - "dataukhjd", "qoivxcodw", "datargkwiyoy"))) - .withParameters(mapOf("fwfiikqcdnzsfi", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datacachhsizfuew"), "ah", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataneoodmcrxlyz"), - "brnlsyiaan", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datafakrxjjwnbrmdw"))) - .withAnnotations(Arrays.asList("datacjhatclpphc", "datatmrycpana", "datafa", "dataizrinlpxngzzxqb")) - .withFolder(new DatasetFolder().withName("zmzctbxzjk")) - .withSchemaTypePropertiesSchema("dataybfby") - .withTable("datalqllbofsn"); - model = BinaryData.fromObject(model).toObject(SnowflakeDataset.class); - Assertions.assertEquals("cybrhxgiknrl", model.description()); - Assertions.assertEquals("qqvcugusqlxlxedt", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("fwfiikqcdnzsfi").type()); - Assertions.assertEquals("zmzctbxzjk", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java deleted file mode 100644 index b035de9a2ebc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SnowflakeDatasetTypeProperties; - -public final class SnowflakeDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"dataifpvrdukcdnzo\",\"table\":\"dataabux\"}") - .toObject(SnowflakeDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeDatasetTypeProperties model - = new SnowflakeDatasetTypeProperties().withSchema("dataifpvrdukcdnzo").withTable("dataabux"); - model = BinaryData.fromObject(model).toObject(SnowflakeDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.java deleted file mode 100644 index 55894b7952a3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeExportCopyCommandTests.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.SnowflakeExportCopyCommand; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeExportCopyCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeExportCopyCommand model = BinaryData.fromString( - "{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"ajb\":\"datathnndfplksdieh\",\"sn\":\"datatgmxkol\"},\"additionalFormatOptions\":{\"yow\":\"datamkpxbckjrfkwclq\",\"cvrdjpvsc\":\"datadhtwaxobdzatq\",\"hocyvymvnla\":\"datawpsteuvjd\",\"bfomo\":\"datahitxo\"},\"storageIntegration\":\"dataynorhhbvbqxtk\",\"\":{\"pomoofbnbhptral\":\"datau\",\"ydmkyvsxcdivghaj\":\"datacqpupmath\",\"nmfmkpj\":\"dataddgfo\",\"zbmwptdr\":\"dataesozcuhunm\"}}") - .toObject(SnowflakeExportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeExportCopyCommand model = new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("ajb", "datathnndfplksdieh", "sn", "datatgmxkol")) - .withAdditionalFormatOptions(mapOf("yow", "datamkpxbckjrfkwclq", "cvrdjpvsc", "datadhtwaxobdzatq", - "hocyvymvnla", "datawpsteuvjd", "bfomo", "datahitxo")) - .withStorageIntegration("dataynorhhbvbqxtk"); - 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 c71d9cfe52cc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeImportCopyCommandTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeImportCopyCommand; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeImportCopyCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeImportCopyCommand model = BinaryData.fromString( - "{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"q\":\"datagpznbklhwutyuvu\",\"plnukdawgzhbwh\":\"datarfziubeflvktjbmc\",\"gxck\":\"datavonuhv\"},\"additionalFormatOptions\":{\"ocothsgxjc\":\"datao\"},\"storageIntegration\":\"datadajxebmliyrctf\",\"\":{\"nd\":\"datakukra\",\"dhjdwfnbiyxqr\":\"datahwdicntqsrhacjsb\",\"rqllugnxmbwdkz\":\"datauyffkayovljtrml\",\"pvpkvceiwcfshhc\":\"datawwbqukjithx\"}}") - .toObject(SnowflakeImportCopyCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeImportCopyCommand model = new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions( - mapOf("q", "datagpznbklhwutyuvu", "plnukdawgzhbwh", "datarfziubeflvktjbmc", "gxck", "datavonuhv")) - .withAdditionalFormatOptions(mapOf("ocothsgxjc", "datao")) - .withStorageIntegration("datadajxebmliyrctf"); - 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 e107de5de841..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeSinkTests.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.SnowflakeSink; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeSink model = BinaryData.fromString( - "{\"type\":\"SnowflakeSink\",\"preCopyScript\":\"dataer\",\"importSettings\":{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"mswhqrdvqva\":\"datal\"},\"additionalFormatOptions\":{\"woigofumbpmzed\":\"datau\"},\"storageIntegration\":\"datajgklmyomavbota\",\"\":{\"fywtqv\":\"dataxipcwyi\"}},\"writeBatchSize\":\"dataoemqwutbya\",\"writeBatchTimeout\":\"datayiwraowp\",\"sinkRetryCount\":\"dataexugdjdmw\",\"sinkRetryWait\":\"datavcronridhwoyzn\",\"maxConcurrentConnections\":\"datadshazlomvxvi\",\"disableMetricsCollection\":\"dataotniqzqmpgvy\",\"\":{\"jhcwcffts\":\"datawwbr\",\"eoikxjpuwg\":\"dataswvyighjgvhg\",\"wawmbusle\":\"datapsaqfnbx\",\"cdjhfxbkgpnxu\":\"datatsqzkzworuhhvdeo\"}}") - .toObject(SnowflakeSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSink model = new SnowflakeSink().withWriteBatchSize("dataoemqwutbya") - .withWriteBatchTimeout("datayiwraowp") - .withSinkRetryCount("dataexugdjdmw") - .withSinkRetryWait("datavcronridhwoyzn") - .withMaxConcurrentConnections("datadshazlomvxvi") - .withDisableMetricsCollection("dataotniqzqmpgvy") - .withPreCopyScript("dataer") - .withImportSettings( - new SnowflakeImportCopyCommand().withAdditionalCopyOptions(mapOf("mswhqrdvqva", "datal")) - .withAdditionalFormatOptions(mapOf("woigofumbpmzed", "datau")) - .withStorageIntegration("datajgklmyomavbota")); - 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 ca8916562d85..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\":\"SnowflakeSource\",\"query\":\"datayeyqsiniejjb\",\"exportSettings\":{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"bdtmrijt\":\"datatxkwrvtlbbu\"},\"additionalFormatOptions\":{\"v\":\"datahvbpvizuuluilgm\"},\"storageIntegration\":\"datantjsmjxgqs\",\"\":{\"zcqgt\":\"datavaaruv\"}},\"sourceRetryCount\":\"datatlrmrtdz\",\"sourceRetryWait\":\"datajgovy\",\"maxConcurrentConnections\":\"datappswlept\",\"disableMetricsCollection\":\"databrkntfwxkeuyxgpc\",\"\":{\"pznoveab\":\"datamrdlc\",\"sdharsw\":\"datapaiqikz\",\"rdvtvt\":\"dataqmrpdx\"}}") - .toObject(SnowflakeSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeSource model = new SnowflakeSource().withSourceRetryCount("datatlrmrtdz") - .withSourceRetryWait("datajgovy") - .withMaxConcurrentConnections("datappswlept") - .withDisableMetricsCollection("databrkntfwxkeuyxgpc") - .withQuery("datayeyqsiniejjb") - .withExportSettings( - new SnowflakeExportCopyCommand().withAdditionalCopyOptions(mapOf("bdtmrijt", "datatxkwrvtlbbu")) - .withAdditionalFormatOptions(mapOf("v", "datahvbpvizuuluilgm")) - .withStorageIntegration("datantjsmjxgqs")); - model = BinaryData.fromObject(model).toObject(SnowflakeSource.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.java deleted file mode 100644 index 40334c55caf6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2DatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SnowflakeV2Dataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnowflakeV2DatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeV2Dataset model = BinaryData.fromString( - "{\"type\":\"SnowflakeV2Table\",\"typeProperties\":{\"schema\":\"datagba\",\"table\":\"datahramq\"},\"description\":\"gqcglmadfztofxvq\",\"structure\":\"datauuagwayfmcer\",\"schema\":\"datafeiqb\",\"linkedServiceName\":{\"referenceName\":\"s\",\"parameters\":{\"ozzjkugpd\":\"datawjipssvnonijcqc\",\"bpwarh\":\"dataqbtokvocuzxl\",\"i\":\"dataettohgpzwxyvtkzb\"}},\"parameters\":{\"wnfhmjusuqnku\":{\"type\":\"Bool\",\"defaultValue\":\"datadd\"},\"qnirmidtvhjcgs\":{\"type\":\"Array\",\"defaultValue\":\"datalxudhek\"}},\"annotations\":[\"dataqygkx\",\"datalfoj\"],\"folder\":{\"name\":\"pum\"},\"\":{\"rvykduumwbcu\":\"databod\",\"e\":\"dataj\"}}") - .toObject(SnowflakeV2Dataset.class); - Assertions.assertEquals("gqcglmadfztofxvq", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wnfhmjusuqnku").type()); - Assertions.assertEquals("pum", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Dataset model = new SnowflakeV2Dataset().withDescription("gqcglmadfztofxvq") - .withStructure("datauuagwayfmcer") - .withSchema("datafeiqb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("s") - .withParameters(mapOf("ozzjkugpd", "datawjipssvnonijcqc", "bpwarh", "dataqbtokvocuzxl", "i", - "dataettohgpzwxyvtkzb"))) - .withParameters(mapOf("wnfhmjusuqnku", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datadd"), "qnirmidtvhjcgs", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datalxudhek"))) - .withAnnotations(Arrays.asList("dataqygkx", "datalfoj")) - .withFolder(new DatasetFolder().withName("pum")) - .withSchemaTypePropertiesSchema("datagba") - .withTable("datahramq"); - model = BinaryData.fromObject(model).toObject(SnowflakeV2Dataset.class); - Assertions.assertEquals("gqcglmadfztofxvq", model.description()); - Assertions.assertEquals("s", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("wnfhmjusuqnku").type()); - Assertions.assertEquals("pum", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.java deleted file mode 100644 index 14d2be4e5e32..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SinkTests.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.SnowflakeV2Sink; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeV2SinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeV2Sink model = BinaryData.fromString( - "{\"type\":\"SnowflakeV2Sink\",\"preCopyScript\":\"databfmtbprtkvuxwu\",\"importSettings\":{\"type\":\"SnowflakeImportCopyCommand\",\"additionalCopyOptions\":{\"znvlwc\":\"dataugwkuhqbwg\",\"yqpubwzzxetx\":\"datajhqki\",\"wnbxqkbeoofoxfch\":\"datacjrbsq\",\"hpr\":\"datanewkssxpnhh\"},\"additionalFormatOptions\":{\"ilxlonzifdf\":\"datayvkkg\"},\"storageIntegration\":\"datakgwdng\",\"\":{\"dhqkariatxhpxdvr\":\"datart\",\"amcwet\":\"datajoghgxgzbzsas\",\"e\":\"datansgcwadvuqba\"}},\"writeBatchSize\":\"dataffqalm\",\"writeBatchTimeout\":\"datatm\",\"sinkRetryCount\":\"datawwtcwbgmxwpynsl\",\"sinkRetryWait\":\"datayvmizx\",\"maxConcurrentConnections\":\"datahhqwwtarxtdgpm\",\"disableMetricsCollection\":\"datallahozsdnfppkyk\",\"\":{\"mlnjdaxi\":\"datacyfubg\",\"ztmq\":\"datahulvpnqvcutwngfd\",\"cokpfyo\":\"datau\"}}") - .toObject(SnowflakeV2Sink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Sink model = new SnowflakeV2Sink().withWriteBatchSize("dataffqalm") - .withWriteBatchTimeout("datatm") - .withSinkRetryCount("datawwtcwbgmxwpynsl") - .withSinkRetryWait("datayvmizx") - .withMaxConcurrentConnections("datahhqwwtarxtdgpm") - .withDisableMetricsCollection("datallahozsdnfppkyk") - .withPreCopyScript("databfmtbprtkvuxwu") - .withImportSettings(new SnowflakeImportCopyCommand() - .withAdditionalCopyOptions(mapOf("znvlwc", "dataugwkuhqbwg", "yqpubwzzxetx", "datajhqki", - "wnbxqkbeoofoxfch", "datacjrbsq", "hpr", "datanewkssxpnhh")) - .withAdditionalFormatOptions(mapOf("ilxlonzifdf", "datayvkkg")) - .withStorageIntegration("datakgwdng")); - 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 f5b6a18f989d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SnowflakeV2SourceTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SnowflakeExportCopyCommand; -import com.azure.resourcemanager.datafactory.models.SnowflakeV2Source; -import java.util.HashMap; -import java.util.Map; - -public final class SnowflakeV2SourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnowflakeV2Source model = BinaryData.fromString( - "{\"type\":\"SnowflakeV2Source\",\"query\":\"datavo\",\"exportSettings\":{\"type\":\"SnowflakeExportCopyCommand\",\"additionalCopyOptions\":{\"eas\":\"datakmgp\",\"wdosfgbvsoz\":\"datadqpwhp\",\"tlb\":\"datafnpwxcjci\",\"oyl\":\"datauemqetmotuvhhed\"},\"additionalFormatOptions\":{\"wcca\":\"datal\"},\"storageIntegration\":\"datahbdvsorvhbygwtl\",\"\":{\"t\":\"datazzkbxwncggamx\",\"lexvqhbnwmokzx\":\"dataizydaiolnkkg\",\"e\":\"dataltbpqjfoujeiagny\",\"wyffut\":\"datajssay\"}},\"sourceRetryCount\":\"dataxrpxdhzwdy\",\"sourceRetryWait\":\"datayhvx\",\"maxConcurrentConnections\":\"dataexwhoscinpmvcvnm\",\"disableMetricsCollection\":\"datalshglym\",\"\":{\"hiayro\":\"dataazvc\",\"glytwzttkhyrwd\":\"dataxeezlqw\",\"pqatkzghwcywrb\":\"datanpuoaorfpizybpj\",\"kf\":\"dataxwls\"}}") - .toObject(SnowflakeV2Source.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnowflakeV2Source model = new SnowflakeV2Source().withSourceRetryCount("dataxrpxdhzwdy") - .withSourceRetryWait("datayhvx") - .withMaxConcurrentConnections("dataexwhoscinpmvcvnm") - .withDisableMetricsCollection("datalshglym") - .withQuery("datavo") - .withExportSettings(new SnowflakeExportCopyCommand() - .withAdditionalCopyOptions(mapOf("eas", "datakmgp", "wdosfgbvsoz", "datadqpwhp", "tlb", "datafnpwxcjci", - "oyl", "datauemqetmotuvhhed")) - .withAdditionalFormatOptions(mapOf("wcca", "datal")) - .withStorageIntegration("datahbdvsorvhbygwtl")); - 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 a1b0f714ab21..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\":\"datar\"}") - .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("datar"); - model = BinaryData.fromObject(model).toObject(SparkConfigurationParametrizationReference.class); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java deleted file mode 100644 index 37b3665b3e04..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkDatasetTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SparkDatasetTypeProperties; - -public final class SparkDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"datawvbqcaww\",\"table\":\"dataqtsrnyotgnmz\",\"schema\":\"datacreluedcmk\"}") - .toObject(SparkDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkDatasetTypeProperties model = new SparkDatasetTypeProperties().withTableName("datawvbqcaww") - .withTable("dataqtsrnyotgnmz") - .withSchema("datacreluedcmk"); - model = BinaryData.fromObject(model).toObject(SparkDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java deleted file mode 100644 index 043b5ba76691..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkObjectDatasetTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SparkObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkObjectDataset model = BinaryData.fromString( - "{\"type\":\"SparkObject\",\"typeProperties\":{\"tableName\":\"datavmshkkgygfohrm\",\"table\":\"datahlclpkr\",\"schema\":\"datacbmjjviutivr\"},\"description\":\"ztxt\",\"structure\":\"datamgftjviiloh\",\"schema\":\"datarjcxhhfhznsjx\",\"linkedServiceName\":{\"referenceName\":\"fo\",\"parameters\":{\"sxhdkhm\":\"datauylyumbweprlnuo\",\"lyfzmnxr\":\"datamxkahapesnbyou\",\"fwzlmpx\":\"dataxxjvwbatjgzkm\"}},\"parameters\":{\"mmdzphxulx\":{\"type\":\"Bool\",\"defaultValue\":\"datai\"},\"cpbzxpz\":{\"type\":\"SecureString\",\"defaultValue\":\"datadnpfcghdttowqx\"},\"feomotquqlq\":{\"type\":\"Bool\",\"defaultValue\":\"datavhatiywtcvzuzp\"}},\"annotations\":[\"datasgqp\"],\"folder\":{\"name\":\"dpfvlsqmmetwtla\"},\"\":{\"cgrllyyfsmoc\":\"datajtefbdpnuvh\",\"chmetvzhuugdykgd\":\"dataxh\"}}") - .toObject(SparkObjectDataset.class); - Assertions.assertEquals("ztxt", model.description()); - Assertions.assertEquals("fo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("mmdzphxulx").type()); - Assertions.assertEquals("dpfvlsqmmetwtla", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkObjectDataset model = new SparkObjectDataset().withDescription("ztxt") - .withStructure("datamgftjviiloh") - .withSchema("datarjcxhhfhznsjx") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("fo") - .withParameters(mapOf("sxhdkhm", "datauylyumbweprlnuo", "lyfzmnxr", "datamxkahapesnbyou", "fwzlmpx", - "dataxxjvwbatjgzkm"))) - .withParameters(mapOf("mmdzphxulx", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datai"), "cpbzxpz", - new ParameterSpecification().withType(ParameterType.SECURE_STRING) - .withDefaultValue("datadnpfcghdttowqx"), - "feomotquqlq", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datavhatiywtcvzuzp"))) - .withAnnotations(Arrays.asList("datasgqp")) - .withFolder(new DatasetFolder().withName("dpfvlsqmmetwtla")) - .withTableName("datavmshkkgygfohrm") - .withTable("datahlclpkr") - .withSchemaTypePropertiesSchema("datacbmjjviutivr"); - model = BinaryData.fromObject(model).toObject(SparkObjectDataset.class); - Assertions.assertEquals("ztxt", model.description()); - Assertions.assertEquals("fo", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("mmdzphxulx").type()); - Assertions.assertEquals("dpfvlsqmmetwtla", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java deleted file mode 100644 index a95b369c38ec..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SparkSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SparkSource; - -public final class SparkSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkSource model = BinaryData.fromString( - "{\"type\":\"SparkSource\",\"query\":\"datav\",\"queryTimeout\":\"datapdv\",\"additionalColumns\":\"datayelrteunkwypu\",\"sourceRetryCount\":\"datafmsygt\",\"sourceRetryWait\":\"dataqlfdml\",\"maxConcurrentConnections\":\"datazdbrw\",\"disableMetricsCollection\":\"datawft\",\"\":{\"jsfgkwrcbgxypr\":\"dataxwi\",\"izabjb\":\"databpywecz\"}}") - .toObject(SparkSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkSource model = new SparkSource().withSourceRetryCount("datafmsygt") - .withSourceRetryWait("dataqlfdml") - .withMaxConcurrentConnections("datazdbrw") - .withDisableMetricsCollection("datawft") - .withQueryTimeout("datapdv") - .withAdditionalColumns("datayelrteunkwypu") - .withQuery("datav"); - 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 81bb8f0d87ee..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlDWSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlDWSource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlDWSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlDWSource model = BinaryData.fromString( - "{\"type\":\"SqlDWSource\",\"sqlReaderQuery\":\"dataqfaxtl\",\"sqlReaderStoredProcedureName\":\"datayzcgugslpvy\",\"storedProcedureParameters\":\"datafuhfa\",\"isolationLevel\":\"dataibvslocdkp\",\"partitionOption\":\"datakq\",\"partitionSettings\":{\"partitionColumnName\":\"datadxnzjz\",\"partitionUpperBound\":\"datahhiztfmibwzuhyd\",\"partitionLowerBound\":\"datackgwtbfxxsfjn\"},\"queryTimeout\":\"datascjig\",\"additionalColumns\":\"datakdsvayyhtiy\",\"sourceRetryCount\":\"datahmniz\",\"sourceRetryWait\":\"databtehkytl\",\"maxConcurrentConnections\":\"datamyznwrcfqwkqul\",\"disableMetricsCollection\":\"dataovqohwiw\",\"\":{\"sjjjcd\":\"dataxjxlssosndnypx\",\"xb\":\"datasvgdbfni\",\"jgczpdio\":\"datasjhpm\",\"cwmabehr\":\"datadtjylimzvjwjhmtc\"}}") - .toObject(SqlDWSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlDWSource model = new SqlDWSource().withSourceRetryCount("datahmniz") - .withSourceRetryWait("databtehkytl") - .withMaxConcurrentConnections("datamyznwrcfqwkqul") - .withDisableMetricsCollection("dataovqohwiw") - .withQueryTimeout("datascjig") - .withAdditionalColumns("datakdsvayyhtiy") - .withSqlReaderQuery("dataqfaxtl") - .withSqlReaderStoredProcedureName("datayzcgugslpvy") - .withStoredProcedureParameters("datafuhfa") - .withIsolationLevel("dataibvslocdkp") - .withPartitionOption("datakq") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datadxnzjz") - .withPartitionUpperBound("datahhiztfmibwzuhyd") - .withPartitionLowerBound("datackgwtbfxxsfjn")); - 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 1f458ed534a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlMISourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlMISource; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; - -public final class SqlMISourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlMISource model = BinaryData.fromString( - "{\"type\":\"SqlMISource\",\"sqlReaderQuery\":\"datarjmicha\",\"sqlReaderStoredProcedureName\":\"dataen\",\"storedProcedureParameters\":\"dataqjvdde\",\"isolationLevel\":\"datavrjhtpxydiuviup\",\"produceAdditionalTypes\":\"datatnsyrrybdyqiv\",\"partitionOption\":\"datasuhozihd\",\"partitionSettings\":{\"partitionColumnName\":\"datajwthwcpijgasnafd\",\"partitionUpperBound\":\"datanwgirnjgso\",\"partitionLowerBound\":\"databdhrcepanhygca\"},\"queryTimeout\":\"datajbjjlxsv\",\"additionalColumns\":\"databggsnanojty\",\"sourceRetryCount\":\"datahzxzazofr\",\"sourceRetryWait\":\"datasxjdgaimk\",\"maxConcurrentConnections\":\"datasowszb\",\"disableMetricsCollection\":\"datalhxik\",\"\":{\"tzjxgassmnatnp\":\"datakyngarwz\",\"gek\":\"datalueylqysgmiix\",\"hlgpe\":\"datawecbqtkdgin\",\"cqgqrsopq\":\"dataqqcceyowrwvbqv\"}}") - .toObject(SqlMISource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlMISource model = new SqlMISource().withSourceRetryCount("datahzxzazofr") - .withSourceRetryWait("datasxjdgaimk") - .withMaxConcurrentConnections("datasowszb") - .withDisableMetricsCollection("datalhxik") - .withQueryTimeout("datajbjjlxsv") - .withAdditionalColumns("databggsnanojty") - .withSqlReaderQuery("datarjmicha") - .withSqlReaderStoredProcedureName("dataen") - .withStoredProcedureParameters("dataqjvdde") - .withIsolationLevel("datavrjhtpxydiuviup") - .withProduceAdditionalTypes("datatnsyrrybdyqiv") - .withPartitionOption("datasuhozihd") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datajwthwcpijgasnafd") - .withPartitionUpperBound("datanwgirnjgso") - .withPartitionLowerBound("databdhrcepanhygca")); - model = BinaryData.fromObject(model).toObject(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 931f1a2aaaac..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\":\"dataadafecwnufldzjc\",\"partitionUpperBound\":\"datahjbzpoh\",\"partitionLowerBound\":\"datajgpe\"}") - .toObject(SqlPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPartitionSettings model = new SqlPartitionSettings().withPartitionColumnName("dataadafecwnufldzjc") - .withPartitionUpperBound("datahjbzpoh") - .withPartitionLowerBound("datajgpe"); - model = BinaryData.fromObject(model).toObject(SqlPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerBaseLinkedServiceTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerBaseLinkedServiceTypePropertiesTests.java deleted file mode 100644 index 11252cead526..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerBaseLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties; - -public final class SqlServerBaseLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerBaseLinkedServiceTypeProperties model = BinaryData.fromString( - "{\"server\":\"datanhlvagug\",\"database\":\"datadwtfmfjkrz\",\"encrypt\":\"datahaljomgzorprrapt\",\"trustServerCertificate\":\"datajenylgebrsnvof\",\"hostNameInCertificate\":\"datazvbploazc\",\"applicationIntent\":\"datahgermm\",\"connectTimeout\":\"datakbxui\",\"connectRetryCount\":\"dataoaw\",\"connectRetryInterval\":\"datagpubeqkwxzmuz\",\"loadBalanceTimeout\":\"dataeuyg\",\"commandTimeout\":\"datahauhe\",\"integratedSecurity\":\"dataswe\",\"failoverPartner\":\"datagxxzxwrnqwdjvl\",\"maxPoolSize\":\"datazxyylwsfxqcmej\",\"minPoolSize\":\"datajcbciuagakmxg\",\"multipleActiveResultSets\":\"datamavllp\",\"multiSubnetFailover\":\"dataguzsyfwamhm\",\"packetSize\":\"dataxxb\",\"pooling\":\"datagwnompvy\"}") - .toObject(SqlServerBaseLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerBaseLinkedServiceTypeProperties model - = new SqlServerBaseLinkedServiceTypeProperties().withServer("datanhlvagug") - .withDatabase("datadwtfmfjkrz") - .withEncrypt("datahaljomgzorprrapt") - .withTrustServerCertificate("datajenylgebrsnvof") - .withHostnameInCertificate("datazvbploazc") - .withApplicationIntent("datahgermm") - .withConnectTimeout("datakbxui") - .withConnectRetryCount("dataoaw") - .withConnectRetryInterval("datagpubeqkwxzmuz") - .withLoadBalanceTimeout("dataeuyg") - .withCommandTimeout("datahauhe") - .withIntegratedSecurity("dataswe") - .withFailoverPartner("datagxxzxwrnqwdjvl") - .withMaxPoolSize("datazxyylwsfxqcmej") - .withMinPoolSize("datajcbciuagakmxg") - .withMultipleActiveResultSets("datamavllp") - .withMultiSubnetFailover("dataguzsyfwamhm") - .withPacketSize("dataxxb") - .withPooling("datagwnompvy"); - model = BinaryData.fromObject(model).toObject(SqlServerBaseLinkedServiceTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java deleted file mode 100644 index a3bc7a34d279..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerSourceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SqlServerSource; - -public final class SqlServerSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerSource model = BinaryData.fromString( - "{\"type\":\"SqlServerSource\",\"sqlReaderQuery\":\"databoxvwtlnv\",\"sqlReaderStoredProcedureName\":\"datahtujaqpkup\",\"storedProcedureParameters\":\"datacrjeypd\",\"isolationLevel\":\"datascxzsynbdrqirni\",\"produceAdditionalTypes\":\"dataothyeb\",\"partitionOption\":\"dataesovsvjxnso\",\"partitionSettings\":{\"partitionColumnName\":\"datal\",\"partitionUpperBound\":\"datahlyhgiisnfaxtob\",\"partitionLowerBound\":\"datafpyilojwc\"},\"queryTimeout\":\"datary\",\"additionalColumns\":\"dataauskishhm\",\"sourceRetryCount\":\"datapgrkd\",\"sourceRetryWait\":\"datazaunbwcqti\",\"maxConcurrentConnections\":\"datavzds\",\"disableMetricsCollection\":\"datajhjlploa\",\"\":{\"zujvhu\":\"datalrdkc\"}}") - .toObject(SqlServerSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerSource model = new SqlServerSource().withSourceRetryCount("datapgrkd") - .withSourceRetryWait("datazaunbwcqti") - .withMaxConcurrentConnections("datavzds") - .withDisableMetricsCollection("datajhjlploa") - .withQueryTimeout("datary") - .withAdditionalColumns("dataauskishhm") - .withSqlReaderQuery("databoxvwtlnv") - .withSqlReaderStoredProcedureName("datahtujaqpkup") - .withStoredProcedureParameters("datacrjeypd") - .withIsolationLevel("datascxzsynbdrqirni") - .withProduceAdditionalTypes("dataothyeb") - .withPartitionOption("dataesovsvjxnso") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datal") - .withPartitionUpperBound("datahlyhgiisnfaxtob") - .withPartitionLowerBound("datafpyilojwc")); - 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 f75b0f84c978..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\":\"SqlServerStoredProcedure\",\"typeProperties\":{\"storedProcedureName\":\"datapaiat\",\"storedProcedureParameters\":\"dataxvbwsa\"},\"linkedServiceName\":{\"referenceName\":\"vtinro\",\"parameters\":{\"pyh\":\"datatylseu\",\"n\":\"datanngijnzlokxihf\",\"ssxid\":\"databljlrfwq\"}},\"policy\":{\"timeout\":\"datavbicdzvypfo\",\"retry\":\"dataxbfctqnq\",\"retryIntervalInSeconds\":1638131634,\"secureInput\":false,\"secureOutput\":true,\"\":{\"q\":\"datakmjqfachfm\",\"qeu\":\"datakgs\",\"f\":\"datajvs\"}},\"name\":\"wpqvgxpwmoefhbur\",\"description\":\"a\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"wpxvptqnqbd\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"juuwmcugveiiegoo\":\"datazlfhn\",\"dfqthohfqbeai\":\"datablvcalb\",\"gdascmf\":\"datavnnhxgiydk\",\"xgy\":\"datakabwpdvedmxckb\"}},{\"activity\":\"xszetaonkfbgwf\",\"dependencyConditions\":[\"Succeeded\",\"Failed\",\"Skipped\"],\"\":{\"j\":\"datazrsz\",\"udnxaw\":\"datadcisceiauoy\",\"cc\":\"datagmbmb\"}},{\"activity\":\"ikp\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"o\":\"datajizbjsu\"}}],\"userProperties\":[{\"name\":\"ltcrtmebrssrlxen\",\"value\":\"datapthc\"},{\"name\":\"j\",\"value\":\"dataqmb\"},{\"name\":\"xensog\",\"value\":\"datavhqqxggncgyzvt\"},{\"name\":\"excjqrvpgukscrsb\",\"value\":\"datahkdemaxoaj\"}],\"\":{\"ajkkzkzprjqbmgf\":\"datacachsojgagey\",\"zbeemlsrtgbgcmut\":\"datawy\",\"lpuuf\":\"datakwd\"}}") - .toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("wpqvgxpwmoefhbur", model.name()); - Assertions.assertEquals("a", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("wpxvptqnqbd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ltcrtmebrssrlxen", model.userProperties().get(0).name()); - Assertions.assertEquals("vtinro", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1638131634, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerStoredProcedureActivity model = new SqlServerStoredProcedureActivity().withName("wpqvgxpwmoefhbur") - .withDescription("a") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("wpxvptqnqbd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xszetaonkfbgwf") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.FAILED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ikp") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("ltcrtmebrssrlxen").withValue("datapthc"), - new UserProperty().withName("j").withValue("dataqmb"), - new UserProperty().withName("xensog").withValue("datavhqqxggncgyzvt"), - new UserProperty().withName("excjqrvpgukscrsb").withValue("datahkdemaxoaj"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("vtinro") - .withParameters(mapOf("pyh", "datatylseu", "n", "datanngijnzlokxihf", "ssxid", "databljlrfwq"))) - .withPolicy(new ActivityPolicy().withTimeout("datavbicdzvypfo") - .withRetry("dataxbfctqnq") - .withRetryIntervalInSeconds(1638131634) - .withSecureInput(false) - .withSecureOutput(true) - .withAdditionalProperties(mapOf())) - .withStoredProcedureName("datapaiat") - .withStoredProcedureParameters("dataxvbwsa"); - model = BinaryData.fromObject(model).toObject(SqlServerStoredProcedureActivity.class); - Assertions.assertEquals("wpqvgxpwmoefhbur", model.name()); - Assertions.assertEquals("a", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("wpxvptqnqbd", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SKIPPED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("ltcrtmebrssrlxen", model.userProperties().get(0).name()); - Assertions.assertEquals("vtinro", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1638131634, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(true, model.policy().secureOutput()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java deleted file mode 100644 index 043290335a70..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerStoredProcedureActivityTypePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerStoredProcedureActivityTypeProperties; - -public final class SqlServerStoredProcedureActivityTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model - = BinaryData.fromString("{\"storedProcedureName\":\"datahbdmmf\",\"storedProcedureParameters\":\"datax\"}") - .toObject(SqlServerStoredProcedureActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerStoredProcedureActivityTypeProperties model - = new SqlServerStoredProcedureActivityTypeProperties().withStoredProcedureName("datahbdmmf") - .withStoredProcedureParameters("datax"); - model = BinaryData.fromObject(model).toObject(SqlServerStoredProcedureActivityTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java deleted file mode 100644 index 4395792416c3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SqlServerTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlServerTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerTableDataset model = BinaryData.fromString( - "{\"type\":\"SqlServerTable\",\"typeProperties\":{\"tableName\":\"datav\",\"schema\":\"datadfkhttuobrxz\",\"table\":\"dataytebjkjge\"},\"description\":\"wtfma\",\"structure\":\"databmnhtwofx\",\"schema\":\"datahlvyqns\",\"linkedServiceName\":{\"referenceName\":\"bq\",\"parameters\":{\"hj\":\"dataqkie\",\"spt\":\"dataqqrugwespscvs\",\"supcvqgxcvw\":\"datauwozfvz\",\"cmcgmlmpnvq\":\"dataoq\"}},\"parameters\":{\"dqseypdlmajpuy\":{\"type\":\"Bool\",\"defaultValue\":\"datarzn\"},\"mzgccy\":{\"type\":\"String\",\"defaultValue\":\"dataf\"}},\"annotations\":[\"datavmsiehedm\",\"datavoneey\"],\"folder\":{\"name\":\"a\"},\"\":{\"qwddigebls\":\"dataza\",\"wveeozbjkj\":\"datalzdssi\"}}") - .toObject(SqlServerTableDataset.class); - Assertions.assertEquals("wtfma", model.description()); - Assertions.assertEquals("bq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dqseypdlmajpuy").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDataset model = new SqlServerTableDataset().withDescription("wtfma") - .withStructure("databmnhtwofx") - .withSchema("datahlvyqns") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("bq") - .withParameters(mapOf("hj", "dataqkie", "spt", "dataqqrugwespscvs", "supcvqgxcvw", "datauwozfvz", - "cmcgmlmpnvq", "dataoq"))) - .withParameters(mapOf("dqseypdlmajpuy", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datarzn"), "mzgccy", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataf"))) - .withAnnotations(Arrays.asList("datavmsiehedm", "datavoneey")) - .withFolder(new DatasetFolder().withName("a")) - .withTableName("datav") - .withSchemaTypePropertiesSchema("datadfkhttuobrxz") - .withTable("dataytebjkjge"); - model = BinaryData.fromObject(model).toObject(SqlServerTableDataset.class); - Assertions.assertEquals("wtfma", model.description()); - Assertions.assertEquals("bq", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("dqseypdlmajpuy").type()); - Assertions.assertEquals("a", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java deleted file mode 100644 index 23b8e6720883..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlServerTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerTableDatasetTypeProperties; - -public final class SqlServerTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlServerTableDatasetTypeProperties model = BinaryData - .fromString("{\"tableName\":\"dataizdnuehx\",\"schema\":\"datatssjd\",\"table\":\"databnklgerxac\"}") - .toObject(SqlServerTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlServerTableDatasetTypeProperties model - = new SqlServerTableDatasetTypeProperties().withTableName("dataizdnuehx") - .withSchema("datatssjd") - .withTable("databnklgerxac"); - model = BinaryData.fromObject(model).toObject(SqlServerTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java deleted file mode 100644 index 6561b6ece0af..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SqlSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.SqlSource; - -public final class SqlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlSource model = BinaryData.fromString( - "{\"type\":\"SqlSource\",\"sqlReaderQuery\":\"dataokqeuzslny\",\"sqlReaderStoredProcedureName\":\"datauywijnlpeczq\",\"storedProcedureParameters\":\"datamzkqydthf\",\"isolationLevel\":\"dataycmwvphrwuf\",\"partitionOption\":\"dataov\",\"partitionSettings\":{\"partitionColumnName\":\"datasqlekchjdh\",\"partitionUpperBound\":\"datakeif\",\"partitionLowerBound\":\"datatcownxiw\"},\"queryTimeout\":\"datatvbudbnu\",\"additionalColumns\":\"datamllyjelnhm\",\"sourceRetryCount\":\"datahxkofzxkqsle\",\"sourceRetryWait\":\"databam\",\"maxConcurrentConnections\":\"datanwgccgblepam\",\"disableMetricsCollection\":\"databaxdaoja\",\"\":{\"ljmj\":\"dataoxwqlnxvnm\"}}") - .toObject(SqlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlSource model = new SqlSource().withSourceRetryCount("datahxkofzxkqsle") - .withSourceRetryWait("databam") - .withMaxConcurrentConnections("datanwgccgblepam") - .withDisableMetricsCollection("databaxdaoja") - .withQueryTimeout("datatvbudbnu") - .withAdditionalColumns("datamllyjelnhm") - .withSqlReaderQuery("dataokqeuzslny") - .withSqlReaderStoredProcedureName("datauywijnlpeczq") - .withStoredProcedureParameters("datamzkqydthf") - .withIsolationLevel("dataycmwvphrwuf") - .withPartitionOption("dataov") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datasqlekchjdh") - .withPartitionUpperBound("datakeif") - .withPartitionLowerBound("datatcownxiw")); - model = BinaryData.fromObject(model).toObject(SqlSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java deleted file mode 100644 index 9af996d1bbc2..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareObjectDatasetTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SquareObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SquareObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SquareObjectDataset model = BinaryData.fromString( - "{\"type\":\"SquareObject\",\"typeProperties\":{\"tableName\":\"dataheexzhhllxwk\"},\"description\":\"oxdjklf\",\"structure\":\"datantk\",\"schema\":\"datay\",\"linkedServiceName\":{\"referenceName\":\"mddslwnlgjdlh\",\"parameters\":{\"s\":\"datapybnnnlpqdn\",\"jerndzzywxqraqx\":\"dataatupmrslwknrdvvm\",\"putl\":\"datakdeetnne\"}},\"parameters\":{\"sxwasfwqjz\":{\"type\":\"Array\",\"defaultValue\":\"datajmr\"},\"cfguam\":{\"type\":\"Int\",\"defaultValue\":\"datafqdnpp\"},\"blukgctvnspjvsy\":{\"type\":\"Array\",\"defaultValue\":\"datamuvkgdwpj\"}},\"annotations\":[\"datalhdukcsqvyeegx\",\"dataulojwumfjdymeq\",\"datanxpfyxdjspnonx\"],\"folder\":{\"name\":\"qpzhna\"},\"\":{\"evtwll\":\"datagcmcvdjlwwe\"}}") - .toObject(SquareObjectDataset.class); - Assertions.assertEquals("oxdjklf", model.description()); - Assertions.assertEquals("mddslwnlgjdlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("sxwasfwqjz").type()); - Assertions.assertEquals("qpzhna", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareObjectDataset model - = new SquareObjectDataset().withDescription("oxdjklf") - .withStructure("datantk") - .withSchema("datay") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("mddslwnlgjdlh") - .withParameters(mapOf("s", "datapybnnnlpqdn", "jerndzzywxqraqx", "dataatupmrslwknrdvvm", "putl", - "datakdeetnne"))) - .withParameters(mapOf("sxwasfwqjz", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datajmr"), "cfguam", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datafqdnpp"), - "blukgctvnspjvsy", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datamuvkgdwpj"))) - .withAnnotations(Arrays.asList("datalhdukcsqvyeegx", "dataulojwumfjdymeq", "datanxpfyxdjspnonx")) - .withFolder(new DatasetFolder().withName("qpzhna")) - .withTableName("dataheexzhhllxwk"); - model = BinaryData.fromObject(model).toObject(SquareObjectDataset.class); - Assertions.assertEquals("oxdjklf", model.description()); - Assertions.assertEquals("mddslwnlgjdlh", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("sxwasfwqjz").type()); - Assertions.assertEquals("qpzhna", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java deleted file mode 100644 index 1bc159f2b649..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SquareSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SquareSource; - -public final class SquareSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SquareSource model = BinaryData.fromString( - "{\"type\":\"SquareSource\",\"query\":\"datayddijfkktigisee\",\"queryTimeout\":\"datazrerxyds\",\"additionalColumns\":\"datapn\",\"sourceRetryCount\":\"dataarkjt\",\"sourceRetryWait\":\"dataaczkjkfakgrwt\",\"maxConcurrentConnections\":\"datasfanmjmpce\",\"disableMetricsCollection\":\"datamfdylvpyhhgqysz\",\"\":{\"jekolnylpyk\":\"datajzhvej\",\"aouyaanfxai\":\"datapa\"}}") - .toObject(SquareSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SquareSource model = new SquareSource().withSourceRetryCount("dataarkjt") - .withSourceRetryWait("dataaczkjkfakgrwt") - .withMaxConcurrentConnections("datasfanmjmpce") - .withDisableMetricsCollection("datamfdylvpyhhgqysz") - .withQueryTimeout("datazrerxyds") - .withAdditionalColumns("datapn") - .withQuery("datayddijfkktigisee"); - 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 341431e74c76..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\":\"dataooqobpnkvn\",\"packageName\":\"jrxbbxkh\",\"packageContent\":\"dataeqbxvtgloifmlbh\",\"packageLastModifiedDate\":\"mgzimtzzy\"}") - .toObject(SsisChildPackage.class); - Assertions.assertEquals("jrxbbxkh", model.packageName()); - Assertions.assertEquals("mgzimtzzy", model.packageLastModifiedDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisChildPackage model = new SsisChildPackage().withPackagePath("dataooqobpnkvn") - .withPackageName("jrxbbxkh") - .withPackageContent("dataeqbxvtgloifmlbh") - .withPackageLastModifiedDate("mgzimtzzy"); - model = BinaryData.fromObject(model).toObject(SsisChildPackage.class); - Assertions.assertEquals("jrxbbxkh", model.packageName()); - Assertions.assertEquals("mgzimtzzy", 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 b6a3cef9f845..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\":9016144972386507719,\"environmentFolderName\":\"eftforylxakn\",\"environmentName\":\"jzvqp\",\"referenceType\":\"mtupyjtr\"}") - .toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(9016144972386507719L, model.id()); - Assertions.assertEquals("eftforylxakn", model.environmentFolderName()); - Assertions.assertEquals("jzvqp", model.environmentName()); - Assertions.assertEquals("mtupyjtr", model.referenceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironmentReference model = new SsisEnvironmentReference().withId(9016144972386507719L) - .withEnvironmentFolderName("eftforylxakn") - .withEnvironmentName("jzvqp") - .withReferenceType("mtupyjtr"); - model = BinaryData.fromObject(model).toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(9016144972386507719L, model.id()); - Assertions.assertEquals("eftforylxakn", model.environmentFolderName()); - Assertions.assertEquals("jzvqp", model.environmentName()); - Assertions.assertEquals("mtupyjtr", model.referenceType()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.java deleted file mode 100644 index d45e939d81ef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisEnvironmentTests.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.SsisEnvironment; -import com.azure.resourcemanager.datafactory.models.SsisVariable; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisEnvironmentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisEnvironment model = BinaryData.fromString( - "{\"type\":\"Environment\",\"folderId\":25894212602910322,\"variables\":[{\"id\":4703332932315494092,\"name\":\"f\",\"description\":\"jqvjyqmpmsknaxrh\",\"dataType\":\"wqufudp\",\"sensitive\":false,\"value\":\"qlef\",\"sensitiveValue\":\"pw\"},{\"id\":1104885063499267087,\"name\":\"fijf\",\"description\":\"j\",\"dataType\":\"svhmsmrih\",\"sensitive\":false,\"value\":\"wlbqntdder\",\"sensitiveValue\":\"yiwuzpsvcmzs\"}],\"id\":1188936130623858178,\"name\":\"ysqnwnlc\",\"description\":\"fjdzkfth\"}") - .toObject(SsisEnvironment.class); - Assertions.assertEquals(1188936130623858178L, model.id()); - Assertions.assertEquals("ysqnwnlc", model.name()); - Assertions.assertEquals("fjdzkfth", model.description()); - Assertions.assertEquals(25894212602910322L, model.folderId()); - Assertions.assertEquals(4703332932315494092L, model.variables().get(0).id()); - Assertions.assertEquals("f", model.variables().get(0).name()); - Assertions.assertEquals("jqvjyqmpmsknaxrh", model.variables().get(0).description()); - Assertions.assertEquals("wqufudp", model.variables().get(0).dataType()); - Assertions.assertEquals(false, model.variables().get(0).sensitive()); - Assertions.assertEquals("qlef", model.variables().get(0).value()); - Assertions.assertEquals("pw", model.variables().get(0).sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironment model = new SsisEnvironment().withId(1188936130623858178L) - .withName("ysqnwnlc") - .withDescription("fjdzkfth") - .withFolderId(25894212602910322L) - .withVariables(Arrays.asList( - new SsisVariable().withId(4703332932315494092L) - .withName("f") - .withDescription("jqvjyqmpmsknaxrh") - .withDataType("wqufudp") - .withSensitive(false) - .withValue("qlef") - .withSensitiveValue("pw"), - new SsisVariable().withId(1104885063499267087L) - .withName("fijf") - .withDescription("j") - .withDataType("svhmsmrih") - .withSensitive(false) - .withValue("wlbqntdder") - .withSensitiveValue("yiwuzpsvcmzs"))); - model = BinaryData.fromObject(model).toObject(SsisEnvironment.class); - Assertions.assertEquals(1188936130623858178L, model.id()); - Assertions.assertEquals("ysqnwnlc", model.name()); - Assertions.assertEquals("fjdzkfth", model.description()); - Assertions.assertEquals(25894212602910322L, model.folderId()); - Assertions.assertEquals(4703332932315494092L, model.variables().get(0).id()); - Assertions.assertEquals("f", model.variables().get(0).name()); - Assertions.assertEquals("jqvjyqmpmsknaxrh", model.variables().get(0).description()); - Assertions.assertEquals("wqufudp", model.variables().get(0).dataType()); - Assertions.assertEquals(false, model.variables().get(0).sensitive()); - Assertions.assertEquals("qlef", model.variables().get(0).value()); - Assertions.assertEquals("pw", model.variables().get(0).sensitiveValue()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisExecutionParameterTests.java deleted file mode 100644 index acb2a25f2caa..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\":\"datarbfepfwr\"}").toObject(SsisExecutionParameter.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisExecutionParameter model = new SsisExecutionParameter().withValue("datarbfepfwr"); - 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 093fe8567df5..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisFolderTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisFolder; -import org.junit.jupiter.api.Assertions; - -public final class SsisFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisFolder model = BinaryData.fromString( - "{\"type\":\"Folder\",\"id\":448707184814987414,\"name\":\"ydgmdoqgruc\",\"description\":\"cyjudhgwjqeglym\"}") - .toObject(SsisFolder.class); - Assertions.assertEquals(448707184814987414L, model.id()); - Assertions.assertEquals("ydgmdoqgruc", model.name()); - Assertions.assertEquals("cyjudhgwjqeglym", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisFolder model - = new SsisFolder().withId(448707184814987414L).withName("ydgmdoqgruc").withDescription("cyjudhgwjqeglym"); - model = BinaryData.fromObject(model).toObject(SsisFolder.class); - Assertions.assertEquals(448707184814987414L, model.id()); - Assertions.assertEquals("ydgmdoqgruc", model.name()); - Assertions.assertEquals("cyjudhgwjqeglym", model.description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java deleted file mode 100644 index bbeb7e51a343..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataListResponseInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataListResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataListResponseInner model = BinaryData.fromString( - "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":1248291372184779781,\"name\":\"zvlvqhjkbegib\",\"description\":\"mxiebw\"},{\"type\":\"SsisObjectMetadata\",\"id\":9167362709610232735,\"name\":\"yqcgwrtzjuzgwy\",\"description\":\"htxongmtsavjc\"},{\"type\":\"SsisObjectMetadata\",\"id\":7752304449285326809,\"name\":\"p\",\"description\":\"knftguvriuh\"}],\"nextLink\":\"wmdyvxqtay\"}") - .toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(1248291372184779781L, model.value().get(0).id()); - Assertions.assertEquals("zvlvqhjkbegib", model.value().get(0).name()); - Assertions.assertEquals("mxiebw", model.value().get(0).description()); - Assertions.assertEquals("wmdyvxqtay", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataListResponseInner model = new SsisObjectMetadataListResponseInner().withValue(Arrays.asList( - new SsisObjectMetadata().withId(1248291372184779781L).withName("zvlvqhjkbegib").withDescription("mxiebw"), - new SsisObjectMetadata().withId(9167362709610232735L) - .withName("yqcgwrtzjuzgwy") - .withDescription("htxongmtsavjc"), - new SsisObjectMetadata().withId(7752304449285326809L).withName("p").withDescription("knftguvriuh"))) - .withNextLink("wmdyvxqtay"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(1248291372184779781L, model.value().get(0).id()); - Assertions.assertEquals("zvlvqhjkbegib", model.value().get(0).name()); - Assertions.assertEquals("mxiebw", model.value().get(0).description()); - Assertions.assertEquals("wmdyvxqtay", model.nextLink()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java deleted file mode 100644 index 0b66b4b42fb8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataStatusResponseInnerTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataStatusResponseInner model = BinaryData - .fromString( - "{\"status\":\"tdhxujznbmpowuwp\",\"name\":\"qlveualupjmkh\",\"properties\":\"obbc\",\"error\":\"s\"}") - .toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("tdhxujznbmpowuwp", model.status()); - Assertions.assertEquals("qlveualupjmkh", model.name()); - Assertions.assertEquals("obbc", model.properties()); - Assertions.assertEquals("s", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataStatusResponseInner model - = new SsisObjectMetadataStatusResponseInner().withStatus("tdhxujznbmpowuwp") - .withName("qlveualupjmkh") - .withProperties("obbc") - .withError("s"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("tdhxujznbmpowuwp", model.status()); - Assertions.assertEquals("qlveualupjmkh", model.name()); - Assertions.assertEquals("obbc", model.properties()); - Assertions.assertEquals("s", model.error()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java deleted file mode 100644 index 35212259da5e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisObjectMetadataTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisObjectMetadata; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadata model = BinaryData.fromString( - "{\"type\":\"SsisObjectMetadata\",\"id\":1536045625796396557,\"name\":\"oyq\",\"description\":\"xrmcqibycnojvk\"}") - .toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1536045625796396557L, model.id()); - Assertions.assertEquals("oyq", model.name()); - Assertions.assertEquals("xrmcqibycnojvk", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadata model - = new SsisObjectMetadata().withId(1536045625796396557L).withName("oyq").withDescription("xrmcqibycnojvk"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1536045625796396557L, model.id()); - Assertions.assertEquals("oyq", model.name()); - Assertions.assertEquals("xrmcqibycnojvk", model.description()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java deleted file mode 100644 index 2ce2a36bdb3a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisPackageTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SsisPackage; -import com.azure.resourcemanager.datafactory.models.SsisParameter; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisPackage model = BinaryData.fromString( - "{\"type\":\"Package\",\"folderId\":832712097725612114,\"projectVersion\":7191215883536069020,\"projectId\":4653129829777708956,\"parameters\":[{\"id\":3831824303866241954,\"name\":\"bgaesm\",\"description\":\"dwxrwqtbvwsdtakx\",\"dataType\":\"lkgjhomywlypghhu\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"gpqwgiq\",\"defaultValue\":\"riskmbuihtqfvyq\",\"sensitiveDefaultValue\":\"cz\",\"valueType\":\"uvlieegjnq\",\"valueSet\":true,\"variable\":\"o\"}],\"id\":7965178930258258652,\"name\":\"scgqcr\",\"description\":\"ucftot\"}") - .toObject(SsisPackage.class); - Assertions.assertEquals(7965178930258258652L, model.id()); - Assertions.assertEquals("scgqcr", model.name()); - Assertions.assertEquals("ucftot", model.description()); - Assertions.assertEquals(832712097725612114L, model.folderId()); - Assertions.assertEquals(7191215883536069020L, model.projectVersion()); - Assertions.assertEquals(4653129829777708956L, model.projectId()); - Assertions.assertEquals(3831824303866241954L, model.parameters().get(0).id()); - Assertions.assertEquals("bgaesm", model.parameters().get(0).name()); - Assertions.assertEquals("dwxrwqtbvwsdtakx", model.parameters().get(0).description()); - Assertions.assertEquals("lkgjhomywlypghhu", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(false, model.parameters().get(0).sensitive()); - Assertions.assertEquals("gpqwgiq", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("riskmbuihtqfvyq", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("cz", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("uvlieegjnq", model.parameters().get(0).valueType()); - Assertions.assertEquals(true, model.parameters().get(0).valueSet()); - Assertions.assertEquals("o", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisPackage model = new SsisPackage().withId(7965178930258258652L) - .withName("scgqcr") - .withDescription("ucftot") - .withFolderId(832712097725612114L) - .withProjectVersion(7191215883536069020L) - .withProjectId(4653129829777708956L) - .withParameters(Arrays.asList(new SsisParameter().withId(3831824303866241954L) - .withName("bgaesm") - .withDescription("dwxrwqtbvwsdtakx") - .withDataType("lkgjhomywlypghhu") - .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("gpqwgiq") - .withDefaultValue("riskmbuihtqfvyq") - .withSensitiveDefaultValue("cz") - .withValueType("uvlieegjnq") - .withValueSet(true) - .withVariable("o"))); - model = BinaryData.fromObject(model).toObject(SsisPackage.class); - Assertions.assertEquals(7965178930258258652L, model.id()); - Assertions.assertEquals("scgqcr", model.name()); - Assertions.assertEquals("ucftot", model.description()); - Assertions.assertEquals(832712097725612114L, model.folderId()); - Assertions.assertEquals(7191215883536069020L, model.projectVersion()); - Assertions.assertEquals(4653129829777708956L, model.projectId()); - Assertions.assertEquals(3831824303866241954L, model.parameters().get(0).id()); - Assertions.assertEquals("bgaesm", model.parameters().get(0).name()); - Assertions.assertEquals("dwxrwqtbvwsdtakx", model.parameters().get(0).description()); - Assertions.assertEquals("lkgjhomywlypghhu", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(false, model.parameters().get(0).sensitive()); - Assertions.assertEquals("gpqwgiq", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("riskmbuihtqfvyq", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("cz", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("uvlieegjnq", model.parameters().get(0).valueType()); - Assertions.assertEquals(true, model.parameters().get(0).valueSet()); - Assertions.assertEquals("o", model.parameters().get(0).variable()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisParameterTests.java deleted file mode 100644 index a3be248d7c41..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\":1906673776222092606,\"name\":\"snq\",\"description\":\"efnakdmtpj\",\"dataType\":\"dlu\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"xwtittlnvukvu\",\"defaultValue\":\"plugulynvpdv\",\"sensitiveDefaultValue\":\"qdapydsfpzpjbs\",\"valueType\":\"bnrucq\",\"valueSet\":true,\"variable\":\"nzmjr\"}") - .toObject(SsisParameter.class); - Assertions.assertEquals(1906673776222092606L, model.id()); - Assertions.assertEquals("snq", model.name()); - Assertions.assertEquals("efnakdmtpj", model.description()); - Assertions.assertEquals("dlu", model.dataType()); - Assertions.assertEquals(false, model.required()); - Assertions.assertEquals(true, model.sensitive()); - Assertions.assertEquals("xwtittlnvukvu", model.designDefaultValue()); - Assertions.assertEquals("plugulynvpdv", model.defaultValue()); - Assertions.assertEquals("qdapydsfpzpjbs", model.sensitiveDefaultValue()); - Assertions.assertEquals("bnrucq", model.valueType()); - Assertions.assertEquals(true, model.valueSet()); - Assertions.assertEquals("nzmjr", model.variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisParameter model = new SsisParameter().withId(1906673776222092606L) - .withName("snq") - .withDescription("efnakdmtpj") - .withDataType("dlu") - .withRequired(false) - .withSensitive(true) - .withDesignDefaultValue("xwtittlnvukvu") - .withDefaultValue("plugulynvpdv") - .withSensitiveDefaultValue("qdapydsfpzpjbs") - .withValueType("bnrucq") - .withValueSet(true) - .withVariable("nzmjr"); - model = BinaryData.fromObject(model).toObject(SsisParameter.class); - Assertions.assertEquals(1906673776222092606L, model.id()); - Assertions.assertEquals("snq", model.name()); - Assertions.assertEquals("efnakdmtpj", model.description()); - Assertions.assertEquals("dlu", model.dataType()); - Assertions.assertEquals(false, model.required()); - Assertions.assertEquals(true, model.sensitive()); - Assertions.assertEquals("xwtittlnvukvu", model.designDefaultValue()); - Assertions.assertEquals("plugulynvpdv", model.defaultValue()); - Assertions.assertEquals("qdapydsfpzpjbs", model.sensitiveDefaultValue()); - Assertions.assertEquals("bnrucq", model.valueType()); - Assertions.assertEquals(true, model.valueSet()); - Assertions.assertEquals("nzmjr", 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 9015e6dd7621..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SsisProjectTests.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.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\":7512874295180504803,\"version\":1285901610672878172,\"environmentRefs\":[{\"id\":4606170167698003019,\"environmentFolderName\":\"qm\",\"environmentName\":\"xqcil\",\"referenceType\":\"ulgnnyxwdpm\"}],\"parameters\":[{\"id\":5352402313960943199,\"name\":\"xgbamqrbbs\",\"description\":\"tm\",\"dataType\":\"dpavcjkbyjuwhizc\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"wdtunpcskdlrfo\",\"defaultValue\":\"koltjdauujjl\",\"sensitiveDefaultValue\":\"hddzeykud\",\"valueType\":\"rimyeh\",\"valueSet\":false,\"variable\":\"y\"},{\"id\":5817153020841436569,\"name\":\"axznqqkq\",\"description\":\"dglseuqkr\",\"dataType\":\"yakr\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"okrl\",\"defaultValue\":\"ecannv\",\"sensitiveDefaultValue\":\"uhdcftptf\",\"valueType\":\"apmfwxmcxhwkgihi\",\"valueSet\":false,\"variable\":\"cmgadhmqy\"},{\"id\":8636015705578921283,\"name\":\"wweylszrt\",\"description\":\"iqcypmonfcorcn\",\"dataType\":\"ycigcb\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"jfrponajz\",\"defaultValue\":\"qzbrwrfrmho\",\"sensitiveDefaultValue\":\"okrbgv\",\"valueType\":\"cks\",\"valueSet\":true,\"variable\":\"qu\"},{\"id\":8907486052377839740,\"name\":\"yxdeggnzadqmvpe\",\"description\":\"nsvkyqhrplfqqnwo\",\"dataType\":\"rgc\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"khha\",\"defaultValue\":\"ytuecmgu\",\"sensitiveDefaultValue\":\"wdpuowlc\",\"valueType\":\"krp\",\"valueSet\":false,\"variable\":\"qnbs\"}],\"id\":1976990922267185766,\"name\":\"tcidcabn\",\"description\":\"hcxc\"}") - .toObject(SsisProject.class); - Assertions.assertEquals(1976990922267185766L, model.id()); - Assertions.assertEquals("tcidcabn", model.name()); - Assertions.assertEquals("hcxc", model.description()); - Assertions.assertEquals(7512874295180504803L, model.folderId()); - Assertions.assertEquals(1285901610672878172L, model.version()); - Assertions.assertEquals(4606170167698003019L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("qm", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("xqcil", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("ulgnnyxwdpm", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(5352402313960943199L, model.parameters().get(0).id()); - Assertions.assertEquals("xgbamqrbbs", model.parameters().get(0).name()); - Assertions.assertEquals("tm", model.parameters().get(0).description()); - Assertions.assertEquals("dpavcjkbyjuwhizc", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("wdtunpcskdlrfo", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("koltjdauujjl", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("hddzeykud", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("rimyeh", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("y", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisProject model = new SsisProject().withId(1976990922267185766L) - .withName("tcidcabn") - .withDescription("hcxc") - .withFolderId(7512874295180504803L) - .withVersion(1285901610672878172L) - .withEnvironmentRefs(Arrays.asList(new SsisEnvironmentReference().withId(4606170167698003019L) - .withEnvironmentFolderName("qm") - .withEnvironmentName("xqcil") - .withReferenceType("ulgnnyxwdpm"))) - .withParameters(Arrays.asList( - new SsisParameter().withId(5352402313960943199L) - .withName("xgbamqrbbs") - .withDescription("tm") - .withDataType("dpavcjkbyjuwhizc") - .withRequired(false) - .withSensitive(true) - .withDesignDefaultValue("wdtunpcskdlrfo") - .withDefaultValue("koltjdauujjl") - .withSensitiveDefaultValue("hddzeykud") - .withValueType("rimyeh") - .withValueSet(false) - .withVariable("y"), - new SsisParameter().withId(5817153020841436569L) - .withName("axznqqkq") - .withDescription("dglseuqkr") - .withDataType("yakr") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("okrl") - .withDefaultValue("ecannv") - .withSensitiveDefaultValue("uhdcftptf") - .withValueType("apmfwxmcxhwkgihi") - .withValueSet(false) - .withVariable("cmgadhmqy"), - new SsisParameter().withId(8636015705578921283L) - .withName("wweylszrt") - .withDescription("iqcypmonfcorcn") - .withDataType("ycigcb") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("jfrponajz") - .withDefaultValue("qzbrwrfrmho") - .withSensitiveDefaultValue("okrbgv") - .withValueType("cks") - .withValueSet(true) - .withVariable("qu"), - new SsisParameter().withId(8907486052377839740L) - .withName("yxdeggnzadqmvpe") - .withDescription("nsvkyqhrplfqqnwo") - .withDataType("rgc") - .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("khha") - .withDefaultValue("ytuecmgu") - .withSensitiveDefaultValue("wdpuowlc") - .withValueType("krp") - .withValueSet(false) - .withVariable("qnbs"))); - model = BinaryData.fromObject(model).toObject(SsisProject.class); - Assertions.assertEquals(1976990922267185766L, model.id()); - Assertions.assertEquals("tcidcabn", model.name()); - Assertions.assertEquals("hcxc", model.description()); - Assertions.assertEquals(7512874295180504803L, model.folderId()); - Assertions.assertEquals(1285901610672878172L, model.version()); - Assertions.assertEquals(4606170167698003019L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("qm", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("xqcil", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("ulgnnyxwdpm", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(5352402313960943199L, model.parameters().get(0).id()); - Assertions.assertEquals("xgbamqrbbs", model.parameters().get(0).name()); - Assertions.assertEquals("tm", model.parameters().get(0).description()); - Assertions.assertEquals("dpavcjkbyjuwhizc", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("wdtunpcskdlrfo", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("koltjdauujjl", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("hddzeykud", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("rimyeh", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("y", 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 d61779be4b58..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\":\"datantaaftdysev\",\"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("datantaaftdysev").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 f3d043a7d5db..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\":5027575368405976847,\"name\":\"dbzzetfgkz\",\"description\":\"v\",\"dataType\":\"dulymk\",\"sensitive\":false,\"value\":\"yhxfgha\",\"sensitiveValue\":\"pftkgmbmvxbiubz\"}") - .toObject(SsisVariable.class); - Assertions.assertEquals(5027575368405976847L, model.id()); - Assertions.assertEquals("dbzzetfgkz", model.name()); - Assertions.assertEquals("v", model.description()); - Assertions.assertEquals("dulymk", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("yhxfgha", model.value()); - Assertions.assertEquals("pftkgmbmvxbiubz", model.sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisVariable model = new SsisVariable().withId(5027575368405976847L) - .withName("dbzzetfgkz") - .withDescription("v") - .withDataType("dulymk") - .withSensitive(false) - .withValue("yhxfgha") - .withSensitiveValue("pftkgmbmvxbiubz"); - model = BinaryData.fromObject(model).toObject(SsisVariable.class); - Assertions.assertEquals(5027575368405976847L, model.id()); - Assertions.assertEquals("dbzzetfgkz", model.name()); - Assertions.assertEquals("v", model.description()); - Assertions.assertEquals("dulymk", model.dataType()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("yhxfgha", model.value()); - Assertions.assertEquals("pftkgmbmvxbiubz", 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 e3ef56807c53..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\":\"qspzwsxnyoc\",\"parameters\":{\"btkcvola\":\"datassusdrgzmmrzwm\"}},\"path\":\"dataukgov\",\"enableCompression\":\"datamndcqo\",\"\":{\"zgvaeqiygbo\":\"dataiyhmjwsnwk\",\"odidgudarclajben\":\"datavz\",\"kff\":\"datayuufvoj\"}}") - .toObject(StagingSettings.class); - Assertions.assertEquals("qspzwsxnyoc", model.linkedServiceName().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StagingSettings model = new StagingSettings() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("qspzwsxnyoc") - .withParameters(mapOf("btkcvola", "datassusdrgzmmrzwm"))) - .withPath("dataukgov") - .withEnableCompression("datamndcqo") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(StagingSettings.class); - Assertions.assertEquals("qspzwsxnyoc", 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 9125ecc45f00..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreReadSettingsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class StoreReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StoreReadSettings model = BinaryData.fromString( - "{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datazgwihkswu\",\"disableMetricsCollection\":\"dataaqubryhvbvjy\",\"\":{\"wkphilyznbbcim\":\"dataaupjozgryoc\",\"fo\":\"dataz\",\"lbbhtleiwfi\":\"dataksjwiswz\"}}") - .toObject(StoreReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreReadSettings model = new StoreReadSettings().withMaxConcurrentConnections("datazgwihkswu") - .withDisableMetricsCollection("dataaqubryhvbvjy") - .withAdditionalProperties(mapOf("type", "StoreReadSettings")); - model = BinaryData.fromObject(model).toObject(StoreReadSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.java deleted file mode 100644 index 1f24a6231e78..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/StoreWriteSettingsTests.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.MetadataItem; -import com.azure.resourcemanager.datafactory.models.StoreWriteSettings; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -public final class StoreWriteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StoreWriteSettings model = BinaryData.fromString( - "{\"type\":\"StoreWriteSettings\",\"maxConcurrentConnections\":\"dataqupdcsvzugi\",\"disableMetricsCollection\":\"datahgqlvlbjzsc\",\"copyBehavior\":\"datatnqbkpobjufksdd\",\"metadata\":[{\"name\":\"datawxlylxfpvoylf\",\"value\":\"datasrgu\"},{\"name\":\"databthauivgbimededq\",\"value\":\"datarvulzg\"}],\"\":{\"pdcnrjqsk\":\"datakp\",\"of\":\"datakqdqiybqtl\",\"adnpi\":\"datajsetiznn\"}}") - .toObject(StoreWriteSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StoreWriteSettings model = new StoreWriteSettings().withMaxConcurrentConnections("dataqupdcsvzugi") - .withDisableMetricsCollection("datahgqlvlbjzsc") - .withCopyBehavior("datatnqbkpobjufksdd") - .withMetadata(Arrays.asList(new MetadataItem().withName("datawxlylxfpvoylf").withValue("datasrgu"), - new MetadataItem().withName("databthauivgbimededq").withValue("datarvulzg"))) - .withAdditionalProperties(mapOf("type", "StoreWriteSettings")); - model = BinaryData.fromObject(model).toObject(StoreWriteSettings.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java deleted file mode 100644 index 4c10a2c24b7c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SubResourceDebugResourceTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SubResourceDebugResource; -import org.junit.jupiter.api.Assertions; - -public final class SubResourceDebugResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubResourceDebugResource model - = BinaryData.fromString("{\"name\":\"svflyhbxcudch\"}").toObject(SubResourceDebugResource.class); - Assertions.assertEquals("svflyhbxcudch", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubResourceDebugResource model = new SubResourceDebugResource().withName("svflyhbxcudch"); - model = BinaryData.fromObject(model).toObject(SubResourceDebugResource.class); - Assertions.assertEquals("svflyhbxcudch", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java deleted file mode 100644 index d4e5ee297122..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTests.java +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.SwitchActivity; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SwitchActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SwitchActivity model = BinaryData.fromString( - "{\"type\":\"Switch\",\"typeProperties\":{\"on\":{\"value\":\"a\"},\"cases\":[{\"value\":\"fenpz\",\"activities\":[{\"type\":\"Activity\",\"name\":\"tn\",\"description\":\"ghcmxigexqy\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"yceuywuio\",\"dependencyConditions\":[]},{\"activity\":\"mtwhyznlhaki\",\"dependencyConditions\":[]},{\"activity\":\"skg\",\"dependencyConditions\":[]},{\"activity\":\"fmdp\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"qorpkulzqjqbwjiq\",\"value\":\"dataukbjuakd\"},{\"name\":\"mwajalsen\",\"value\":\"datadoslvfdvbslrhcce\"},{\"name\":\"objsjunzwbb\",\"value\":\"datavx\"}],\"\":{\"dvx\":\"dataukuh\",\"inrq\":\"datadmitmjccnjvgftmp\"}},{\"type\":\"Activity\",\"name\":\"liqxahpy\",\"description\":\"cngduewevhcwt\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"xigpmc\",\"dependencyConditions\":[]},{\"activity\":\"equocawcb\",\"dependencyConditions\":[]},{\"activity\":\"nyljycpwh\",\"dependencyConditions\":[]},{\"activity\":\"btxzaaav\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"dygoadtdx\",\"value\":\"dataxrkrvmhhgv\"},{\"name\":\"xvsuwbvrbwafwi\",\"value\":\"dataktncigwfgvpft\"},{\"name\":\"wmuxcpyqbv\",\"value\":\"datapmghh\"},{\"name\":\"mxptkbehpywvgf\",\"value\":\"datasrngyqvxzqwcm\"}],\"\":{\"nnyksskuscdnn\":\"datapfcvvk\",\"tjtqww\":\"dataoftapyrh\",\"c\":\"dataaxhsjw\"}},{\"type\":\"Activity\",\"name\":\"twywhrzntmzzzavx\",\"description\":\"kexspoiq\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"aisywop\",\"dependencyConditions\":[]},{\"activity\":\"ovlwmaig\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"byldsmyqm\",\"value\":\"datavqth\"},{\"name\":\"imvyzrdqpgyonkr\",\"value\":\"dataxwldktphn\"},{\"name\":\"sijcjnbtgfitpx\",\"value\":\"datakb\"}],\"\":{\"bd\":\"datajxbbyq\"}}]},{\"value\":\"zkujgeppxiyovg\",\"activities\":[{\"type\":\"Activity\",\"name\":\"m\",\"description\":\"oggameacjoa\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"kgvwvlqqnf\",\"dependencyConditions\":[]},{\"activity\":\"wrws\",\"dependencyConditions\":[]},{\"activity\":\"yblwjhpibgalefjs\",\"dependencyConditions\":[]},{\"activity\":\"nxrgmvzcibqy\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"shnbfdwxsjptsk\",\"value\":\"datargztzcibowqmfh\"},{\"name\":\"hnbsxoebephohjo\",\"value\":\"datag\"}],\"\":{\"ngkqejrhwyyzz\":\"datachvrgb\"}},{\"type\":\"Activity\",\"name\":\"lfayichwcf\",\"description\":\"ywpwjvpglst\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"j\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"n\",\"value\":\"dataddygpdn\"},{\"name\":\"vepbocwbcx\",\"value\":\"datadbxdkopummphbf\"},{\"name\":\"riv\",\"value\":\"datailxpp\"},{\"name\":\"zyen\",\"value\":\"datajj\"}],\"\":{\"qolj\":\"datadpnersmevhgs\"}},{\"type\":\"Activity\",\"name\":\"vrjqakbhzsyqp\",\"description\":\"vbxgrgyguq\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"gzeio\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"ngiaadgx\",\"value\":\"datazhyceteidf\"},{\"name\":\"ofmcnnicmlomlnpr\",\"value\":\"dataikyn\"}],\"\":{\"ogabcwvibjfkc\":\"datagquphqnuitumxhve\"}},{\"type\":\"Activity\",\"name\":\"zanr\",\"description\":\"jdmdb\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"uohijjlaxe\",\"dependencyConditions\":[]},{\"activity\":\"ehgrjgvrawjom\",\"dependencyConditions\":[]},{\"activity\":\"gb\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"fyagv\",\"value\":\"dataegptcuqzdwpcu\"},{\"name\":\"ejzozndapxxgvc\",\"value\":\"datavtflcjxmteexap\"}],\"\":{\"rutcedeygsrrgd\":\"datadfi\"}}]}],\"defaultActivities\":[{\"type\":\"Activity\",\"name\":\"qy\",\"description\":\"ah\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"wo\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Skipped\"],\"\":{\"kag\":\"datayrkcdo\",\"jlq\":\"dataaitihncysa\"}}],\"userProperties\":[{\"name\":\"aqtbiskkcebj\",\"value\":\"datajlptydve\"}],\"\":{\"k\":\"datakeonixxiukghxd\"}},{\"type\":\"Activity\",\"name\":\"ptvxi\",\"description\":\"zhknjuevzqawj\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"bpfeisjgh\",\"dependencyConditions\":[\"Completed\",\"Skipped\"],\"\":{\"wu\":\"datadrlbbpkjseft\",\"naqyeswinoecwabu\":\"datafmakn\",\"eqayvkmp\":\"dataqflwskb\"}},{\"activity\":\"gpqxiyllamdz\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"sxpcbglbpa\":\"datakdbo\",\"ggf\":\"databc\",\"xtbdgp\":\"datao\"}}],\"userProperties\":[{\"name\":\"lbdcglimacztky\",\"value\":\"datayvztdho\"},{\"name\":\"arcumpxd\",\"value\":\"datayohbbtwpkgc\"},{\"name\":\"uem\",\"value\":\"datacjejaly\"}],\"\":{\"uvdoteidcwrmdq\":\"dataumt\"}},{\"type\":\"Activity\",\"name\":\"gtwegqmlviymcyfs\",\"description\":\"uzmzgat\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"saerzc\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"xgqxdd\":\"datawzgiozz\",\"zscxikjyjcsh\":\"datauiuriwbvyra\"}},{\"activity\":\"tp\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\"],\"\":{\"vckfivia\":\"datakmybohax\",\"raohiyeyfsvuy\":\"dataqnnmcdqzgepjyppk\",\"cuzpjnakqcs\":\"datay\"}},{\"activity\":\"oozyxugieitpokjy\",\"dependencyConditions\":[\"Skipped\",\"Skipped\"],\"\":{\"bkljj\":\"dataznifpxiqpjnqyylk\",\"lxdhoagcu\":\"datauirmcupbehqbmhqi\",\"haw\":\"dataocvctmpxnbnhogb\"}},{\"activity\":\"efgett\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Skipped\"],\"\":{\"qkbvhd\":\"datapmbx\",\"tcucfbr\":\"datagnbcwfpgvmixfqqm\"}}],\"userProperties\":[{\"name\":\"dtz\",\"value\":\"datagw\"},{\"name\":\"rvpcwyn\",\"value\":\"dataqikouravdqe\"},{\"name\":\"ewgpmademlo\",\"value\":\"datama\"},{\"name\":\"kbmkkun\",\"value\":\"datahgdvgcgunqitzwn\"}],\"\":{\"qjrdydzqeuppxdz\":\"dataevtof\",\"g\":\"datajewpslyszwkrko\",\"tfgbxiao\":\"datanxly\"}},{\"type\":\"Activity\",\"name\":\"zrouwkkwtoxl\",\"description\":\"pvealwdltstxro\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"eakzysakrx\",\"dependencyConditions\":[\"Skipped\",\"Failed\"],\"\":{\"jwkdwpcm\":\"datafqc\"}},{\"activity\":\"q\",\"dependencyConditions\":[\"Completed\",\"Failed\"],\"\":{\"wxoreedoruiyc\":\"datalay\",\"itrsppucxigkpevt\":\"dataourqdmz\",\"dggwaldtelnvcfum\":\"datalmrjla\"}},{\"activity\":\"z\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Skipped\"],\"\":{\"mapxnoogmfujecis\":\"dataklzgiq\",\"umpydk\":\"datacmezexwzpgywnljy\",\"sczcksjwdwzfdfkg\":\"databcufhkrvxxzhqouo\"}}],\"userProperties\":[{\"name\":\"wvmbsmxh\",\"value\":\"dataqdotbnfbn\"},{\"name\":\"ybotuqzjfkuqvter\",\"value\":\"datasgw\"},{\"name\":\"ykcvwqyfixw\",\"value\":\"dataq\"},{\"name\":\"xmiw\",\"value\":\"dataz\"}],\"\":{\"uxutkwb\":\"datalypuxbnv\",\"nqwkaevbgjhmy\":\"datattmvaijnz\"}}]},\"name\":\"sqovmtidmyc\",\"description\":\"ajlnotmir\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"b\",\"dependencyConditions\":[\"Failed\"],\"\":{\"dmfrfzg\":\"datay\"}},{\"activity\":\"njaqzdzkyqq\",\"dependencyConditions\":[\"Skipped\",\"Skipped\",\"Failed\"],\"\":{\"tdeyoxtlq\":\"datatwmmvbahftkcey\",\"tepzrcqnsjqrgtap\":\"datatx\"}},{\"activity\":\"wpzphkm\",\"dependencyConditions\":[\"Completed\"],\"\":{\"ndb\":\"datakl\",\"zsxp\":\"datalqtpebaa\"}},{\"activity\":\"rbjtjvqdwz\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\"],\"\":{\"unfuk\":\"dataenieqlikyc\",\"adhpr\":\"datahxvktlrca\"}}],\"userProperties\":[{\"name\":\"wnrqfi\",\"value\":\"dataqamxxpfyl\"},{\"name\":\"pftw\",\"value\":\"datae\"}],\"\":{\"aolfdgjrgp\":\"datartgww\",\"kzznarnjueq\":\"datapvohvcaqarp\",\"zoihtncadrmthh\":\"datauzjgv\",\"ndfrxn\":\"dataxyznnpazbfrqotig\"}}") - .toObject(SwitchActivity.class); - Assertions.assertEquals("sqovmtidmyc", model.name()); - Assertions.assertEquals("ajlnotmir", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("b", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wnrqfi", model.userProperties().get(0).name()); - Assertions.assertEquals("a", model.on().value()); - Assertions.assertEquals("fenpz", model.cases().get(0).value()); - Assertions.assertEquals("tn", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("ghcmxigexqy", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("yceuywuio", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("qorpkulzqjqbwjiq", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qy", model.defaultActivities().get(0).name()); - Assertions.assertEquals("ah", 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("wo", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("aqtbiskkcebj", model.defaultActivities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchActivity model = new SwitchActivity().withName("sqovmtidmyc") - .withDescription("ajlnotmir") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("b") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("njaqzdzkyqq") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wpzphkm") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rbjtjvqdwz") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("wnrqfi").withValue("dataqamxxpfyl"), - new UserProperty().withName("pftw").withValue("datae"))) - .withOn(new Expression().withValue("a")) - .withCases(Arrays.asList( - new SwitchCase().withValue("fenpz") - .withActivities(Arrays.asList( - new Activity().withName("tn") - .withDescription("ghcmxigexqy") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("yceuywuio") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mtwhyznlhaki") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("skg") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("fmdp") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("qorpkulzqjqbwjiq").withValue("dataukbjuakd"), - new UserProperty().withName("mwajalsen").withValue("datadoslvfdvbslrhcce"), - new UserProperty().withName("objsjunzwbb").withValue("datavx"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("liqxahpy") - .withDescription("cngduewevhcwt") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("xigpmc") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("equocawcb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nyljycpwh") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("btxzaaav") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("dygoadtdx").withValue("dataxrkrvmhhgv"), - new UserProperty().withName("xvsuwbvrbwafwi").withValue("dataktncigwfgvpft"), - new UserProperty().withName("wmuxcpyqbv").withValue("datapmghh"), - new UserProperty().withName("mxptkbehpywvgf").withValue("datasrngyqvxzqwcm"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("twywhrzntmzzzavx") - .withDescription("kexspoiq") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("aisywop") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ovlwmaig") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("byldsmyqm").withValue("datavqth"), - new UserProperty().withName("imvyzrdqpgyonkr").withValue("dataxwldktphn"), - new UserProperty().withName("sijcjnbtgfitpx").withValue("datakb"))) - .withAdditionalProperties(mapOf("type", "Activity")))), - new SwitchCase().withValue("zkujgeppxiyovg") - .withActivities(Arrays.asList( - new Activity().withName("m") - .withDescription("oggameacjoa") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("kgvwvlqqnf") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wrws") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("yblwjhpibgalefjs") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nxrgmvzcibqy") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList( - new UserProperty().withName("shnbfdwxsjptsk").withValue("datargztzcibowqmfh"), - new UserProperty().withName("hnbsxoebephohjo").withValue("datag"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("lfayichwcf") - .withDescription("ywpwjvpglst") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("j") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("n").withValue("dataddygpdn"), - new UserProperty().withName("vepbocwbcx").withValue("datadbxdkopummphbf"), - new UserProperty().withName("riv").withValue("datailxpp"), - new UserProperty().withName("zyen").withValue("datajj"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("vrjqakbhzsyqp") - .withDescription("vbxgrgyguq") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("gzeio") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("ngiaadgx").withValue("datazhyceteidf"), - new UserProperty().withName("ofmcnnicmlomlnpr").withValue("dataikyn"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("zanr") - .withDescription("jdmdb") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("uohijjlaxe") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ehgrjgvrawjom") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("fyagv").withValue("dataegptcuqzdwpcu"), - new UserProperty().withName("ejzozndapxxgvc").withValue("datavtflcjxmteexap"))) - .withAdditionalProperties(mapOf("type", "Activity")))))) - .withDefaultActivities( - Arrays - .asList( - new Activity().withName("qy") - .withDescription("ah") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("wo") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("aqtbiskkcebj") - .withValue("datajlptydve"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("ptvxi") - .withDescription("zhknjuevzqawj") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("bpfeisjgh") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("gpqxiyllamdz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays - .asList(new UserProperty().withName("lbdcglimacztky") - .withValue("datayvztdho"), - new UserProperty().withName("arcumpxd").withValue("datayohbbtwpkgc"), - new UserProperty().withName("uem").withValue("datacjejaly"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("gtwegqmlviymcyfs") - .withDescription("uzmzgat") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays - .asList( - new ActivityDependency().withActivity("saerzc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("tp") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("oozyxugieitpokjy") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("efgett") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("dtz").withValue("datagw"), - new UserProperty().withName("rvpcwyn").withValue("dataqikouravdqe"), - new UserProperty().withName("ewgpmademlo").withValue("datama"), - new UserProperty().withName("kbmkkun").withValue("datahgdvgcgunqitzwn"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("zrouwkkwtoxl") - .withDescription("pvealwdltstxro") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("eakzysakrx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("q") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("z") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("wvmbsmxh").withValue("dataqdotbnfbn"), - new UserProperty().withName("ybotuqzjfkuqvter").withValue("datasgw"), - new UserProperty().withName("ykcvwqyfixw").withValue("dataq"), - new UserProperty().withName("xmiw").withValue("dataz"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchActivity.class); - Assertions.assertEquals("sqovmtidmyc", model.name()); - Assertions.assertEquals("ajlnotmir", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("b", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("wnrqfi", model.userProperties().get(0).name()); - Assertions.assertEquals("a", model.on().value()); - Assertions.assertEquals("fenpz", model.cases().get(0).value()); - Assertions.assertEquals("tn", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("ghcmxigexqy", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SUCCEEDED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("yceuywuio", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("qorpkulzqjqbwjiq", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("qy", model.defaultActivities().get(0).name()); - Assertions.assertEquals("ah", 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("wo", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("aqtbiskkcebj", 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 04f92ceefb73..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchActivityTypePropertiesTests.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.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\":\"wqyhklhossc\"},\"cases\":[{\"value\":\"ungjb\",\"activities\":[{\"type\":\"Activity\",\"name\":\"sjgmes\",\"description\":\"hxkjjhflrg\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"dgqpbgzyaf\",\"dependencyConditions\":[]},{\"activity\":\"zwieizzxjjdb\",\"dependencyConditions\":[]},{\"activity\":\"xuinrsrrijcwn\",\"dependencyConditions\":[]},{\"activity\":\"htqtbcwtcqjsvlzd\",\"dependencyConditions\":[]}],\"userProperties\":[{\"name\":\"zbvdzjlkocjuajcl\",\"value\":\"datatssbkzdgwpyljn\"},{\"name\":\"iprjahgqzb\",\"value\":\"dataicyufnum\"}],\"\":{\"hmuryajppuflvazp\":\"datahnru\",\"sqmli\":\"datazo\",\"lpobzvxntsf\":\"databvfa\"}}]}],\"defaultActivities\":[{\"type\":\"Activity\",\"name\":\"kfzi\",\"description\":\"bwthvww\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"fgpj\",\"dependencyConditions\":[\"Completed\",\"Failed\",\"Failed\",\"Skipped\"],\"\":{\"hwxdwlowy\":\"dataufpdwknxe\",\"uoxkvpl\":\"dataeqiqnjcajm\",\"jfldzvgogqu\":\"dataooomnq\",\"naxfvsyustrb\":\"datagaofobjl\"}}],\"userProperties\":[{\"name\":\"bjbknpzhfhi\",\"value\":\"datahgwbslrqbd\"},{\"name\":\"cjbxochijwpsk\",\"value\":\"dataeprumhikwahbz\"},{\"name\":\"gwkimmvatrv\",\"value\":\"datakxcrxqpenkujxdn\"}],\"\":{\"qytppjdyikdykxh\":\"dataeterjerhwgiuduw\"}},{\"type\":\"Activity\",\"name\":\"rkdtucyutrp\",\"description\":\"mukmmcvfti\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"jynefxaed\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"fzavsajb\":\"dataw\",\"xysmqee\":\"datahshyxhfejtywl\",\"jwqmcaofxgw\":\"datadfplwfsmpbwwp\",\"tedzxujxkxjrttzh\":\"datavjefnlxq\"}},{\"activity\":\"ambjqynwqcov\",\"dependencyConditions\":[\"Skipped\",\"Failed\",\"Skipped\",\"Skipped\"],\"\":{\"rcmayqasdve\":\"datahhbddxkoj\"}}],\"userProperties\":[{\"name\":\"a\",\"value\":\"dataxmpyvlfujsbcfogu\"},{\"name\":\"bqcqnchdzyju\",\"value\":\"datadknblbrixvcp\"},{\"name\":\"svprumttrvkhu\",\"value\":\"dataxtx\"},{\"name\":\"w\",\"value\":\"datajbanlmpmvegxgymx\"}],\"\":{\"gqhqu\":\"datatu\",\"ybgpjyuvjuowk\":\"datanj\",\"dqcgedipnnzmvt\":\"dataebpvhdk\",\"ee\":\"datattjmdtfuwx\"}}]}") - .toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("wqyhklhossc", model.on().value()); - Assertions.assertEquals("ungjb", model.cases().get(0).value()); - Assertions.assertEquals("sjgmes", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("hxkjjhflrg", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dgqpbgzyaf", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("zbvdzjlkocjuajcl", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("kfzi", model.defaultActivities().get(0).name()); - Assertions.assertEquals("bwthvww", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("fgpj", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bjbknpzhfhi", 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("wqyhklhossc")) - .withCases(Arrays.asList(new SwitchCase().withValue("ungjb") - .withActivities(Arrays.asList(new Activity().withName("sjgmes") - .withDescription("hxkjjhflrg") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("dgqpbgzyaf") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zwieizzxjjdb") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xuinrsrrijcwn") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("htqtbcwtcqjsvlzd") - .withDependencyConditions(Arrays.asList()) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("zbvdzjlkocjuajcl").withValue("datatssbkzdgwpyljn"), - new UserProperty().withName("iprjahgqzb").withValue("dataicyufnum"))) - .withAdditionalProperties(mapOf("type", "Activity")))))) - .withDefaultActivities(Arrays.asList( - new Activity().withName("kfzi") - .withDescription("bwthvww") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("fgpj") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.FAILED, DependencyCondition.FAILED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("bjbknpzhfhi").withValue("datahgwbslrqbd"), - new UserProperty().withName("cjbxochijwpsk") - .withValue("dataeprumhikwahbz"), - new UserProperty().withName("gwkimmvatrv").withValue("datakxcrxqpenkujxdn"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("rkdtucyutrp") - .withDescription("mukmmcvfti") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("jynefxaed") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("ambjqynwqcov") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.FAILED, DependencyCondition.SKIPPED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("a").withValue("dataxmpyvlfujsbcfogu"), - new UserProperty().withName("bqcqnchdzyju").withValue("datadknblbrixvcp"), - new UserProperty().withName("svprumttrvkhu").withValue("dataxtx"), - new UserProperty().withName("w").withValue("datajbanlmpmvegxgymx"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchActivityTypeProperties.class); - Assertions.assertEquals("wqyhklhossc", model.on().value()); - Assertions.assertEquals("ungjb", model.cases().get(0).value()); - Assertions.assertEquals("sjgmes", model.cases().get(0).activities().get(0).name()); - Assertions.assertEquals("hxkjjhflrg", model.cases().get(0).activities().get(0).description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.cases().get(0).activities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, - model.cases().get(0).activities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("dgqpbgzyaf", model.cases().get(0).activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals("zbvdzjlkocjuajcl", - model.cases().get(0).activities().get(0).userProperties().get(0).name()); - Assertions.assertEquals("kfzi", model.defaultActivities().get(0).name()); - Assertions.assertEquals("bwthvww", model.defaultActivities().get(0).description()); - Assertions.assertEquals(ActivityState.INACTIVE, model.defaultActivities().get(0).state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.defaultActivities().get(0).onInactiveMarkAs()); - Assertions.assertEquals("fgpj", model.defaultActivities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, - model.defaultActivities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("bjbknpzhfhi", 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 89af3a5c4562..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SwitchCaseTests.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.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\":\"mies\",\"activities\":[{\"type\":\"Activity\",\"name\":\"pcwpbtumttmixe\",\"description\":\"arb\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"vqnkwjhj\",\"dependencyConditions\":[\"Failed\",\"Succeeded\"],\"\":{\"uvfuklepe\":\"datanldflgqsoiunc\",\"etneherqbel\":\"datas\",\"nxhkzc\":\"datas\"}},{\"activity\":\"nipjtduvsvgydtd\",\"dependencyConditions\":[\"Failed\"],\"\":{\"pooaskflrqwfmbk\":\"datazotmiizk\",\"bwudiyfixpwrrqiv\":\"datashbrzvnouthbvv\",\"lozg\":\"datazqcmrxh\",\"yttxspaafs\":\"datafhijcetcystrs\"}},{\"activity\":\"qoyoerlrqtqnx\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"e\":\"dataq\",\"kjzbxmgsxbk\":\"datamwbmqpbfjbsoljqk\",\"eobkmx\":\"datakambdoq\",\"ldxnw\":\"datahmrbjh\"}}],\"userProperties\":[{\"name\":\"czikfx\",\"value\":\"dataaqwnkjyfy\"},{\"name\":\"mbtiugc\",\"value\":\"dataashgryofhuv\"}],\"\":{\"b\":\"datark\",\"jaxkby\":\"dataonuocmxt\"}},{\"type\":\"Activity\",\"name\":\"v\",\"description\":\"pmyvasn\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"yz\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Failed\"],\"\":{\"lmfvqvyzacjxczj\":\"datapy\"}},{\"activity\":\"sixterpbjkhtmm\",\"dependencyConditions\":[\"Completed\",\"Succeeded\",\"Failed\"],\"\":{\"mziwxwwpi\":\"datatrqhncscaynh\"}},{\"activity\":\"wl\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Succeeded\",\"Failed\"],\"\":{\"txfzhvxqotwcfbqz\":\"datahotbsgkliu\",\"hyxxftrfwmxwjc\":\"datazchpjh\"}}],\"userProperties\":[{\"name\":\"kmona\",\"value\":\"dataleof\"},{\"name\":\"xznopk\",\"value\":\"dataoffeutvqgnugiiyc\"},{\"name\":\"jf\",\"value\":\"datakntdynbrf\"},{\"name\":\"crabrqdbxhg\",\"value\":\"datalz\"}],\"\":{\"fziixyxntuz\":\"datavnlubkb\",\"pcmnpo\":\"dataceuz\",\"fayophpudccaqhb\":\"datasqilmvx\",\"rgvzjtvjrrk\":\"datavbutesxufrwiive\"}},{\"type\":\"Activity\",\"name\":\"lweozccdo\",\"description\":\"jnkthehjmij\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"hhci\",\"dependencyConditions\":[\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"ctcbmnecozvx\":\"datagwqgbv\",\"puwjvju\":\"databztwkz\",\"xdzopfkz\":\"dataxbtkuviuxtyvpve\"}},{\"activity\":\"xjnxznlx\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Completed\",\"Failed\"],\"\":{\"ktqsbmurb\":\"datatqv\",\"o\":\"databtvsxn\",\"wfjylhmmibaowc\":\"datahlrhjik\"}},{\"activity\":\"bznwegyhzucpixfd\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Failed\"],\"\":{\"hyx\":\"datacbdpyorhqbpfvh\"}},{\"activity\":\"wsnhszmuvarea\",\"dependencyConditions\":[\"Skipped\",\"Completed\"],\"\":{\"npcrsfqwqm\":\"datanmnmqydpieleruoy\"}}],\"userProperties\":[{\"name\":\"j\",\"value\":\"dataonvjur\"},{\"name\":\"czdelqazb\",\"value\":\"dataixg\"}],\"\":{\"uvqacae\":\"databhwwpaec\",\"oqjmo\":\"datavn\",\"brrqxldkhgngyofe\":\"datagdb\",\"ncxkazmydsqvjkfz\":\"datajksmyeegbertf\"}},{\"type\":\"Activity\",\"name\":\"rd\",\"description\":\"wgcmmvvbwrilcyep\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"jkdacuvyec\",\"dependencyConditions\":[\"Failed\",\"Skipped\",\"Completed\"],\"\":{\"dfy\":\"datalbx\",\"wmehaic\":\"dataywmezoi\",\"v\":\"datakkcpkvujwf\",\"fsiiadfjxfiv\":\"datavvnbbeys\"}}],\"userProperties\":[{\"name\":\"gpt\",\"value\":\"dataxilwnvfb\"}],\"\":{\"kazlekjh\":\"datao\",\"hhkcutxmq\":\"dataawiitxyebidkn\"}}]}") - .toObject(SwitchCase.class); - Assertions.assertEquals("mies", model.value()); - Assertions.assertEquals("pcwpbtumttmixe", model.activities().get(0).name()); - Assertions.assertEquals("arb", 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("vqnkwjhj", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("czikfx", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SwitchCase model - = new SwitchCase().withValue("mies") - .withActivities( - Arrays - .asList( - new Activity().withName("pcwpbtumttmixe") - .withDescription("arb") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("vqnkwjhj") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nipjtduvsvgydtd") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("qoyoerlrqtqnx") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("czikfx").withValue("dataaqwnkjyfy"), - new UserProperty().withName("mbtiugc").withValue("dataashgryofhuv"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("v") - .withDescription("pmyvasn") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn( - Arrays.asList( - new ActivityDependency().withActivity("yz") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("sixterpbjkhtmm") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.SUCCEEDED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wl") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("kmona").withValue("dataleof"), - new UserProperty().withName("xznopk").withValue("dataoffeutvqgnugiiyc"), - new UserProperty().withName("jf").withValue("datakntdynbrf"), - new UserProperty().withName("crabrqdbxhg").withValue("datalz"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("lweozccdo") - .withDescription("jnkthehjmij") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("hhci") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("xjnxznlx") - .withDependencyConditions( - Arrays.asList(DependencyCondition.COMPLETED, DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("bznwegyhzucpixfd") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("wsnhszmuvarea") - .withDependencyConditions( - Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("j").withValue("dataonvjur"), - new UserProperty().withName("czdelqazb").withValue("dataixg"))) - .withAdditionalProperties(mapOf("type", "Activity")), - new Activity().withName("rd") - .withDescription("wgcmmvvbwrilcyep") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("jkdacuvyec") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.SKIPPED, DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("gpt").withValue("dataxilwnvfb"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(SwitchCase.class); - Assertions.assertEquals("mies", model.value()); - Assertions.assertEquals("pcwpbtumttmixe", model.activities().get(0).name()); - Assertions.assertEquals("arb", 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("vqnkwjhj", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("czikfx", 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 bbe363c8f55b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SybaseSource; - -public final class SybaseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseSource model = BinaryData.fromString( - "{\"type\":\"SybaseSource\",\"query\":\"dataa\",\"queryTimeout\":\"databnekhjzbfb\",\"additionalColumns\":\"dataeqkuozarr\",\"sourceRetryCount\":\"datapyzryjb\",\"sourceRetryWait\":\"databcvoyqnrjdrc\",\"maxConcurrentConnections\":\"datarvzewogh\",\"disableMetricsCollection\":\"datazxkjqecj\",\"\":{\"igpistpx\":\"dataomeawthyc\",\"wlaw\":\"datazjnparsulm\",\"xxqgoavzycxpza\":\"datakhe\",\"mftmxwtwzs\":\"datatalo\"}}") - .toObject(SybaseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseSource model = new SybaseSource().withSourceRetryCount("datapyzryjb") - .withSourceRetryWait("databcvoyqnrjdrc") - .withMaxConcurrentConnections("datarvzewogh") - .withDisableMetricsCollection("datazxkjqecj") - .withQueryTimeout("databnekhjzbfb") - .withAdditionalColumns("dataeqkuozarr") - .withQuery("dataa"); - model = BinaryData.fromObject(model).toObject(SybaseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java deleted file mode 100644 index 4040ed36125a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.SybaseTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SybaseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseTableDataset model = BinaryData.fromString( - "{\"type\":\"SybaseTable\",\"typeProperties\":{\"tableName\":\"datatxa\"},\"description\":\"ujdbq\",\"structure\":\"datayexb\",\"schema\":\"datagxqqqasfeooqftp\",\"linkedServiceName\":{\"referenceName\":\"evtarphklqlii\",\"parameters\":{\"wgjnofgij\":\"datan\",\"zmwyw\":\"datadgsebjuymtevae\",\"edogzougxbxx\":\"datarjkejv\"}},\"parameters\":{\"mtenfdvdoe\":{\"type\":\"String\",\"defaultValue\":\"dataphivfh\"}},\"annotations\":[\"datawusrjzhdt\",\"datasyfezfsmyljd\",\"datayyrwnmwtqi\"],\"folder\":{\"name\":\"nnkynkstd\"},\"\":{\"wvaosckfavhk\":\"datahjfphfxaqjyihjc\",\"weifdyfa\":\"datapsp\"}}") - .toObject(SybaseTableDataset.class); - Assertions.assertEquals("ujdbq", model.description()); - Assertions.assertEquals("evtarphklqlii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("mtenfdvdoe").type()); - Assertions.assertEquals("nnkynkstd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDataset model = new SybaseTableDataset().withDescription("ujdbq") - .withStructure("datayexb") - .withSchema("datagxqqqasfeooqftp") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("evtarphklqlii") - .withParameters( - mapOf("wgjnofgij", "datan", "zmwyw", "datadgsebjuymtevae", "edogzougxbxx", "datarjkejv"))) - .withParameters(mapOf("mtenfdvdoe", - new ParameterSpecification().withType(ParameterType.STRING).withDefaultValue("dataphivfh"))) - .withAnnotations(Arrays.asList("datawusrjzhdt", "datasyfezfsmyljd", "datayyrwnmwtqi")) - .withFolder(new DatasetFolder().withName("nnkynkstd")) - .withTableName("datatxa"); - model = BinaryData.fromObject(model).toObject(SybaseTableDataset.class); - Assertions.assertEquals("ujdbq", model.description()); - Assertions.assertEquals("evtarphklqlii", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.STRING, model.parameters().get("mtenfdvdoe").type()); - Assertions.assertEquals("nnkynkstd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java deleted file mode 100644 index e5e49a4bf53d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SybaseTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.SybaseTableDatasetTypeProperties; - -public final class SybaseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SybaseTableDatasetTypeProperties model - = BinaryData.fromString("{\"tableName\":\"dataxnguwn\"}").toObject(SybaseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SybaseTableDatasetTypeProperties model = new SybaseTableDatasetTypeProperties().withTableName("dataxnguwn"); - model = BinaryData.fromObject(model).toObject(SybaseTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java deleted file mode 100644 index c258786ee577..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTests.java +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityPolicy; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.BigDataPoolParametrizationReference; -import com.azure.resourcemanager.datafactory.models.BigDataPoolReferenceType; -import com.azure.resourcemanager.datafactory.models.ConfigurationType; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.NotebookParameter; -import com.azure.resourcemanager.datafactory.models.NotebookParameterType; -import com.azure.resourcemanager.datafactory.models.NotebookReferenceType; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationParametrizationReference; -import com.azure.resourcemanager.datafactory.models.SparkConfigurationReferenceType; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookActivity; -import com.azure.resourcemanager.datafactory.models.SynapseNotebookReference; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SynapseNotebookActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SynapseNotebookActivity model = BinaryData.fromString( - "{\"type\":\"SynapseNotebook\",\"typeProperties\":{\"notebook\":{\"type\":\"NotebookReference\",\"referenceName\":\"datad\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"datadarnhpxzjkjbvzpc\"},\"parameters\":{\"igohafudt\":{\"value\":\"datanhtds\",\"type\":\"float\"},\"nfhcqgjvlnvfzlmu\":{\"value\":\"datawepueq\",\"type\":\"string\"},\"twgjlxdd\":{\"value\":\"datap\",\"type\":\"bool\"}},\"executorSize\":\"datafnqazv\",\"conf\":\"dataspjdxaytzkdqim\",\"driverSize\":\"dataaijc\",\"numExecutors\":\"datalkyrssyy\",\"configurationType\":\"Default\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"datanyl\"},\"sparkConfig\":{\"jrrolwrv\":\"datarxykplvjsqazecdo\"}},\"linkedServiceName\":{\"referenceName\":\"aqxstykus\",\"parameters\":{\"oexwarqazfsrvzyy\":\"datagjexiqejvpdrc\",\"cspidcn\":\"dataevhazwewhobxlkd\",\"alk\":\"datajfgxynuxv\"}},\"policy\":{\"timeout\":\"datazwow\",\"retry\":\"dataulqgaeqnlxtqlbje\",\"retryIntervalInSeconds\":1914558705,\"secureInput\":false,\"secureOutput\":false,\"\":{\"dvxmkzgrrgrkovs\":\"datazuze\"}},\"name\":\"ebwdvuvq\",\"description\":\"plzdoamqkdwa\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"x\",\"dependencyConditions\":[\"Completed\"],\"\":{\"niv\":\"dataradfiwjounvfqy\"}},{\"activity\":\"mdfw\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"qzbvyrvfxcbatmv\":\"datadjwjmrbphtllkpk\"}},{\"activity\":\"rjidxiosy\",\"dependencyConditions\":[\"Completed\",\"Completed\",\"Skipped\"],\"\":{\"tg\":\"dataj\"}},{\"activity\":\"hgyl\",\"dependencyConditions\":[\"Failed\"],\"\":{\"nsknnnpyob\":\"datahbmowmh\",\"rijd\":\"datainyqsdsuewf\"}}],\"userProperties\":[{\"name\":\"crtmvtfeyopgeiw\",\"value\":\"databmcizmggv\"},{\"name\":\"xvgwrqywa\",\"value\":\"datagzaxq\"}],\"\":{\"m\":\"datarkyimc\",\"cyxcluvj\":\"datahwtlli\",\"jpld\":\"datap\",\"cntgqyqwmzzcgbg\":\"datahshcjgoobltoar\"}}") - .toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("ebwdvuvq", model.name()); - Assertions.assertEquals("plzdoamqkdwa", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, 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("crtmvtfeyopgeiw", model.userProperties().get(0).name()); - Assertions.assertEquals("aqxstykus", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1914558705, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.FLOAT, model.parameters().get("igohafudt").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookActivity model = new SynapseNotebookActivity().withName("ebwdvuvq") - .withDescription("plzdoamqkdwa") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("x") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("mdfw") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("rjidxiosy") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED, - DependencyCondition.COMPLETED, DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("hgyl") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("crtmvtfeyopgeiw").withValue("databmcizmggv"), - new UserProperty().withName("xvgwrqywa").withValue("datagzaxq"))) - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("aqxstykus") - .withParameters(mapOf("oexwarqazfsrvzyy", "datagjexiqejvpdrc", "cspidcn", "dataevhazwewhobxlkd", "alk", - "datajfgxynuxv"))) - .withPolicy(new ActivityPolicy().withTimeout("datazwow") - .withRetry("dataulqgaeqnlxtqlbje") - .withRetryIntervalInSeconds(1914558705) - .withSecureInput(false) - .withSecureOutput(false) - .withAdditionalProperties(mapOf())) - .withNotebook(new SynapseNotebookReference().withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datad")) - .withSparkPool( - new BigDataPoolParametrizationReference().withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("datadarnhpxzjkjbvzpc")) - .withParameters( - mapOf("igohafudt", new NotebookParameter().withValue("datanhtds").withType(NotebookParameterType.FLOAT), - "nfhcqgjvlnvfzlmu", - new NotebookParameter().withValue("datawepueq").withType(NotebookParameterType.STRING), "twgjlxdd", - new NotebookParameter().withValue("datap").withType(NotebookParameterType.BOOL))) - .withExecutorSize("datafnqazv") - .withConf("dataspjdxaytzkdqim") - .withDriverSize("dataaijc") - .withNumExecutors("datalkyrssyy") - .withConfigurationType(ConfigurationType.DEFAULT) - .withTargetSparkConfiguration(new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("datanyl")) - .withSparkConfig(mapOf("jrrolwrv", "datarxykplvjsqazecdo")); - model = BinaryData.fromObject(model).toObject(SynapseNotebookActivity.class); - Assertions.assertEquals("ebwdvuvq", model.name()); - Assertions.assertEquals("plzdoamqkdwa", model.description()); - Assertions.assertEquals(ActivityState.INACTIVE, 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("crtmvtfeyopgeiw", model.userProperties().get(0).name()); - Assertions.assertEquals("aqxstykus", model.linkedServiceName().referenceName()); - Assertions.assertEquals(1914558705, model.policy().retryIntervalInSeconds()); - Assertions.assertEquals(false, model.policy().secureInput()); - Assertions.assertEquals(false, model.policy().secureOutput()); - Assertions.assertEquals(NotebookReferenceType.NOTEBOOK_REFERENCE, model.notebook().type()); - Assertions.assertEquals(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE, model.sparkPool().type()); - Assertions.assertEquals(NotebookParameterType.FLOAT, model.parameters().get("igohafudt").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java deleted file mode 100644 index 511fa08cddbb..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookActivityTypePropertiesTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.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\":\"datas\"},\"sparkPool\":{\"type\":\"BigDataPoolReference\",\"referenceName\":\"datauurtuqwvybxm\"},\"parameters\":{\"h\":{\"value\":\"datakbhymdaeshjj\",\"type\":\"int\"}},\"executorSize\":\"datafavqefiwwhbkxz\",\"conf\":\"datayovlhm\",\"driverSize\":\"dataobiagwuefmyiw\",\"numExecutors\":\"datatau\",\"configurationType\":\"Default\",\"targetSparkConfiguration\":{\"type\":\"SparkConfigurationReference\",\"referenceName\":\"datajno\"},\"sparkConfig\":{\"fyarl\":\"databcezd\",\"erql\":\"datallg\"}}") - .toObject(SynapseNotebookActivityTypeProperties.class); - 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("h").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SynapseNotebookActivityTypeProperties model = new SynapseNotebookActivityTypeProperties() - .withNotebook(new SynapseNotebookReference().withType(NotebookReferenceType.NOTEBOOK_REFERENCE) - .withReferenceName("datas")) - .withSparkPool( - new BigDataPoolParametrizationReference().withType(BigDataPoolReferenceType.BIG_DATA_POOL_REFERENCE) - .withReferenceName("datauurtuqwvybxm")) - .withParameters( - mapOf("h", new NotebookParameter().withValue("datakbhymdaeshjj").withType(NotebookParameterType.INT))) - .withExecutorSize("datafavqefiwwhbkxz") - .withConf("datayovlhm") - .withDriverSize("dataobiagwuefmyiw") - .withNumExecutors("datatau") - .withConfigurationType(ConfigurationType.DEFAULT) - .withTargetSparkConfiguration(new SparkConfigurationParametrizationReference() - .withType(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE) - .withReferenceName("datajno")) - .withSparkConfig(mapOf("fyarl", "databcezd", "erql", "datallg")); - 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.INT, model.parameters().get("h").type()); - Assertions.assertEquals(ConfigurationType.DEFAULT, model.configurationType()); - Assertions.assertEquals(SparkConfigurationReferenceType.SPARK_CONFIGURATION_REFERENCE, - model.targetSparkConfiguration().type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/SynapseNotebookReferenceTests.java deleted file mode 100644 index 930174afc063..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\":\"datacsffagunybteyht\"}") - .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("datacsffagunybteyht"); - 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 7012e441ab69..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\":\"dataevvqetvc\"}") - .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("dataevvqetvc"); - 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 cc890ec22ebc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularSourceTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TabularSource; - -public final class TabularSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TabularSource model = BinaryData.fromString( - "{\"type\":\"TabularSource\",\"queryTimeout\":\"dataofts\",\"additionalColumns\":\"datafwusfbrnjvzl\",\"sourceRetryCount\":\"datavjemp\",\"sourceRetryWait\":\"databslwzntbieuq\",\"maxConcurrentConnections\":\"datakfi\",\"disableMetricsCollection\":\"datagbupuukpswwutduc\",\"\":{\"utmxt\":\"datandijzpvckh\",\"wljtwibwcdx\":\"datajssytd\"}}") - .toObject(TabularSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularSource model = new TabularSource().withSourceRetryCount("datavjemp") - .withSourceRetryWait("databslwzntbieuq") - .withMaxConcurrentConnections("datakfi") - .withDisableMetricsCollection("datagbupuukpswwutduc") - .withQueryTimeout("dataofts") - .withAdditionalColumns("datafwusfbrnjvzl"); - 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 e658e550aadf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TabularTranslatorTests.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.TabularTranslator; -import com.azure.resourcemanager.datafactory.models.TypeConversionSettings; - -public final class TabularTranslatorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TabularTranslator model = BinaryData.fromString( - "{\"type\":\"TabularTranslator\",\"columnMappings\":\"datayfaidzvdq\",\"schemaMapping\":\"dataiv\",\"collectionReference\":\"datayxsjblblxjbrqbut\",\"mapComplexValuesToString\":\"datacnqudm\",\"mappings\":\"datauvaweajq\",\"typeConversion\":\"datavbvkwr\",\"typeConversionSettings\":{\"allowDataTruncation\":\"dataoqyymhdbgobhl\",\"treatBooleanAsNumber\":\"datapaycqqgr\",\"dateTimeFormat\":\"datattosnz\",\"dateTimeOffsetFormat\":\"dataxifacrhpuzcagz\",\"timeSpanFormat\":\"datapbw\",\"timeFormat\":\"datasuig\",\"dateFormat\":\"dataemocndb\",\"culture\":\"dataxrkoxwyxodpcgdv\"},\"\":{\"afila\":\"databkvx\"}}") - .toObject(TabularTranslator.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TabularTranslator model = new TabularTranslator().withColumnMappings("datayfaidzvdq") - .withSchemaMapping("dataiv") - .withCollectionReference("datayxsjblblxjbrqbut") - .withMapComplexValuesToString("datacnqudm") - .withMappings("datauvaweajq") - .withTypeConversion("datavbvkwr") - .withTypeConversionSettings(new TypeConversionSettings().withAllowDataTruncation("dataoqyymhdbgobhl") - .withTreatBooleanAsNumber("datapaycqqgr") - .withDateTimeFormat("datattosnz") - .withDateTimeOffsetFormat("dataxifacrhpuzcagz") - .withTimeSpanFormat("datapbw") - .withTimeFormat("datasuig") - .withDateFormat("dataemocndb") - .withCulture("dataxrkoxwyxodpcgdv")); - 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 32b12fe02ab2..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\":\"TarGZipReadSettings\",\"preserveCompressionFileNameAsFolder\":\"dataz\",\"\":{\"skbienj\":\"datatm\",\"vsfqu\":\"dataadykmvounb\"}}") - .toObject(TarGZipReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarGZipReadSettings model = new TarGZipReadSettings().withPreserveCompressionFileNameAsFolder("dataz"); - 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 c5be0920d3a6..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TarReadSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TarReadSettings; - -public final class TarReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TarReadSettings model = BinaryData.fromString( - "{\"type\":\"TarReadSettings\",\"preserveCompressionFileNameAsFolder\":\"datahdyasklmyfh\",\"\":{\"f\":\"datawedetawljat\",\"jtszqexcqcwbxx\":\"datadqspdutt\",\"lvkdwwqhhlfvmwu\":\"datacvekqjdru\",\"fbdanfexlawkeq\":\"dataarswsvtzotmwxq\"}}") - .toObject(TarReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TarReadSettings model = new TarReadSettings().withPreserveCompressionFileNameAsFolder("datahdyasklmyfh"); - model = BinaryData.fromObject(model).toObject(TarReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataImportCommandTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataImportCommandTests.java deleted file mode 100644 index 6df6ea967b0c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataImportCommandTests.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.TeradataImportCommand; - -public final class TeradataImportCommandTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataImportCommand model = BinaryData.fromString( - "{\"type\":\"TeradataImportCommand\",\"additionalFormatOptions\":\"datadtwdcgbjxtfvx\",\"\":{\"nhuvm\":\"dataobsgvzyjkwltn\",\"lodkqrqn\":\"datakihsclpnbid\"}}") - .toObject(TeradataImportCommand.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataImportCommand model = new TeradataImportCommand().withAdditionalFormatOptions("datadtwdcgbjxtfvx"); - model = BinaryData.fromObject(model).toObject(TeradataImportCommand.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 f1a04ceca951..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\":\"datauqkdieu\",\"partitionUpperBound\":\"datawsak\",\"partitionLowerBound\":\"datamizcfkclf\"}") - .toObject(TeradataPartitionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataPartitionSettings model = new TeradataPartitionSettings().withPartitionColumnName("datauqkdieu") - .withPartitionUpperBound("datawsak") - .withPartitionLowerBound("datamizcfkclf"); - model = BinaryData.fromObject(model).toObject(TeradataPartitionSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSinkTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSinkTests.java deleted file mode 100644 index f41d82529e28..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSinkTests.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.TeradataImportCommand; -import com.azure.resourcemanager.datafactory.models.TeradataSink; - -public final class TeradataSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataSink model = BinaryData.fromString( - "{\"type\":\"TeradataSink\",\"importSettings\":{\"type\":\"TeradataImportCommand\",\"additionalFormatOptions\":\"datan\",\"\":{\"kdbmjzobcdvbbuu\":\"dataahoyg\",\"ahxgrpwjgk\":\"datapelokptteojxhwg\",\"qmmwwtzxsv\":\"datavkjdhsl\"}},\"writeBatchSize\":\"dataiw\",\"writeBatchTimeout\":\"dataw\",\"sinkRetryCount\":\"dataubgaaaxigafah\",\"sinkRetryWait\":\"dataooggzdobl\",\"maxConcurrentConnections\":\"datatcy\",\"disableMetricsCollection\":\"databhboplavgfb\",\"\":{\"we\":\"datahwuex\",\"ppohqsfgalexyiyg\":\"dataslw\"}}") - .toObject(TeradataSink.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataSink model = new TeradataSink().withWriteBatchSize("dataiw") - .withWriteBatchTimeout("dataw") - .withSinkRetryCount("dataubgaaaxigafah") - .withSinkRetryWait("dataooggzdobl") - .withMaxConcurrentConnections("datatcy") - .withDisableMetricsCollection("databhboplavgfb") - .withImportSettings(new TeradataImportCommand().withAdditionalFormatOptions("datan")); - model = BinaryData.fromObject(model).toObject(TeradataSink.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 82b238e8a88e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataSourceTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TeradataPartitionSettings; -import com.azure.resourcemanager.datafactory.models.TeradataSource; - -public final class TeradataSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataSource model = BinaryData.fromString( - "{\"type\":\"TeradataSource\",\"query\":\"datarfpnbyxy\",\"partitionOption\":\"databvidps\",\"partitionSettings\":{\"partitionColumnName\":\"datassxh\",\"partitionUpperBound\":\"datagliufdctgsd\",\"partitionLowerBound\":\"dataxkddxoatlprs\"},\"queryTimeout\":\"dataen\",\"additionalColumns\":\"datayyvvlgsa\",\"sourceRetryCount\":\"datavmnjtf\",\"sourceRetryWait\":\"datagx\",\"maxConcurrentConnections\":\"datarctbxpuis\",\"disableMetricsCollection\":\"dataamgnpeosusi\",\"\":{\"mwali\":\"dataofljab\"}}") - .toObject(TeradataSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataSource model = new TeradataSource().withSourceRetryCount("datavmnjtf") - .withSourceRetryWait("datagx") - .withMaxConcurrentConnections("datarctbxpuis") - .withDisableMetricsCollection("dataamgnpeosusi") - .withQueryTimeout("dataen") - .withAdditionalColumns("datayyvvlgsa") - .withQuery("datarfpnbyxy") - .withPartitionOption("databvidps") - .withPartitionSettings(new TeradataPartitionSettings().withPartitionColumnName("datassxh") - .withPartitionUpperBound("datagliufdctgsd") - .withPartitionLowerBound("dataxkddxoatlprs")); - model = BinaryData.fromObject(model).toObject(TeradataSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java deleted file mode 100644 index 2c8d19a44dfd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.TeradataTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TeradataTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataTableDataset model = BinaryData.fromString( - "{\"type\":\"TeradataTable\",\"typeProperties\":{\"database\":\"datairgcjfai\",\"table\":\"datalpj\"},\"description\":\"krxifqn\",\"structure\":\"dataorxsqtzngxbsale\",\"schema\":\"datauxcmmhipbvskc\",\"linkedServiceName\":{\"referenceName\":\"tlynkwfsaangfg\",\"parameters\":{\"idyli\":\"datavm\"}},\"parameters\":{\"eonmzrjjaojp\":{\"type\":\"Bool\",\"defaultValue\":\"datanacgdnx\"}},\"annotations\":[\"datad\",\"datazigecwsad\"],\"folder\":{\"name\":\"udd\"},\"\":{\"vyigdeipnf\":\"dataqdmohheuyuunxmy\"}}") - .toObject(TeradataTableDataset.class); - Assertions.assertEquals("krxifqn", model.description()); - Assertions.assertEquals("tlynkwfsaangfg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("eonmzrjjaojp").type()); - Assertions.assertEquals("udd", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDataset model = new TeradataTableDataset().withDescription("krxifqn") - .withStructure("dataorxsqtzngxbsale") - .withSchema("datauxcmmhipbvskc") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tlynkwfsaangfg") - .withParameters(mapOf("idyli", "datavm"))) - .withParameters(mapOf("eonmzrjjaojp", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("datanacgdnx"))) - .withAnnotations(Arrays.asList("datad", "datazigecwsad")) - .withFolder(new DatasetFolder().withName("udd")) - .withDatabase("datairgcjfai") - .withTable("datalpj"); - model = BinaryData.fromObject(model).toObject(TeradataTableDataset.class); - Assertions.assertEquals("krxifqn", model.description()); - Assertions.assertEquals("tlynkwfsaangfg", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.BOOL, model.parameters().get("eonmzrjjaojp").type()); - Assertions.assertEquals("udd", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java deleted file mode 100644 index 6414225df9fe..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TeradataTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TeradataTableDatasetTypeProperties; - -public final class TeradataTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TeradataTableDatasetTypeProperties model - = BinaryData.fromString("{\"database\":\"dataejwli\",\"table\":\"datacndjzwhajo\"}") - .toObject(TeradataTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TeradataTableDatasetTypeProperties model - = new TeradataTableDatasetTypeProperties().withDatabase("dataejwli").withTable("datacndjzwhajo"); - model = BinaryData.fromObject(model).toObject(TeradataTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java deleted file mode 100644 index ef9ef753f122..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TextFormatTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TextFormat; - -public final class TextFormatTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TextFormat model = BinaryData.fromString( - "{\"type\":\"TextFormat\",\"columnDelimiter\":\"datamgsdaluyckhefrbh\",\"rowDelimiter\":\"datauerbgpxebjl\",\"escapeChar\":\"datacaytujraxdtpryj\",\"quoteChar\":\"datatnsewou\",\"nullValue\":\"datayms\",\"encodingName\":\"datayljurkeposehqqyl\",\"treatEmptyAsNull\":\"datactwjwdsdlzm\",\"skipLineCount\":\"dataerxxxoteehkhowgo\",\"firstRowAsHeader\":\"datavhxowpcbapnpxra\",\"serializer\":\"datawbmpspfeylqloc\",\"deserializer\":\"dataujexayglxrk\",\"\":{\"jfiuofpi\":\"datamzpaslav\",\"kyhydvikmf\":\"dataidzlvssqywjopa\"}}") - .toObject(TextFormat.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TextFormat model = new TextFormat().withSerializer("datawbmpspfeylqloc") - .withDeserializer("dataujexayglxrk") - .withColumnDelimiter("datamgsdaluyckhefrbh") - .withRowDelimiter("datauerbgpxebjl") - .withEscapeChar("datacaytujraxdtpryj") - .withQuoteChar("datatnsewou") - .withNullValue("datayms") - .withEncodingName("datayljurkeposehqqyl") - .withTreatEmptyAsNull("datactwjwdsdlzm") - .withSkipLineCount("dataerxxxoteehkhowgo") - .withFirstRowAsHeader("datavhxowpcbapnpxra"); - model = BinaryData.fromObject(model).toObject(TextFormat.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java deleted file mode 100644 index ecf946390c41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TransformationTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.Transformation; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TransformationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Transformation model = BinaryData.fromString( - "{\"name\":\"i\",\"description\":\"cqibzj\",\"dataset\":{\"referenceName\":\"weebiphryv\",\"parameters\":{\"atjhdhzybspijhf\":\"dataqwoqs\",\"hsusmmor\":\"datazgdkkagvwu\",\"mriprlk\":\"datamzhwilzzhni\",\"cxiv\":\"dataneyttl\"}},\"linkedService\":{\"referenceName\":\"kutpu\",\"parameters\":{\"xynbpvzlqywa\":\"datawjfl\",\"njc\":\"datay\",\"u\":\"datahmocgjshg\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"wvixq\",\"datasetParameters\":\"datagljkybsj\",\"parameters\":{\"nrbctbhpjhxpcvrd\":\"datarvtz\",\"it\":\"datay\"},\"\":{\"zjahwriuomz\":\"dataqady\"}}}") - .toObject(Transformation.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("cqibzj", model.description()); - Assertions.assertEquals("weebiphryv", model.dataset().referenceName()); - Assertions.assertEquals("kutpu", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("wvixq", model.flowlet().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Transformation model = new Transformation().withName("i") - .withDescription("cqibzj") - .withDataset(new DatasetReference().withReferenceName("weebiphryv") - .withParameters(mapOf("atjhdhzybspijhf", "dataqwoqs", "hsusmmor", "datazgdkkagvwu", "mriprlk", - "datamzhwilzzhni", "cxiv", "dataneyttl"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("kutpu") - .withParameters(mapOf("xynbpvzlqywa", "datawjfl", "njc", "datay", "u", "datahmocgjshg"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("wvixq") - .withDatasetParameters("datagljkybsj") - .withParameters(mapOf("nrbctbhpjhxpcvrd", "datarvtz", "it", "datay")) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(Transformation.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("cqibzj", model.description()); - Assertions.assertEquals("weebiphryv", model.dataset().referenceName()); - Assertions.assertEquals("kutpu", model.linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.flowlet().type()); - Assertions.assertEquals("wvixq", model.flowlet().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java deleted file mode 100644 index 1609c718ec89..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerDependencyReferenceTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerDependencyReference; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class TriggerDependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerDependencyReference model = BinaryData.fromString( - "{\"type\":\"TriggerDependencyReference\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"wowu\"}}") - .toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("wowu", 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("wowu")); - model = BinaryData.fromObject(model).toObject(TriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("wowu", model.referenceTrigger().referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java deleted file mode 100644 index 114269913375..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerListResponseTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerListResponse model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"Trigger\",\"description\":\"fcjnaeoisrvhmgor\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datascvwmzhwplef\"],\"\":{\"xtjjfzqlqhycav\":\"dataxilcbtgnhnzey\",\"knlrariaawiuagy\":\"datadggxdbeesmi\"}},\"name\":\"qfby\",\"type\":\"rfgi\",\"etag\":\"tcojocqwo\",\"id\":\"nzjvusfzldm\"}],\"nextLink\":\"uxylfsbtkadpy\"}") - .toObject(TriggerListResponse.class); - Assertions.assertEquals("nzjvusfzldm", model.value().get(0).id()); - Assertions.assertEquals("fcjnaeoisrvhmgor", model.value().get(0).properties().description()); - Assertions.assertEquals("uxylfsbtkadpy", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerListResponse model = new TriggerListResponse() - .withValue(Arrays.asList(new TriggerResourceInner().withId("nzjvusfzldm") - .withProperties(new Trigger().withDescription("fcjnaeoisrvhmgor") - .withAnnotations(Arrays.asList("datascvwmzhwplef")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped"))))) - .withNextLink("uxylfsbtkadpy"); - model = BinaryData.fromObject(model).toObject(TriggerListResponse.class); - Assertions.assertEquals("nzjvusfzldm", model.value().get(0).id()); - Assertions.assertEquals("fcjnaeoisrvhmgor", model.value().get(0).properties().description()); - Assertions.assertEquals("uxylfsbtkadpy", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java deleted file mode 100644 index aae31ad30643..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerPipelineReferenceTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerPipelineReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerPipelineReference model = BinaryData.fromString( - "{\"pipelineReference\":{\"referenceName\":\"tnpdctuhspfefy\",\"name\":\"duyeuyl\"},\"parameters\":{\"h\":\"datamtybkcgsu\",\"fxexlfciatxtjrr\":\"datallnmwyn\",\"ajfoxc\":\"datakmdskjhhxd\",\"lxlhuavkrm\":\"datascv\"}}") - .toObject(TriggerPipelineReference.class); - Assertions.assertEquals("tnpdctuhspfefy", model.pipelineReference().referenceName()); - Assertions.assertEquals("duyeuyl", model.pipelineReference().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerPipelineReference model = new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("tnpdctuhspfefy").withName("duyeuyl")) - .withParameters(mapOf("h", "datamtybkcgsu", "fxexlfciatxtjrr", "datallnmwyn", "ajfoxc", "datakmdskjhhxd", - "lxlhuavkrm", "datascv")); - model = BinaryData.fromObject(model).toObject(TriggerPipelineReference.class); - Assertions.assertEquals("tnpdctuhspfefy", model.pipelineReference().referenceName()); - Assertions.assertEquals("duyeuyl", model.pipelineReference().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java deleted file mode 100644 index 6baa662cfac0..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerReferenceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class TriggerReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerReference model = BinaryData.fromString("{\"type\":\"TriggerReference\",\"referenceName\":\"meyn\"}") - .toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("meyn", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerReference model - = new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("meyn"); - model = BinaryData.fromObject(model).toObject(TriggerReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.type()); - Assertions.assertEquals("meyn", model.referenceName()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java deleted file mode 100644 index d59370c3b9dc..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerResourceInnerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerResourceInner; -import com.azure.resourcemanager.datafactory.models.Trigger; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"Trigger\",\"description\":\"wn\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datau\",\"datarj\"],\"\":{\"foj\":\"dataojcmisofieyp\"}},\"name\":\"dh\",\"type\":\"plcplcwkhi\",\"etag\":\"hlhzdsqtzbsrgno\",\"id\":\"jhf\"}") - .toObject(TriggerResourceInner.class); - Assertions.assertEquals("jhf", model.id()); - Assertions.assertEquals("wn", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerResourceInner model = new TriggerResourceInner().withId("jhf") - .withProperties(new Trigger().withDescription("wn") - .withAnnotations(Arrays.asList("datau", "datarj")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped"))); - model = BinaryData.fromObject(model).toObject(TriggerResourceInner.class); - Assertions.assertEquals("jhf", model.id()); - Assertions.assertEquals("wn", model.properties().description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java deleted file mode 100644 index 804af115424f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.TriggerRun; -import java.util.HashMap; -import java.util.Map; - -public final class TriggerRunTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerRun model = BinaryData.fromString( - "{\"triggerRunId\":\"zddrt\",\"triggerName\":\"doj\",\"triggerType\":\"xv\",\"triggerRunTimestamp\":\"2021-02-28T00:16:23Z\",\"status\":\"Succeeded\",\"message\":\"eesvecu\",\"properties\":{\"awddjibab\":\"xtxsuwprtujw\",\"tvtzeexavoxtfg\":\"vit\"},\"triggeredPipelines\":{\"pypqtgsfj\":\"dmdqb\"},\"runDimension\":{\"d\":\"slhhxudbxv\"},\"dependencyStatus\":{\"gzrcxfailcfxwmdb\":\"datasirudhzmmesckdlp\",\"lnacgcc\":\"dataxdfgsftufqobr\"},\"\":{\"lj\":\"datahxkizvytnrzv\"}}") - .toObject(TriggerRun.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerRun model = new TriggerRun() - .withAdditionalProperties(mapOf("triggerRunId", "zddrt", "triggerName", "doj", "runDimension", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"d\":\"slhhxudbxv\"}", Object.class, SerializerEncoding.JSON), - "dependencyStatus", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"gzrcxfailcfxwmdb\":\"datasirudhzmmesckdlp\",\"lnacgcc\":\"dataxdfgsftufqobr\"}", - Object.class, SerializerEncoding.JSON), - "triggeredPipelines", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"pypqtgsfj\":\"dmdqb\"}", Object.class, SerializerEncoding.JSON), - "triggerType", "xv", "triggerRunTimestamp", "2021-02-28T00:16:23Z", "message", "eesvecu", "properties", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("{\"awddjibab\":\"xtxsuwprtujw\",\"tvtzeexavoxtfg\":\"vit\"}", Object.class, - SerializerEncoding.JSON), - "status", "Succeeded")); - model = BinaryData.fromObject(model).toObject(TriggerRun.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.java deleted file mode 100644 index 0a248eed44ab..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelWithResponseMockTests.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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.triggerRuns() - .cancelWithResponse("ijyzhmf", "ksqiqzmgxunld", "k", "qcnjiwzqn", 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 a226f6e338db..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunWithResponseMockTests.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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.triggerRuns().rerunWithResponse("l", "lpqfxyywsx", "xvjvwk", "aqqkq", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java deleted file mode 100644 index b03bd1d8d1e3..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerSubscriptionOperationStatusInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TriggerSubscriptionOperationStatusInner; - -public final class TriggerSubscriptionOperationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerSubscriptionOperationStatusInner model - = BinaryData.fromString("{\"triggerName\":\"axhnfh\",\"status\":\"Enabled\"}") - .toObject(TriggerSubscriptionOperationStatusInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerSubscriptionOperationStatusInner model = new TriggerSubscriptionOperationStatusInner(); - model = BinaryData.fromObject(model).toObject(TriggerSubscriptionOperationStatusInner.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java deleted file mode 100644 index ce74ac195fdd..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Trigger; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Trigger model = BinaryData.fromString( - "{\"type\":\"Trigger\",\"description\":\"vecactx\",\"runtimeState\":\"Stopped\",\"annotations\":[\"datayowc\"],\"\":{\"zmpjwyiv\":\"dataovekqvgqouwi\",\"cvhrfsp\":\"dataikf\",\"kvyklxubyjaffmm\":\"datauagrttikteusqc\"}}") - .toObject(Trigger.class); - Assertions.assertEquals("vecactx", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Trigger model = new Trigger().withDescription("vecactx") - .withAnnotations(Arrays.asList("datayowc")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped")); - model = BinaryData.fromObject(model).toObject(Trigger.class); - Assertions.assertEquals("vecactx", model.description()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index f95800adcf5d..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Trigger\",\"description\":\"mm\",\"runtimeState\":\"Started\",\"annotations\":[\"datazfjlprljil\",\"datauavxidy\",\"datajmkfxzg\",\"datap\"],\"\":{\"fbreyvrlycikwqt\":\"datama\"}},\"name\":\"fryourlywxjvsqz\",\"type\":\"ysqy\",\"etag\":\"sqmikljc\",\"id\":\"ot\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - TriggerResource response = manager.triggers() - .define("sktzrdxxsbbdo") - .withExistingFactory("usxyugidkgsjivdt", "tkqqdqxslbrttlw") - .withProperties(new Trigger().withDescription("jnbcdnjexcyh") - .withAnnotations(Arrays.asList("dataraubx", "databmqgimwivqph")) - .withAdditionalProperties(mapOf("type", "Trigger", "runtimeState", "Stopped"))) - .withIfMatch("nyzytgkdw") - .create(); - - Assertions.assertEquals("ot", response.id()); - Assertions.assertEquals("mm", 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 c8a10f790d41..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.triggers().deleteWithResponse("ktuge", "hqdoctgno", "qw", 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 238bc91cd99f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"dfmz\",\"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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - TriggerSubscriptionOperationStatus response = manager.triggers() - .getEventSubscriptionStatusWithResponse("jybtwgdlfg", "uojnikwzlowusa", "dmjiz", - 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 8f98f09e8523..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"type\":\"Trigger\",\"description\":\"jjrhvdxfs\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datailsrxc\",\"datayk\",\"datavksvflurrfnlhlfv\"],\"\":{\"cblvpwuqq\":\"datahy\",\"rcxamgvi\":\"datamfuuhmftshg\",\"y\":\"datazvvrfplkemvvlge\",\"plhwplyvqofpemc\":\"datash\"}},\"name\":\"xkifjvil\",\"type\":\"opw\",\"etag\":\"bewbxaufo\",\"id\":\"mdpgg\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - TriggerResource response = manager.triggers() - .getWithResponse("zcvmr", "xebslausvbv", "ctiso", "fefyggbacmn", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mdpgg", response.id()); - Assertions.assertEquals("jjrhvdxfs", 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 d0a728b3d395..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datafactory.DataFactoryManager; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class TriggersListByFactoryMockTests { - @Test - public void testListByFactory() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"Trigger\",\"description\":\"ixxxgltqldlh\",\"runtimeState\":\"Disabled\",\"annotations\":[\"datald\"],\"\":{\"nogyvpfyjlfnjmwb\":\"datacajhnnbp\",\"rpwkvz\":\"dataoqhy\",\"tfc\":\"databvdlhcyoykmp\",\"fea\":\"dataugitjnwajqzig\"}},\"name\":\"bkcqoyqmbup\",\"type\":\"bzhczyhtjqtzl\",\"etag\":\"qp\",\"id\":\"c\"}]}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.triggers().listByFactory("gaeeqgpvirozl", "ccpg", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("c", response.iterator().next().id()); - Assertions.assertEquals("ixxxgltqldlh", 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 98ca57172ac6..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.triggers().start("qbc", "tlyyphtdwhmwxhv", "pumokmymspatpveb", 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 927fbcbfb27d..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.triggers().stop("esucrynsqxyow", "rbxejdwhrshlk", "wfpq", 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 25e122085ac4..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"fjwtyvvkn\",\"status\":\"Unknown\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - TriggerSubscriptionOperationStatus response = manager.triggers() - .subscribeToEvents("wtwjzzyi", "bbkly", "elvhxutctakkdjus", 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 c253aeaee9bb..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.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -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\":\"wetfmp\",\"status\":\"Unknown\"}"; - - 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - TriggerSubscriptionOperationStatus response = manager.triggers() - .unsubscribeFromEvents("cepxay", "wvpavutis", "wyclehagb", 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 2fbcc4ca3018..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerDependencyReferenceTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.TriggerReference; -import com.azure.resourcemanager.datafactory.models.TriggerReferenceType; -import com.azure.resourcemanager.datafactory.models.TumblingWindowTriggerDependencyReference; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerDependencyReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTriggerDependencyReference model = BinaryData.fromString( - "{\"type\":\"TumblingWindowTriggerDependencyReference\",\"offset\":\"ioc\",\"size\":\"irnwktbsck\",\"referenceTrigger\":{\"type\":\"TriggerReference\",\"referenceName\":\"gew\"}}") - .toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("gew", model.referenceTrigger().referenceName()); - Assertions.assertEquals("ioc", model.offset()); - Assertions.assertEquals("irnwktbsck", model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerDependencyReference model = new TumblingWindowTriggerDependencyReference() - .withReferenceTrigger( - new TriggerReference().withType(TriggerReferenceType.TRIGGER_REFERENCE).withReferenceName("gew")) - .withOffset("ioc") - .withSize("irnwktbsck"); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerDependencyReference.class); - Assertions.assertEquals(TriggerReferenceType.TRIGGER_REFERENCE, model.referenceTrigger().type()); - Assertions.assertEquals("gew", model.referenceTrigger().referenceName()); - Assertions.assertEquals("ioc", model.offset()); - Assertions.assertEquals("irnwktbsck", 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 352201c1a719..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTests.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.DependencyReference; -import com.azure.resourcemanager.datafactory.models.PipelineReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TriggerPipelineReference; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import com.azure.resourcemanager.datafactory.models.TumblingWindowTrigger; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTrigger model = BinaryData.fromString( - "{\"type\":\"TumblingWindowTrigger\",\"pipeline\":{\"pipelineReference\":{\"referenceName\":\"plolcalyvcxv\",\"name\":\"xdeqntblt\"},\"parameters\":{\"rmwdofgfspzwa\":\"dataqbyubswzaf\",\"wvjcdjvlwczw\":\"datacu\",\"fckrmrbaoidt\":\"datakkscooqnvht\",\"cbvkoughjsxp\":\"datam\"}},\"typeProperties\":{\"frequency\":\"Month\",\"interval\":189437887,\"startTime\":\"2021-11-09T02:05:30Z\",\"endTime\":\"2021-04-24T18:13:15Z\",\"delay\":\"datadnihx\",\"maxConcurrency\":1902437036,\"retryPolicy\":{\"count\":\"datatsbpvyvsc\",\"intervalInSeconds\":2016822910},\"dependsOn\":[{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"}]},\"description\":\"daqqklvyibrohfvb\",\"runtimeState\":\"Started\",\"annotations\":[\"datadlsanglwnkkzt\"],\"\":{\"hj\":\"dataj\",\"tyozwnpuyh\":\"dataqajyrhrywucpdzb\",\"rhabbdqnefofuj\":\"dataaylsmehlzplz\",\"rqkvufnphb\":\"datawqpkhgrdgyilo\"}}") - .toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("daqqklvyibrohfvb", model.description()); - Assertions.assertEquals("plolcalyvcxv", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("xdeqntblt", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(189437887, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-09T02:05:30Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-24T18:13:15Z"), model.endTime()); - Assertions.assertEquals(1902437036, model.maxConcurrency()); - Assertions.assertEquals(2016822910, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTrigger model = new TumblingWindowTrigger().withDescription("daqqklvyibrohfvb") - .withAnnotations(Arrays.asList("datadlsanglwnkkzt")) - .withPipeline(new TriggerPipelineReference() - .withPipelineReference(new PipelineReference().withReferenceName("plolcalyvcxv").withName("xdeqntblt")) - .withParameters(mapOf("rmwdofgfspzwa", "dataqbyubswzaf", "wvjcdjvlwczw", "datacu", "fckrmrbaoidt", - "datakkscooqnvht", "cbvkoughjsxp", "datam"))) - .withFrequency(TumblingWindowFrequency.MONTH) - .withInterval(189437887) - .withStartTime(OffsetDateTime.parse("2021-11-09T02:05:30Z")) - .withEndTime(OffsetDateTime.parse("2021-04-24T18:13:15Z")) - .withDelay("datadnihx") - .withMaxConcurrency(1902437036) - .withRetryPolicy(new RetryPolicy().withCount("datatsbpvyvsc").withIntervalInSeconds(2016822910)) - .withDependsOn(Arrays.asList(new DependencyReference(), new DependencyReference(), - new DependencyReference(), new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTrigger.class); - Assertions.assertEquals("daqqklvyibrohfvb", model.description()); - Assertions.assertEquals("plolcalyvcxv", model.pipeline().pipelineReference().referenceName()); - Assertions.assertEquals("xdeqntblt", model.pipeline().pipelineReference().name()); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(189437887, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-09T02:05:30Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-24T18:13:15Z"), model.endTime()); - Assertions.assertEquals(1902437036, model.maxConcurrency()); - Assertions.assertEquals(2016822910, 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 dcea03272fdf..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TumblingWindowTriggerTypePropertiesTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.TumblingWindowTriggerTypeProperties; -import com.azure.resourcemanager.datafactory.models.DependencyReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TumblingWindowTriggerTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TumblingWindowTriggerTypeProperties model = BinaryData.fromString( - "{\"frequency\":\"Month\",\"interval\":1833349868,\"startTime\":\"2021-04-12T19:53:08Z\",\"endTime\":\"2021-06-24T12:36:56Z\",\"delay\":\"datarglpaocqxdv\",\"maxConcurrency\":973676130,\"retryPolicy\":{\"count\":\"dataevuhagoq\",\"intervalInSeconds\":1987938250},\"dependsOn\":[{\"type\":\"DependencyReference\"},{\"type\":\"DependencyReference\"}]}") - .toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(1833349868, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-12T19:53:08Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T12:36:56Z"), model.endTime()); - Assertions.assertEquals(973676130, model.maxConcurrency()); - Assertions.assertEquals(1987938250, model.retryPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TumblingWindowTriggerTypeProperties model - = new TumblingWindowTriggerTypeProperties().withFrequency(TumblingWindowFrequency.MONTH) - .withInterval(1833349868) - .withStartTime(OffsetDateTime.parse("2021-04-12T19:53:08Z")) - .withEndTime(OffsetDateTime.parse("2021-06-24T12:36:56Z")) - .withDelay("datarglpaocqxdv") - .withMaxConcurrency(973676130) - .withRetryPolicy(new RetryPolicy().withCount("dataevuhagoq").withIntervalInSeconds(1987938250)) - .withDependsOn(Arrays.asList(new DependencyReference(), new DependencyReference())); - model = BinaryData.fromObject(model).toObject(TumblingWindowTriggerTypeProperties.class); - Assertions.assertEquals(TumblingWindowFrequency.MONTH, model.frequency()); - Assertions.assertEquals(1833349868, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-12T19:53:08Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T12:36:56Z"), model.endTime()); - Assertions.assertEquals(973676130, model.maxConcurrency()); - Assertions.assertEquals(1987938250, 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 9e7fbb42ac41..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/TypeConversionSettingsTests.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.TypeConversionSettings; - -public final class TypeConversionSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TypeConversionSettings model = BinaryData.fromString( - "{\"allowDataTruncation\":\"datacdugnzymljgayka\",\"treatBooleanAsNumber\":\"datankxoqecjznuqg\",\"dateTimeFormat\":\"datavmuewshhq\",\"dateTimeOffsetFormat\":\"datavchliezfbtczzjf\",\"timeSpanFormat\":\"dataovwizjraks\",\"timeFormat\":\"datawqpukltfk\",\"dateFormat\":\"dataoxmisnbzczpfvqt\",\"culture\":\"datakcfe\"}") - .toObject(TypeConversionSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TypeConversionSettings model = new TypeConversionSettings().withAllowDataTruncation("datacdugnzymljgayka") - .withTreatBooleanAsNumber("datankxoqecjznuqg") - .withDateTimeFormat("datavmuewshhq") - .withDateTimeOffsetFormat("datavchliezfbtczzjf") - .withTimeSpanFormat("dataovwizjraks") - .withTimeFormat("datawqpukltfk") - .withDateFormat("dataoxmisnbzczpfvqt") - .withCulture("datakcfe"); - 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 a7e3838baeef..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTests.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.UntilActivity; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class UntilActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UntilActivity model = BinaryData.fromString( - "{\"type\":\"Until\",\"typeProperties\":{\"expression\":{\"value\":\"udfixhxl\"},\"timeout\":\"datazqhtgtadtootkgxx\",\"activities\":[{\"type\":\"Activity\",\"name\":\"enlqwxskltzzp\",\"description\":\"wgtmpytomftubh\",\"state\":\"Inactive\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"yj\",\"dependencyConditions\":[\"Succeeded\"],\"\":{\"llihwpsrdaoixgqt\":\"datazdazxfz\",\"ix\":\"datasjnlekotqhd\"}},{\"activity\":\"nchyoimt\",\"dependencyConditions\":[\"Skipped\",\"Completed\",\"Succeeded\"],\"\":{\"bgclgby\":\"datawxeknhvccxuntghw\",\"kcqvhwzeukumlnfx\":\"datacbc\",\"iywzgvcmuiqir\":\"dataoqvgw\",\"zbnqmxirspj\":\"datasznxz\"}},{\"activity\":\"akrbew\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Succeeded\"],\"\":{\"xgmzyqftlafeco\":\"dataourwvgnsdluqu\",\"za\":\"datafnxtynus\"}}],\"userProperties\":[{\"name\":\"t\",\"value\":\"datanylkwb\"}],\"\":{\"egu\":\"datajfjuzwi\",\"zyyyl\":\"datazlmhpuqlsdwtejx\",\"qpccp\":\"dataxu\",\"hogjaubpl\":\"dataychob\"}}]},\"name\":\"zjglfrwymwujt\",\"description\":\"d\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Failed\",\"dependsOn\":[{\"activity\":\"ljytyqbtij\",\"dependencyConditions\":[\"Completed\"],\"\":{\"rsrgbfaq\":\"datagclppwdfxhz\"}},{\"activity\":\"zakisipjgvmrb\",\"dependencyConditions\":[\"Succeeded\",\"Succeeded\",\"Completed\",\"Failed\"],\"\":{\"ffgconiydgnxs\":\"dataxuubwjopkldubqfb\",\"s\":\"datayytnmhlank\",\"khkiaybdivx\":\"datafvmfyxle\",\"zndlgq\":\"dataxwdfm\"}}],\"userProperties\":[{\"name\":\"jczcorct\",\"value\":\"datawtxaaf\"},{\"name\":\"vqhmsdodmrzsni\",\"value\":\"datakhbmwlfo\"},{\"name\":\"yt\",\"value\":\"datajphzxmcpsepkrdge\"}],\"\":{\"bp\":\"dataxkpxrfulqhhmnd\",\"jmel\":\"datadg\",\"gfaiyvmpfebsummy\":\"datakzmfmgboyliopbo\",\"ckuhgbrvh\":\"datarxnneqxsdupmr\"}}") - .toObject(UntilActivity.class); - Assertions.assertEquals("zjglfrwymwujt", model.name()); - Assertions.assertEquals("d", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ljytyqbtij", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jczcorct", model.userProperties().get(0).name()); - Assertions.assertEquals("udfixhxl", model.expression().value()); - Assertions.assertEquals("enlqwxskltzzp", model.activities().get(0).name()); - Assertions.assertEquals("wgtmpytomftubh", 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("yj", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("t", model.activities().get(0).userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UntilActivity model = new UntilActivity().withName("zjglfrwymwujt") - .withDescription("d") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.FAILED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ljytyqbtij") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("zakisipjgvmrb") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("jczcorct").withValue("datawtxaaf"), - new UserProperty().withName("vqhmsdodmrzsni").withValue("datakhbmwlfo"), - new UserProperty().withName("yt").withValue("datajphzxmcpsepkrdge"))) - .withExpression(new Expression().withValue("udfixhxl")) - .withTimeout("datazqhtgtadtootkgxx") - .withActivities(Arrays.asList(new Activity().withName("enlqwxskltzzp") - .withDescription("wgtmpytomftubh") - .withState(ActivityState.INACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("yj") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("nchyoimt") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, - DependencyCondition.COMPLETED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("akrbew") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, - DependencyCondition.SUCCEEDED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("t").withValue("datanylkwb"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(UntilActivity.class); - Assertions.assertEquals("zjglfrwymwujt", model.name()); - Assertions.assertEquals("d", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.FAILED, model.onInactiveMarkAs()); - Assertions.assertEquals("ljytyqbtij", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("jczcorct", model.userProperties().get(0).name()); - Assertions.assertEquals("udfixhxl", model.expression().value()); - Assertions.assertEquals("enlqwxskltzzp", model.activities().get(0).name()); - Assertions.assertEquals("wgtmpytomftubh", 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("yj", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.SUCCEEDED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("t", 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 473ee8b21903..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UntilActivityTypePropertiesTests.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.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\":\"skos\"},\"timeout\":\"datavclzutvqk\",\"activities\":[{\"type\":\"Activity\",\"name\":\"jm\",\"description\":\"fskqwjlohkaffyny\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Succeeded\",\"dependsOn\":[{\"activity\":\"yijxkucxpqpax\",\"dependencyConditions\":[\"Failed\",\"Completed\",\"Failed\"],\"\":{\"ftiwbdm\":\"dataiufjnjgupjjppbal\",\"xgo\":\"datanuvawm\",\"yza\":\"datapzqrb\",\"qzmwxoogi\":\"datawrufiouafxp\"}}],\"userProperties\":[{\"name\":\"plzb\",\"value\":\"datavpuigtnjye\"},{\"name\":\"fvvi\",\"value\":\"dataxoitnqmiwlrijex\"}],\"\":{\"pyk\":\"datayve\",\"v\":\"datahrqusbtw\",\"vkxshkyluqxndmta\":\"datazgnxepapm\"}}]}") - .toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("skos", model.expression().value()); - Assertions.assertEquals("jm", model.activities().get(0).name()); - Assertions.assertEquals("fskqwjlohkaffyny", 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("yijxkucxpqpax", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("plzb", 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("skos")) - .withTimeout("datavclzutvqk") - .withActivities(Arrays.asList(new Activity().withName("jm") - .withDescription("fskqwjlohkaffyny") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SUCCEEDED) - .withDependsOn(Arrays.asList(new ActivityDependency().withActivity("yijxkucxpqpax") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, - DependencyCondition.COMPLETED, DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("plzb").withValue("datavpuigtnjye"), - new UserProperty().withName("fvvi").withValue("dataxoitnqmiwlrijex"))) - .withAdditionalProperties(mapOf("type", "Activity")))); - model = BinaryData.fromObject(model).toObject(UntilActivityTypeProperties.class); - Assertions.assertEquals("skos", model.expression().value()); - Assertions.assertEquals("jm", model.activities().get(0).name()); - Assertions.assertEquals("fskqwjlohkaffyny", 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("yijxkucxpqpax", model.activities().get(0).dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, - model.activities().get(0).dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("plzb", model.activities().get(0).userProperties().get(0).name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java deleted file mode 100644 index 834e5594e041..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeNodeRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeNodeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model = BinaryData.fromString("{\"concurrentJobsLimit\":712721872}") - .toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(712721872, model.concurrentJobsLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model - = new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(712721872); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(712721872, model.concurrentJobsLimit()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java deleted file mode 100644 index beb669b3500a..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UpdateIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeRequest model - = BinaryData.fromString("{\"autoUpdate\":\"On\",\"updateDelayOffset\":\"cwscwsvlx\"}") - .toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("cwscwsvlx", model.updateDelayOffset()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeRequest model - = new UpdateIntegrationRuntimeRequest().withAutoUpdate(IntegrationRuntimeAutoUpdate.ON) - .withUpdateDelayOffset("cwscwsvlx"); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.ON, model.autoUpdate()); - Assertions.assertEquals("cwscwsvlx", model.updateDelayOffset()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java deleted file mode 100644 index efcb128294b1..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserAccessPolicyTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; -import org.junit.jupiter.api.Assertions; - -public final class UserAccessPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAccessPolicy model = BinaryData.fromString( - "{\"permissions\":\"eputtmrywnuzoqf\",\"accessResourcePath\":\"yqzrnkcqvyxlw\",\"profileName\":\"lsicohoqqnwv\",\"startTime\":\"yav\",\"expireTime\":\"heun\"}") - .toObject(UserAccessPolicy.class); - Assertions.assertEquals("eputtmrywnuzoqf", model.permissions()); - Assertions.assertEquals("yqzrnkcqvyxlw", model.accessResourcePath()); - Assertions.assertEquals("lsicohoqqnwv", model.profileName()); - Assertions.assertEquals("yav", model.startTime()); - Assertions.assertEquals("heun", model.expireTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAccessPolicy model = new UserAccessPolicy().withPermissions("eputtmrywnuzoqf") - .withAccessResourcePath("yqzrnkcqvyxlw") - .withProfileName("lsicohoqqnwv") - .withStartTime("yav") - .withExpireTime("heun"); - model = BinaryData.fromObject(model).toObject(UserAccessPolicy.class); - Assertions.assertEquals("eputtmrywnuzoqf", model.permissions()); - Assertions.assertEquals("yqzrnkcqvyxlw", model.accessResourcePath()); - Assertions.assertEquals("lsicohoqqnwv", model.profileName()); - Assertions.assertEquals("yav", model.startTime()); - Assertions.assertEquals("heun", model.expireTime()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java deleted file mode 100644 index 32c7454a906c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/UserPropertyTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import org.junit.jupiter.api.Assertions; - -public final class UserPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserProperty model - = BinaryData.fromString("{\"name\":\"orwmduvwpklv\",\"value\":\"dataw\"}").toObject(UserProperty.class); - Assertions.assertEquals("orwmduvwpklv", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserProperty model = new UserProperty().withName("orwmduvwpklv").withValue("dataw"); - model = BinaryData.fromObject(model).toObject(UserProperty.class); - Assertions.assertEquals("orwmduvwpklv", model.name()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java deleted file mode 100644 index a3851e40e690..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ValidationActivityTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.ValidationActivity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ValidationActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidationActivity model = BinaryData.fromString( - "{\"type\":\"Validation\",\"typeProperties\":{\"timeout\":\"datasnbttefbbr\",\"sleep\":\"dataof\",\"minimumSize\":\"datashozjkwjwvdo\",\"childItems\":\"datacsgktfzstyacbek\",\"dataset\":{\"referenceName\":\"xev\",\"parameters\":{\"yhexlhlkpied\":\"datab\",\"zpynedtsibtdmgw\":\"datartvdc\",\"aawehxshamzfx\":\"datao\"}}},\"name\":\"cuvj\",\"description\":\"yvoswgkbzrmef\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ia\",\"dependencyConditions\":[\"Completed\"],\"\":{\"eykvgfhu\":\"dataghnqe\",\"rytkmfhbpcr\":\"datahotzygqdcaims\",\"sn\":\"dataynunrajtbumaid\"}},{\"activity\":\"vyutcvumvgttjvc\",\"dependencyConditions\":[\"Skipped\"],\"\":{\"gx\":\"datanj\",\"kdqqombiao\":\"dataxkcen\"}}],\"userProperties\":[{\"name\":\"woixnuffraursqt\",\"value\":\"datahtqbh\"},{\"name\":\"dpnzqqti\",\"value\":\"datakreanakkg\"},{\"name\":\"fkigukfximwinway\",\"value\":\"datarlvhlferiqend\"},{\"name\":\"yc\",\"value\":\"datanghszgaubibizj\"}],\"\":{\"bpypwrvnv\":\"datafjogswfbqe\",\"bsx\":\"dataetaydhfgxyd\",\"t\":\"datahjsraumawfzyvxk\"}}") - .toObject(ValidationActivity.class); - Assertions.assertEquals("cuvj", model.name()); - Assertions.assertEquals("yvoswgkbzrmef", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ia", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("woixnuffraursqt", model.userProperties().get(0).name()); - Assertions.assertEquals("xev", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivity model = new ValidationActivity().withName("cuvj") - .withDescription("yvoswgkbzrmef") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ia") - .withDependencyConditions(Arrays.asList(DependencyCondition.COMPLETED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("vyutcvumvgttjvc") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties(Arrays.asList(new UserProperty().withName("woixnuffraursqt").withValue("datahtqbh"), - new UserProperty().withName("dpnzqqti").withValue("datakreanakkg"), - new UserProperty().withName("fkigukfximwinway").withValue("datarlvhlferiqend"), - new UserProperty().withName("yc").withValue("datanghszgaubibizj"))) - .withTimeout("datasnbttefbbr") - .withSleep("dataof") - .withMinimumSize("datashozjkwjwvdo") - .withChildItems("datacsgktfzstyacbek") - .withDataset(new DatasetReference().withReferenceName("xev") - .withParameters( - mapOf("yhexlhlkpied", "datab", "zpynedtsibtdmgw", "datartvdc", "aawehxshamzfx", "datao"))); - model = BinaryData.fromObject(model).toObject(ValidationActivity.class); - Assertions.assertEquals("cuvj", model.name()); - Assertions.assertEquals("yvoswgkbzrmef", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ia", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.COMPLETED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("woixnuffraursqt", model.userProperties().get(0).name()); - Assertions.assertEquals("xev", 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 ada27ab8d734..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\":\"dataf\",\"sleep\":\"datarhoujkcpyerf\",\"minimumSize\":\"datagtrijbolksehty\",\"childItems\":\"datagsurfnktxht\",\"dataset\":{\"referenceName\":\"rzdqqo\",\"parameters\":{\"dkqwffcv\":\"dataaltccttjibognhu\",\"bhkqgbijzo\":\"datahknvnfppw\",\"lscnknkukempa\":\"dataxuti\",\"kstkankzyqizxujl\":\"datavajbgpu\"}}}") - .toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("rzdqqo", model.dataset().referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationActivityTypeProperties model = new ValidationActivityTypeProperties().withTimeout("dataf") - .withSleep("datarhoujkcpyerf") - .withMinimumSize("datagtrijbolksehty") - .withChildItems("datagsurfnktxht") - .withDataset(new DatasetReference().withReferenceName("rzdqqo") - .withParameters(mapOf("dkqwffcv", "dataaltccttjibognhu", "bhkqgbijzo", "datahknvnfppw", "lscnknkukempa", - "dataxuti", "kstkankzyqizxujl", "datavajbgpu"))); - model = BinaryData.fromObject(model).toObject(ValidationActivityTypeProperties.class); - Assertions.assertEquals("rzdqqo", model.dataset().referenceName()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java deleted file mode 100644 index 822451945f5d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VariableSpecificationTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import org.junit.jupiter.api.Assertions; - -public final class VariableSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VariableSpecification model - = BinaryData.fromString("{\"type\":\"String\",\"defaultValue\":\"datadxpgpqchiszepnnb\"}") - .toObject(VariableSpecification.class); - Assertions.assertEquals(VariableType.STRING, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VariableSpecification model - = new VariableSpecification().withType(VariableType.STRING).withDefaultValue("datadxpgpqchiszepnnb"); - model = BinaryData.fromObject(model).toObject(VariableSpecification.class); - Assertions.assertEquals(VariableType.STRING, model.type()); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java deleted file mode 100644 index c3ca40e60294..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaDatasetTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.VerticaDatasetTypeProperties; - -public final class VerticaDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaDatasetTypeProperties model = BinaryData - .fromString( - "{\"tableName\":\"datafhlzzgaps\",\"table\":\"datawwblscrmzqu\",\"schema\":\"dataywkgouxnroy\"}") - .toObject(VerticaDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaDatasetTypeProperties model = new VerticaDatasetTypeProperties().withTableName("datafhlzzgaps") - .withTable("datawwblscrmzqu") - .withSchema("dataywkgouxnroy"); - model = BinaryData.fromObject(model).toObject(VerticaDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java deleted file mode 100644 index 902cf11bc7d9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.VerticaSource; - -public final class VerticaSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaSource model = BinaryData.fromString( - "{\"type\":\"VerticaSource\",\"query\":\"datapubsdinfauyt\",\"queryTimeout\":\"datavsdyqyjkmfo\",\"additionalColumns\":\"datamxedlcxm\",\"sourceRetryCount\":\"datatpbapojknvxantlp\",\"sourceRetryWait\":\"dataiipfgdnqpkvvrho\",\"maxConcurrentConnections\":\"datavqdvnruoduex\",\"disableMetricsCollection\":\"datakhkqlvocrddqxheg\",\"\":{\"zcklqrunqw\":\"datah\",\"pywgjgfbsfsvayg\":\"datarkkabyxxyfn\"}}") - .toObject(VerticaSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaSource model = new VerticaSource().withSourceRetryCount("datatpbapojknvxantlp") - .withSourceRetryWait("dataiipfgdnqpkvvrho") - .withMaxConcurrentConnections("datavqdvnruoduex") - .withDisableMetricsCollection("datakhkqlvocrddqxheg") - .withQueryTimeout("datavsdyqyjkmfo") - .withAdditionalColumns("datamxedlcxm") - .withQuery("datapubsdinfauyt"); - model = BinaryData.fromObject(model).toObject(VerticaSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java deleted file mode 100644 index 2287d0716e3d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/VerticaTableDatasetTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.VerticaTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VerticaTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VerticaTableDataset model = BinaryData.fromString( - "{\"type\":\"VerticaTable\",\"typeProperties\":{\"tableName\":\"datakuobclobnaqeizpl\",\"table\":\"datalyugpnn\",\"schema\":\"datajmkffeonmnvmu\"},\"description\":\"iqywlpxmliyt\",\"structure\":\"datagcrun\",\"schema\":\"datailxstekb\",\"linkedServiceName\":{\"referenceName\":\"rhyvs\",\"parameters\":{\"kltrvgioguoxc\":\"datariemorszffi\",\"gxgrggy\":\"datadqoxhdenmj\"}},\"parameters\":{\"xvvmrnjrdi\":{\"type\":\"Float\",\"defaultValue\":\"dataqinr\"},\"gcmpnc\":{\"type\":\"Bool\",\"defaultValue\":\"dataqswsychdcj\"}},\"annotations\":[\"datagbnoqnowvfxe\"],\"folder\":{\"name\":\"gwjekyqirvcpoln\"},\"\":{\"v\":\"datappdilb\"}}") - .toObject(VerticaTableDataset.class); - Assertions.assertEquals("iqywlpxmliyt", model.description()); - Assertions.assertEquals("rhyvs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("xvvmrnjrdi").type()); - Assertions.assertEquals("gwjekyqirvcpoln", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VerticaTableDataset model = new VerticaTableDataset().withDescription("iqywlpxmliyt") - .withStructure("datagcrun") - .withSchema("datailxstekb") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rhyvs") - .withParameters(mapOf("kltrvgioguoxc", "datariemorszffi", "gxgrggy", "datadqoxhdenmj"))) - .withParameters(mapOf("xvvmrnjrdi", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataqinr"), "gcmpnc", - new ParameterSpecification().withType(ParameterType.BOOL).withDefaultValue("dataqswsychdcj"))) - .withAnnotations(Arrays.asList("datagbnoqnowvfxe")) - .withFolder(new DatasetFolder().withName("gwjekyqirvcpoln")) - .withTableName("datakuobclobnaqeizpl") - .withTable("datalyugpnn") - .withSchemaTypePropertiesSchema("datajmkffeonmnvmu"); - model = BinaryData.fromObject(model).toObject(VerticaTableDataset.class); - Assertions.assertEquals("iqywlpxmliyt", model.description()); - Assertions.assertEquals("rhyvs", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("xvvmrnjrdi").type()); - Assertions.assertEquals("gwjekyqirvcpoln", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.java deleted file mode 100644 index 00585d26df89..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WaitActivityTests.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.ActivityDependency; -import com.azure.resourcemanager.datafactory.models.ActivityOnInactiveMarkAs; -import com.azure.resourcemanager.datafactory.models.ActivityState; -import com.azure.resourcemanager.datafactory.models.DependencyCondition; -import com.azure.resourcemanager.datafactory.models.UserProperty; -import com.azure.resourcemanager.datafactory.models.WaitActivity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WaitActivityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WaitActivity model = BinaryData.fromString( - "{\"type\":\"Wait\",\"typeProperties\":{\"waitTimeInSeconds\":\"dataqqsbjbshwxyfskj\"},\"name\":\"ejkmltwftlh\",\"description\":\"tkxziowutcyj\",\"state\":\"Active\",\"onInactiveMarkAs\":\"Skipped\",\"dependsOn\":[{\"activity\":\"ohregqvus\",\"dependencyConditions\":[\"Failed\",\"Failed\",\"Failed\"],\"\":{\"wooorrn\":\"datavhmmirvmp\",\"cyltrxw\":\"datasthninzatdm\",\"b\":\"databw\"}},{\"activity\":\"lqgteoepdpx\",\"dependencyConditions\":[\"Succeeded\",\"Skipped\",\"Failed\"],\"\":{\"m\":\"dataqixomonqqqikeam\",\"g\":\"datalvoyd\",\"ccco\":\"datalcc\",\"vmzpoi\":\"datanljzqv\"}},{\"activity\":\"h\",\"dependencyConditions\":[\"Skipped\",\"Succeeded\"],\"\":{\"hydwkd\":\"datadkhvxtxu\",\"ydtllpwzayau\":\"dataycpzqjpyquy\",\"kfplhrenedsnu\":\"dataell\",\"skn\":\"datair\"}}],\"userProperties\":[{\"name\":\"vptoktrjwnqfdgc\",\"value\":\"datafngktmzooszv\"},{\"name\":\"ngkkf\",\"value\":\"dataebwqz\"}],\"\":{\"pidb\":\"datatyeqeasiadscjha\",\"lcowb\":\"dataqvi\",\"w\":\"datapvmndqmzcgqedono\",\"eaahnkntldddk\":\"datawhvqkeuiy\"}}") - .toObject(WaitActivity.class); - Assertions.assertEquals("ejkmltwftlh", model.name()); - Assertions.assertEquals("tkxziowutcyj", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ohregqvus", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vptoktrjwnqfdgc", model.userProperties().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivity model = new WaitActivity().withName("ejkmltwftlh") - .withDescription("tkxziowutcyj") - .withState(ActivityState.ACTIVE) - .withOnInactiveMarkAs(ActivityOnInactiveMarkAs.SKIPPED) - .withDependsOn(Arrays.asList( - new ActivityDependency().withActivity("ohregqvus") - .withDependencyConditions(Arrays.asList(DependencyCondition.FAILED, DependencyCondition.FAILED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("lqgteoepdpx") - .withDependencyConditions(Arrays.asList(DependencyCondition.SUCCEEDED, DependencyCondition.SKIPPED, - DependencyCondition.FAILED)) - .withAdditionalProperties(mapOf()), - new ActivityDependency().withActivity("h") - .withDependencyConditions(Arrays.asList(DependencyCondition.SKIPPED, DependencyCondition.SUCCEEDED)) - .withAdditionalProperties(mapOf()))) - .withUserProperties( - Arrays.asList(new UserProperty().withName("vptoktrjwnqfdgc").withValue("datafngktmzooszv"), - new UserProperty().withName("ngkkf").withValue("dataebwqz"))) - .withWaitTimeInSeconds("dataqqsbjbshwxyfskj"); - model = BinaryData.fromObject(model).toObject(WaitActivity.class); - Assertions.assertEquals("ejkmltwftlh", model.name()); - Assertions.assertEquals("tkxziowutcyj", model.description()); - Assertions.assertEquals(ActivityState.ACTIVE, model.state()); - Assertions.assertEquals(ActivityOnInactiveMarkAs.SKIPPED, model.onInactiveMarkAs()); - Assertions.assertEquals("ohregqvus", model.dependsOn().get(0).activity()); - Assertions.assertEquals(DependencyCondition.FAILED, model.dependsOn().get(0).dependencyConditions().get(0)); - Assertions.assertEquals("vptoktrjwnqfdgc", 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 91d1f007bdea..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\":\"datapvusigw\"}") - .toObject(WaitActivityTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WaitActivityTypeProperties model = new WaitActivityTypeProperties().withWaitTimeInSeconds("datapvusigw"); - 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 ee33cc5eaae9..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSinkTests.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.DWCopyCommandDefaultValue; -import com.azure.resourcemanager.datafactory.models.DWCopyCommandSettings; -import com.azure.resourcemanager.datafactory.models.WarehouseSink; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WarehouseSinkTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseSink model = BinaryData.fromString( - "{\"type\":\"WarehouseSink\",\"preCopyScript\":\"dataerltlhcjgjuopvk\",\"allowCopyCommand\":\"dataspksfxdmbxfyxw\",\"copyCommandSettings\":{\"defaultValues\":[{\"columnName\":\"datafyvkxgoxsv\",\"defaultValue\":\"dataucuxwnoj\"},{\"columnName\":\"datargqmbnfvyg\",\"defaultValue\":\"datadcf\"}],\"additionalOptions\":{\"vcksznngguucpyt\":\"psy\",\"lbcc\":\"xnujwffthbziieo\",\"au\":\"c\"}},\"tableOption\":\"datadevjrbgc\",\"writeBehavior\":\"dataqgsteeksbksv\",\"writeBatchSize\":\"datavoi\",\"writeBatchTimeout\":\"datavuqwljmzpyu\",\"sinkRetryCount\":\"dataw\",\"sinkRetryWait\":\"datahcgtctnq\",\"maxConcurrentConnections\":\"datago\",\"disableMetricsCollection\":\"datace\",\"\":{\"sklkw\":\"datatputmt\",\"mfxldqtm\":\"datanqqiqc\",\"ejnemrfqjhc\":\"datan\",\"lezbfgul\":\"datap\"}}") - .toObject(WarehouseSink.class); - Assertions.assertEquals("psy", model.copyCommandSettings().additionalOptions().get("vcksznngguucpyt")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseSink model - = new WarehouseSink().withWriteBatchSize("datavoi") - .withWriteBatchTimeout("datavuqwljmzpyu") - .withSinkRetryCount("dataw") - .withSinkRetryWait("datahcgtctnq") - .withMaxConcurrentConnections("datago") - .withDisableMetricsCollection("datace") - .withPreCopyScript("dataerltlhcjgjuopvk") - .withAllowCopyCommand("dataspksfxdmbxfyxw") - .withCopyCommandSettings(new DWCopyCommandSettings() - .withDefaultValues(Arrays.asList( - new DWCopyCommandDefaultValue().withColumnName("datafyvkxgoxsv") - .withDefaultValue("dataucuxwnoj"), - new DWCopyCommandDefaultValue().withColumnName("datargqmbnfvyg").withDefaultValue("datadcf"))) - .withAdditionalOptions(mapOf("vcksznngguucpyt", "psy", "lbcc", "xnujwffthbziieo", "au", "c"))) - .withTableOption("datadevjrbgc") - .withWriteBehavior("dataqgsteeksbksv"); - model = BinaryData.fromObject(model).toObject(WarehouseSink.class); - Assertions.assertEquals("psy", model.copyCommandSettings().additionalOptions().get("vcksznngguucpyt")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[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 b651175f1c6c..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseSourceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.SqlPartitionSettings; -import com.azure.resourcemanager.datafactory.models.WarehouseSource; - -public final class WarehouseSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseSource model = BinaryData.fromString( - "{\"type\":\"WarehouseSource\",\"sqlReaderQuery\":\"datalevpdbirhgjm\",\"sqlReaderStoredProcedureName\":\"datayacdhjmpnvgkx\",\"storedProcedureParameters\":\"datahljtkuyvytfuq\",\"isolationLevel\":\"datatqbxpy\",\"partitionOption\":\"datawkjeitkfhzv\",\"partitionSettings\":{\"partitionColumnName\":\"datadbkl\",\"partitionUpperBound\":\"dataokafaq\",\"partitionLowerBound\":\"datapvnvdzssssn\"},\"queryTimeout\":\"datahgid\",\"additionalColumns\":\"dataotx\",\"sourceRetryCount\":\"databxzhad\",\"sourceRetryWait\":\"datajnnoot\",\"maxConcurrentConnections\":\"datayupaqdoodhnzkmj\",\"disableMetricsCollection\":\"databyogwjr\",\"\":{\"e\":\"datarykkhxawohs\",\"lweyzvrixcv\":\"dataxph\"}}") - .toObject(WarehouseSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseSource model = new WarehouseSource().withSourceRetryCount("databxzhad") - .withSourceRetryWait("datajnnoot") - .withMaxConcurrentConnections("datayupaqdoodhnzkmj") - .withDisableMetricsCollection("databyogwjr") - .withQueryTimeout("datahgid") - .withAdditionalColumns("dataotx") - .withSqlReaderQuery("datalevpdbirhgjm") - .withSqlReaderStoredProcedureName("datayacdhjmpnvgkx") - .withStoredProcedureParameters("datahljtkuyvytfuq") - .withIsolationLevel("datatqbxpy") - .withPartitionOption("datawkjeitkfhzv") - .withPartitionSettings(new SqlPartitionSettings().withPartitionColumnName("datadbkl") - .withPartitionUpperBound("dataokafaq") - .withPartitionLowerBound("datapvnvdzssssn")); - model = BinaryData.fromObject(model).toObject(WarehouseSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.java deleted file mode 100644 index 0c8a634bf726..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WarehouseTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WarehouseTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseTableDataset model = BinaryData.fromString( - "{\"type\":\"WarehouseTable\",\"typeProperties\":{\"schema\":\"datajpj\",\"table\":\"datajdtuodoc\"},\"description\":\"u\",\"structure\":\"datanyxpmqd\",\"schema\":\"dataniiontqikdipkxs\",\"linkedServiceName\":{\"referenceName\":\"kuzabrsoih\",\"parameters\":{\"oadoh\":\"datajdtacvsynssxylsu\",\"wlxqdsxip\":\"datajyiehkxgfuzqqnz\",\"wwgze\":\"datanlbyitfz\",\"joygyn\":\"datalzpiimxacrk\"}},\"parameters\":{\"lquarbruvqb\":{\"type\":\"Object\",\"defaultValue\":\"databbnu\"}},\"annotations\":[\"datawrmu\",\"datazpexzbhgjaj\"],\"folder\":{\"name\":\"koc\"},\"\":{\"vnatbgvlpgf\":\"datadzl\",\"akybepsihz\":\"datagen\",\"gl\":\"dataieoymp\",\"zlycxlubrukhqb\":\"datajsfgbyyts\"}}") - .toObject(WarehouseTableDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("kuzabrsoih", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lquarbruvqb").type()); - Assertions.assertEquals("koc", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseTableDataset model = new WarehouseTableDataset().withDescription("u") - .withStructure("datanyxpmqd") - .withSchema("dataniiontqikdipkxs") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("kuzabrsoih") - .withParameters(mapOf("oadoh", "datajdtacvsynssxylsu", "wlxqdsxip", "datajyiehkxgfuzqqnz", "wwgze", - "datanlbyitfz", "joygyn", "datalzpiimxacrk"))) - .withParameters(mapOf("lquarbruvqb", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("databbnu"))) - .withAnnotations(Arrays.asList("datawrmu", "datazpexzbhgjaj")) - .withFolder(new DatasetFolder().withName("koc")) - .withSchemaTypePropertiesSchema("datajpj") - .withTable("datajdtuodoc"); - model = BinaryData.fromObject(model).toObject(WarehouseTableDataset.class); - Assertions.assertEquals("u", model.description()); - Assertions.assertEquals("kuzabrsoih", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("lquarbruvqb").type()); - Assertions.assertEquals("koc", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.java deleted file mode 100644 index c65e7a784da7..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WarehouseTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.WarehouseTableDatasetTypeProperties; - -public final class WarehouseTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WarehouseTableDatasetTypeProperties model - = BinaryData.fromString("{\"schema\":\"datayrbdkgqdmvvvjm\",\"table\":\"datajf\"}") - .toObject(WarehouseTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WarehouseTableDatasetTypeProperties model - = new WarehouseTableDatasetTypeProperties().withSchema("datayrbdkgqdmvvvjm").withTable("datajf"); - model = BinaryData.fromObject(model).toObject(WarehouseTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebAnonymousAuthenticationTests.java deleted file mode 100644 index 5cb82fa1b252..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\":\"datakpxt\"}") - .toObject(WebAnonymousAuthentication.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebAnonymousAuthentication model = new WebAnonymousAuthentication().withUrl("datakpxt"); - 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 1542f566a08d..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTests.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.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WebLinkedService; -import com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WebLinkedServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebLinkedService model = BinaryData.fromString( - "{\"type\":\"Web\",\"typeProperties\":{\"authenticationType\":\"WebLinkedServiceTypeProperties\",\"url\":\"datavk\"},\"version\":\"mkupbnkcwauyl\",\"connectVia\":{\"referenceName\":\"dskrpyfr\",\"parameters\":{\"pahyuxxeike\":\"datakafqzyle\",\"nhqafuvvys\":\"datanpw\",\"mesxjeqqfy\":\"datahjkxg\",\"kxtanlvoorv\":\"datav\"}},\"description\":\"dncqcuwtps\",\"parameters\":{\"atptzkmfvdrkcw\":{\"type\":\"Int\",\"defaultValue\":\"dataolspvxpiegxlzd\"}},\"annotations\":[\"datanwsffiahf\",\"datafrzzxirxxkmozkd\",\"datazhrhki\"],\"\":{\"wm\":\"datayzn\",\"bzzwsesqytktvof\":\"datauuzny\"}}") - .toObject(WebLinkedService.class); - Assertions.assertEquals("mkupbnkcwauyl", model.version()); - Assertions.assertEquals("dskrpyfr", model.connectVia().referenceName()); - Assertions.assertEquals("dncqcuwtps", model.description()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("atptzkmfvdrkcw").type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedService model = new WebLinkedService().withVersion("mkupbnkcwauyl") - .withConnectVia(new IntegrationRuntimeReference().withReferenceName("dskrpyfr") - .withParameters(mapOf("pahyuxxeike", "datakafqzyle", "nhqafuvvys", "datanpw", "mesxjeqqfy", "datahjkxg", - "kxtanlvoorv", "datav"))) - .withDescription("dncqcuwtps") - .withParameters(mapOf("atptzkmfvdrkcw", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("dataolspvxpiegxlzd"))) - .withAnnotations(Arrays.asList("datanwsffiahf", "datafrzzxirxxkmozkd", "datazhrhki")) - .withTypeProperties(new WebLinkedServiceTypeProperties().withUrl("datavk")); - model = BinaryData.fromObject(model).toObject(WebLinkedService.class); - Assertions.assertEquals("mkupbnkcwauyl", model.version()); - Assertions.assertEquals("dskrpyfr", model.connectVia().referenceName()); - Assertions.assertEquals("dncqcuwtps", model.description()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("atptzkmfvdrkcw").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 3f8b3c44a18e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebLinkedServiceTypePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties; - -public final class WebLinkedServiceTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebLinkedServiceTypeProperties model = BinaryData - .fromString("{\"authenticationType\":\"WebLinkedServiceTypeProperties\",\"url\":\"dataxorhsxcsoaxcme\"}") - .toObject(WebLinkedServiceTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebLinkedServiceTypeProperties model = new WebLinkedServiceTypeProperties().withUrl("dataxorhsxcsoaxcme"); - 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 e3c08b025e61..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebSourceTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.WebSource; - -public final class WebSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebSource model = BinaryData.fromString( - "{\"type\":\"WebSource\",\"additionalColumns\":\"datasoj\",\"sourceRetryCount\":\"dataarliig\",\"sourceRetryWait\":\"datav\",\"maxConcurrentConnections\":\"datai\",\"disableMetricsCollection\":\"datajhxxxuuqcmunhfa\",\"\":{\"oxh\":\"datanyvypu\",\"gejytqnzrcbh\":\"datawwerwywlxhiuwvq\",\"zgzf\":\"datayhctjvlwf\",\"fuhsmuclxgcedus\":\"datafyvytydrdcwbaiaq\"}}") - .toObject(WebSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebSource model = new WebSource().withSourceRetryCount("dataarliig") - .withSourceRetryWait("datav") - .withMaxConcurrentConnections("datai") - .withDisableMetricsCollection("datajhxxxuuqcmunhfa") - .withAdditionalColumns("datasoj"); - model = BinaryData.fromObject(model).toObject(WebSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java deleted file mode 100644 index f27048613fb8..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.WebTableDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WebTableDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebTableDataset model = BinaryData.fromString( - "{\"type\":\"WebTable\",\"typeProperties\":{\"index\":\"dataojzdvmsnao\",\"path\":\"datasxoxvim\"},\"description\":\"etqhdbitqsby\",\"structure\":\"datasgomrihumg\",\"schema\":\"datasdbvq\",\"linkedServiceName\":{\"referenceName\":\"gfygfkgxbdpb\",\"parameters\":{\"porrvkxtfctane\":\"datawbdpsesboynpy\",\"g\":\"datainqxdhnpjnezj\",\"uxvf\":\"datadumltpmrzwvwetqf\",\"lmr\":\"datauqhngqqxjbsoto\"}},\"parameters\":{\"xedhxbboceksra\":{\"type\":\"Object\",\"defaultValue\":\"datadeatwxpx\"}},\"annotations\":[\"datahlugfnlvvk\"],\"folder\":{\"name\":\"rxdqhvhauimn\"},\"\":{\"ivlqcwyzhndqkzst\":\"datakqpwqcnbn\",\"u\":\"datapzecdlceirtah\"}}") - .toObject(WebTableDataset.class); - Assertions.assertEquals("etqhdbitqsby", model.description()); - Assertions.assertEquals("gfygfkgxbdpb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xedhxbboceksra").type()); - Assertions.assertEquals("rxdqhvhauimn", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDataset model = new WebTableDataset().withDescription("etqhdbitqsby") - .withStructure("datasgomrihumg") - .withSchema("datasdbvq") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("gfygfkgxbdpb") - .withParameters(mapOf("porrvkxtfctane", "datawbdpsesboynpy", "g", "datainqxdhnpjnezj", "uxvf", - "datadumltpmrzwvwetqf", "lmr", "datauqhngqqxjbsoto"))) - .withParameters(mapOf("xedhxbboceksra", - new ParameterSpecification().withType(ParameterType.OBJECT).withDefaultValue("datadeatwxpx"))) - .withAnnotations(Arrays.asList("datahlugfnlvvk")) - .withFolder(new DatasetFolder().withName("rxdqhvhauimn")) - .withIndex("dataojzdvmsnao") - .withPath("datasxoxvim"); - model = BinaryData.fromObject(model).toObject(WebTableDataset.class); - Assertions.assertEquals("etqhdbitqsby", model.description()); - Assertions.assertEquals("gfygfkgxbdpb", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.OBJECT, model.parameters().get("xedhxbboceksra").type()); - Assertions.assertEquals("rxdqhvhauimn", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java deleted file mode 100644 index bd92abb75493..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WebTableDatasetTypePropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.WebTableDatasetTypeProperties; - -public final class WebTableDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WebTableDatasetTypeProperties model - = BinaryData.fromString("{\"index\":\"datacimtcaumviud\",\"path\":\"datasjqrmlujmtun\"}") - .toObject(WebTableDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WebTableDatasetTypeProperties model - = new WebTableDatasetTypeProperties().withIndex("datacimtcaumviud").withPath("datasjqrmlujmtun"); - model = BinaryData.fromObject(model).toObject(WebTableDatasetTypeProperties.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java deleted file mode 100644 index be4112a29067..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/WranglingDataFlowTests.java +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DataFlowFolder; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowReferenceType; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySource; -import com.azure.resourcemanager.datafactory.models.WranglingDataFlow; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class WranglingDataFlowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WranglingDataFlow model = BinaryData.fromString( - "{\"type\":\"WranglingDataFlow\",\"typeProperties\":{\"sources\":[{\"script\":\"dusxurs\",\"schemaLinkedService\":{\"referenceName\":\"v\",\"parameters\":{\"coqwczsyiqri\":\"dataj\",\"qtnhjrfd\":\"datafwihvaan\",\"fkkauigvmua\":\"datafdvbbaexxjfwtg\",\"dajjvywe\":\"datamczfedyuepsvplt\"}},\"name\":\"cfkumcfjxo\",\"description\":\"elsy\",\"dataset\":{\"referenceName\":\"vfnkwmygjjekrk\",\"parameters\":{\"rdtulcrcjdklotcs\":\"datarugjqyckgtx\",\"zoonsv\":\"datab\"}},\"linkedService\":{\"referenceName\":\"chkxfpwhdysl\",\"parameters\":{\"wayqshwyqxrid\":\"dataglmnnk\",\"aqjmkgxqwque\":\"datatb\",\"fvezefk\":\"datauylztpziizevjyk\",\"zcntogffjwajnrtw\":\"datakqtwqlepjjzkcasf\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"qkifmxawostfz\",\"datasetParameters\":\"datahrkmjqncfv\",\"parameters\":{\"pvndrwb\":\"datanhemvwfnqqw\",\"ggrssgwjfkain\":\"dataod\",\"ztscbgmusaictds\":\"datamuymvec\"},\"\":{\"ddclzeqozr\":\"datazzohn\",\"exozonynp\":\"datahlbzqixbnjrqvzy\",\"dpabcreuwzosg\":\"datame\"}}},{\"script\":\"xvcvasormrexz\",\"schemaLinkedService\":{\"referenceName\":\"ubewgzygba\",\"parameters\":{\"qhzrtdbak\":\"dataecovs\",\"qsifjmclng\":\"datalimzfvppk\",\"ggorwjoqt\":\"datagnhrkombcdtajdo\"}},\"name\":\"otpvclp\",\"description\":\"yrlmwkptsk\",\"dataset\":{\"referenceName\":\"jgvhxcc\",\"parameters\":{\"g\":\"dataakmkookbput\",\"yakmlwktf\":\"datam\",\"qjimejtgzjxxlfej\":\"datawzkroyrdurxfl\",\"itcdqlhchwhrk\":\"datazuqloiwyayyzivr\"}},\"linkedService\":{\"referenceName\":\"l\",\"parameters\":{\"cjowlyeyzmu\":\"dataibfiplhxfnsm\",\"hnxlzbuwodmachb\":\"datasqc\",\"qplehmumkzdllczd\":\"datavnrpbjrmvg\"}},\"flowlet\":{\"type\":\"DataFlowReference\",\"referenceName\":\"nhkgq\",\"datasetParameters\":\"dataoxsstc\",\"parameters\":{\"j\":\"dataakfrry\"},\"\":{\"mgnukxrke\":\"datahl\",\"bc\":\"datajpequlrlzaudgjt\"}}}],\"script\":\"kkucddwnh\",\"documentLocale\":\"butoucgj\"},\"description\":\"rjwayhicqq\",\"annotations\":[\"datagw\"],\"folder\":{\"name\":\"vlizedvb\"}}") - .toObject(WranglingDataFlow.class); - Assertions.assertEquals("rjwayhicqq", model.description()); - Assertions.assertEquals("vlizedvb", model.folder().name()); - Assertions.assertEquals("cfkumcfjxo", model.sources().get(0).name()); - Assertions.assertEquals("elsy", model.sources().get(0).description()); - Assertions.assertEquals("vfnkwmygjjekrk", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("chkxfpwhdysl", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("qkifmxawostfz", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("v", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("dusxurs", model.sources().get(0).script()); - Assertions.assertEquals("kkucddwnh", model.script()); - Assertions.assertEquals("butoucgj", model.documentLocale()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WranglingDataFlow model = new WranglingDataFlow().withDescription("rjwayhicqq") - .withAnnotations(Arrays.asList("datagw")) - .withFolder(new DataFlowFolder().withName("vlizedvb")) - .withSources(Arrays.asList( - new PowerQuerySource().withName("cfkumcfjxo") - .withDescription("elsy") - .withDataset(new DatasetReference().withReferenceName("vfnkwmygjjekrk") - .withParameters(mapOf("rdtulcrcjdklotcs", "datarugjqyckgtx", "zoonsv", "datab"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("chkxfpwhdysl") - .withParameters(mapOf("wayqshwyqxrid", "dataglmnnk", "aqjmkgxqwque", "datatb", "fvezefk", - "datauylztpziizevjyk", "zcntogffjwajnrtw", "datakqtwqlepjjzkcasf"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("qkifmxawostfz") - .withDatasetParameters("datahrkmjqncfv") - .withParameters(mapOf("pvndrwb", "datanhemvwfnqqw", "ggrssgwjfkain", "dataod", - "ztscbgmusaictds", "datamuymvec")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("v") - .withParameters(mapOf("coqwczsyiqri", "dataj", "qtnhjrfd", "datafwihvaan", "fkkauigvmua", - "datafdvbbaexxjfwtg", "dajjvywe", "datamczfedyuepsvplt"))) - .withScript("dusxurs"), - new PowerQuerySource().withName("otpvclp") - .withDescription("yrlmwkptsk") - .withDataset(new DatasetReference().withReferenceName("jgvhxcc") - .withParameters(mapOf("g", "dataakmkookbput", "yakmlwktf", "datam", "qjimejtgzjxxlfej", - "datawzkroyrdurxfl", "itcdqlhchwhrk", "datazuqloiwyayyzivr"))) - .withLinkedService(new LinkedServiceReference().withReferenceName("l") - .withParameters(mapOf("cjowlyeyzmu", "dataibfiplhxfnsm", "hnxlzbuwodmachb", "datasqc", - "qplehmumkzdllczd", "datavnrpbjrmvg"))) - .withFlowlet(new DataFlowReference().withType(DataFlowReferenceType.DATA_FLOW_REFERENCE) - .withReferenceName("nhkgq") - .withDatasetParameters("dataoxsstc") - .withParameters(mapOf("j", "dataakfrry")) - .withAdditionalProperties(mapOf())) - .withSchemaLinkedService(new LinkedServiceReference().withReferenceName("ubewgzygba") - .withParameters(mapOf("qhzrtdbak", "dataecovs", "qsifjmclng", "datalimzfvppk", "ggorwjoqt", - "datagnhrkombcdtajdo"))) - .withScript("xvcvasormrexz"))) - .withScript("kkucddwnh") - .withDocumentLocale("butoucgj"); - model = BinaryData.fromObject(model).toObject(WranglingDataFlow.class); - Assertions.assertEquals("rjwayhicqq", model.description()); - Assertions.assertEquals("vlizedvb", model.folder().name()); - Assertions.assertEquals("cfkumcfjxo", model.sources().get(0).name()); - Assertions.assertEquals("elsy", model.sources().get(0).description()); - Assertions.assertEquals("vfnkwmygjjekrk", model.sources().get(0).dataset().referenceName()); - Assertions.assertEquals("chkxfpwhdysl", model.sources().get(0).linkedService().referenceName()); - Assertions.assertEquals(DataFlowReferenceType.DATA_FLOW_REFERENCE, model.sources().get(0).flowlet().type()); - Assertions.assertEquals("qkifmxawostfz", model.sources().get(0).flowlet().referenceName()); - Assertions.assertEquals("v", model.sources().get(0).schemaLinkedService().referenceName()); - Assertions.assertEquals("dusxurs", model.sources().get(0).script()); - Assertions.assertEquals("kkucddwnh", model.script()); - Assertions.assertEquals("butoucgj", model.documentLocale()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java deleted file mode 100644 index 7bf825a03b3e..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroObjectDatasetTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.XeroObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class XeroObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XeroObjectDataset model = BinaryData.fromString( - "{\"type\":\"XeroObject\",\"typeProperties\":{\"tableName\":\"datamjcoyvfwgkzuhksh\"},\"description\":\"kckwbqwjyfmmkwa\",\"structure\":\"dataooyzhob\",\"schema\":\"datayuepaco\",\"linkedServiceName\":{\"referenceName\":\"rohextigukf\",\"parameters\":{\"ymbnpeenlqtqyv\":\"dataycb\",\"avqdvfjdsqephtos\":\"datafb\",\"jwgujrc\":\"dataqtua\"}},\"parameters\":{\"wscjwyyeomifl\":{\"type\":\"Float\",\"defaultValue\":\"datapyqoizfyasyddq\"}},\"annotations\":[\"dataeowctshwfrhhas\",\"databvau\",\"datanwwumkbpg\",\"datailbwtpwbjlpfwuq\"],\"folder\":{\"name\":\"dgi\"},\"\":{\"plan\":\"datayukslizmpnxgham\"}}") - .toObject(XeroObjectDataset.class); - Assertions.assertEquals("kckwbqwjyfmmkwa", model.description()); - Assertions.assertEquals("rohextigukf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("wscjwyyeomifl").type()); - Assertions.assertEquals("dgi", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroObjectDataset model = new XeroObjectDataset().withDescription("kckwbqwjyfmmkwa") - .withStructure("dataooyzhob") - .withSchema("datayuepaco") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("rohextigukf") - .withParameters( - mapOf("ymbnpeenlqtqyv", "dataycb", "avqdvfjdsqephtos", "datafb", "jwgujrc", "dataqtua"))) - .withParameters(mapOf("wscjwyyeomifl", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datapyqoizfyasyddq"))) - .withAnnotations(Arrays.asList("dataeowctshwfrhhas", "databvau", "datanwwumkbpg", "datailbwtpwbjlpfwuq")) - .withFolder(new DatasetFolder().withName("dgi")) - .withTableName("datamjcoyvfwgkzuhksh"); - model = BinaryData.fromObject(model).toObject(XeroObjectDataset.class); - Assertions.assertEquals("kckwbqwjyfmmkwa", model.description()); - Assertions.assertEquals("rohextigukf", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.FLOAT, model.parameters().get("wscjwyyeomifl").type()); - Assertions.assertEquals("dgi", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java deleted file mode 100644 index e8d8c025726b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XeroSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.XeroSource; - -public final class XeroSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XeroSource model = BinaryData.fromString( - "{\"type\":\"XeroSource\",\"query\":\"dataeycakkon\",\"queryTimeout\":\"datadpd\",\"additionalColumns\":\"datahadzyxaanhwuqewc\",\"sourceRetryCount\":\"datasksfbkxfkeeqo\",\"sourceRetryWait\":\"databek\",\"maxConcurrentConnections\":\"dataerwss\",\"disableMetricsCollection\":\"datamrpdjrylfpdudx\",\"\":{\"tqssngeviyffg\":\"dataeuriehxbanfsqfh\",\"hdapynpvgyaf\":\"datahrhjsps\"}}") - .toObject(XeroSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XeroSource model = new XeroSource().withSourceRetryCount("datasksfbkxfkeeqo") - .withSourceRetryWait("databek") - .withMaxConcurrentConnections("dataerwss") - .withDisableMetricsCollection("datamrpdjrylfpdudx") - .withQueryTimeout("datadpd") - .withAdditionalColumns("datahadzyxaanhwuqewc") - .withQuery("dataeycakkon"); - model = BinaryData.fromObject(model).toObject(XeroSource.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java deleted file mode 100644 index f0a56d153525..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.XmlDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class XmlDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlDataset model = BinaryData.fromString( - "{\"type\":\"Xml\",\"typeProperties\":{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"datalurb\",\"fileName\":\"dataygpnyhgdzuqsca\",\"\":{\"y\":\"datavoupr\",\"mgw\":\"dataqzssl\",\"hgyqvpbfj\":\"datanivrxpfduio\"}},\"encodingName\":\"dataqzucfzluczdquur\",\"nullValue\":\"datarmvhvzi\",\"compression\":{\"type\":\"databprnqujywzcqygg\",\"level\":\"datawsvh\",\"\":{\"jtobdrrp\":\"dataqiwy\",\"w\":\"datarehkunsbfjhh\"}}},\"description\":\"kvegeattbzkgtzq\",\"structure\":\"dataqsttewuvcysjeuf\",\"schema\":\"dataflpd\",\"linkedServiceName\":{\"referenceName\":\"tfnonpi\",\"parameters\":{\"lvtlrvbst\":\"datalvrhprrvbwonleq\",\"uninttlnrjdszd\":\"datahuy\",\"iciqppo\":\"datau\",\"e\":\"datavgp\"}},\"parameters\":{\"tfnressfepgck\":{\"type\":\"Array\",\"defaultValue\":\"datawjnoxuo\"},\"mjnhjlu\":{\"type\":\"Float\",\"defaultValue\":\"datamgvsnvbtqdxfmj\"}},\"annotations\":[\"databsupu\"],\"folder\":{\"name\":\"ck\"},\"\":{\"sjjfd\":\"datazwhcukvb\",\"kcgn\":\"datazhrjqfyaytvsly\"}}") - .toObject(XmlDataset.class); - Assertions.assertEquals("kvegeattbzkgtzq", model.description()); - Assertions.assertEquals("tfnonpi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("tfnressfepgck").type()); - Assertions.assertEquals("ck", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDataset model = new XmlDataset().withDescription("kvegeattbzkgtzq") - .withStructure("dataqsttewuvcysjeuf") - .withSchema("dataflpd") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("tfnonpi") - .withParameters(mapOf("lvtlrvbst", "datalvrhprrvbwonleq", "uninttlnrjdszd", "datahuy", "iciqppo", - "datau", "e", "datavgp"))) - .withParameters(mapOf("tfnressfepgck", - new ParameterSpecification().withType(ParameterType.ARRAY).withDefaultValue("datawjnoxuo"), "mjnhjlu", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("datamgvsnvbtqdxfmj"))) - .withAnnotations(Arrays.asList("databsupu")) - .withFolder(new DatasetFolder().withName("ck")) - .withLocation(new DatasetLocation().withFolderPath("datalurb") - .withFileName("dataygpnyhgdzuqsca") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("dataqzucfzluczdquur") - .withNullValue("datarmvhvzi") - .withCompression(new DatasetCompression().withType("databprnqujywzcqygg") - .withLevel("datawsvh") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(XmlDataset.class); - Assertions.assertEquals("kvegeattbzkgtzq", model.description()); - Assertions.assertEquals("tfnonpi", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.ARRAY, model.parameters().get("tfnressfepgck").type()); - Assertions.assertEquals("ck", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java deleted file mode 100644 index 268dc0318e5b..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlDatasetTypePropertiesTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.fluent.models.XmlDatasetTypeProperties; -import com.azure.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import java.util.HashMap; -import java.util.Map; - -public final class XmlDatasetTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlDatasetTypeProperties model = BinaryData.fromString( - "{\"location\":{\"type\":\"DatasetLocation\",\"folderPath\":\"dataarlcjiwgsxfaiocw\",\"fileName\":\"dataujjgnfgrzxbarc\",\"\":{\"ymjwenjcyt\":\"dataefzq\",\"auzmzivrtrfzhhe\":\"datasmfucrtfodqh\"}},\"encodingName\":\"datahjud\",\"nullValue\":\"datayy\",\"compression\":{\"type\":\"datadmahswtvdkxb\",\"level\":\"datasgfenffdxb\",\"\":{\"ija\":\"dataqjchivd\",\"lmzjotprrmu\":\"dataxndmuvar\",\"pgarpfctw\":\"datacuhtuzlxiwy\"}}}") - .toObject(XmlDatasetTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlDatasetTypeProperties model = new XmlDatasetTypeProperties() - .withLocation(new DatasetLocation().withFolderPath("dataarlcjiwgsxfaiocw") - .withFileName("dataujjgnfgrzxbarc") - .withAdditionalProperties(mapOf("type", "DatasetLocation"))) - .withEncodingName("datahjud") - .withNullValue("datayy") - .withCompression(new DatasetCompression().withType("datadmahswtvdkxb") - .withLevel("datasgfenffdxb") - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(XmlDatasetTypeProperties.class); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java deleted file mode 100644 index c33649c74662..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlReadSettingsTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlReadSettings; -import java.util.HashMap; -import java.util.Map; - -public final class XmlReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlReadSettings model = BinaryData.fromString( - "{\"type\":\"XmlReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"wznwc\":\"datawwqzsyetbffrhqz\",\"purv\":\"dataoapdtjkltetf\",\"sfu\":\"datadtjb\",\"qhbwsv\":\"dataedsaafk\"}},\"validationMode\":\"dataqkyaghfvublszs\",\"detectDataType\":\"datag\",\"namespaces\":\"dataax\",\"namespacePrefixes\":\"datapnymbjrsdiufqxr\",\"\":{\"cmlzmfetidnewrvj\":\"datajosuzeg\",\"mx\":\"dataw\",\"rzozf\":\"datangowdavpqyhaxh\",\"ggoppmxcm\":\"datagkwpbnefabgt\"}}") - .toObject(XmlReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlReadSettings model = new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))) - .withValidationMode("dataqkyaghfvublszs") - .withDetectDataType("datag") - .withNamespaces("dataax") - .withNamespacePrefixes("datapnymbjrsdiufqxr"); - 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 d8d274eba51f..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/XmlSourceTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.CompressionReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlReadSettings; -import com.azure.resourcemanager.datafactory.models.XmlSource; -import java.util.HashMap; -import java.util.Map; - -public final class XmlSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - XmlSource model = BinaryData.fromString( - "{\"type\":\"XmlSource\",\"storeSettings\":{\"type\":\"StoreReadSettings\",\"maxConcurrentConnections\":\"datacooptmdspddxgup\",\"disableMetricsCollection\":\"datasibg\",\"\":{\"kyrttnriks\":\"dataxuybxjwnyr\"}},\"formatSettings\":{\"type\":\"XmlReadSettings\",\"compressionProperties\":{\"type\":\"CompressionReadSettings\",\"\":{\"toqtui\":\"datasjpkign\"}},\"validationMode\":\"datapbfsxps\",\"detectDataType\":\"dataevz\",\"namespaces\":\"dataydnokkkgiec\",\"namespacePrefixes\":\"dataftsneftzetjclaq\",\"\":{\"aq\":\"datakqmagpdsuyyw\"}},\"additionalColumns\":\"dataoxuh\",\"sourceRetryCount\":\"datagddfzcny\",\"sourceRetryWait\":\"datawlhuf\",\"maxConcurrentConnections\":\"datacpwrtgtdegf\",\"disableMetricsCollection\":\"datafoptbiuik\",\"\":{\"qjpovjvv\":\"datajjfecxv\",\"nrewrbmhjm\":\"datap\"}}") - .toObject(XmlSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - XmlSource model = new XmlSource().withSourceRetryCount("datagddfzcny") - .withSourceRetryWait("datawlhuf") - .withMaxConcurrentConnections("datacpwrtgtdegf") - .withDisableMetricsCollection("datafoptbiuik") - .withStoreSettings(new StoreReadSettings().withMaxConcurrentConnections("datacooptmdspddxgup") - .withDisableMetricsCollection("datasibg") - .withAdditionalProperties(mapOf("type", "StoreReadSettings"))) - .withFormatSettings(new XmlReadSettings() - .withCompressionProperties( - new CompressionReadSettings().withAdditionalProperties(mapOf("type", "CompressionReadSettings"))) - .withValidationMode("datapbfsxps") - .withDetectDataType("dataevz") - .withNamespaces("dataydnokkkgiec") - .withNamespacePrefixes("dataftsneftzetjclaq")) - .withAdditionalColumns("dataoxuh"); - 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 eb2c3318dc98..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZipDeflateReadSettingsTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ZipDeflateReadSettings; - -public final class ZipDeflateReadSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZipDeflateReadSettings model = BinaryData.fromString( - "{\"type\":\"ZipDeflateReadSettings\",\"preserveZipFileNameAsFolder\":\"dataphnmllbljeh\",\"\":{\"apxhtqwsd\":\"dataxuofneaqahzkv\",\"bziibuabpvdwhvn\":\"dataxaovubfllfke\",\"kgbkzqbo\":\"datacbuzudkqoeoukvi\"}}") - .toObject(ZipDeflateReadSettings.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZipDeflateReadSettings model = new ZipDeflateReadSettings().withPreserveZipFileNameAsFolder("dataphnmllbljeh"); - model = BinaryData.fromObject(model).toObject(ZipDeflateReadSettings.class); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java deleted file mode 100644 index d53aa8e81b70..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoObjectDatasetTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.DatasetFolder; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.ZohoObjectDataset; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ZohoObjectDatasetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZohoObjectDataset model = BinaryData.fromString( - "{\"type\":\"ZohoObject\",\"typeProperties\":{\"tableName\":\"dataotmmxlmxejwyv\"},\"description\":\"b\",\"structure\":\"datavtuekbb\",\"schema\":\"dataqsm\",\"linkedServiceName\":{\"referenceName\":\"sbeqieiuxhj\",\"parameters\":{\"lzyxvtajfjatoid\":\"datadalnjjhrgkjjpcpi\",\"gnpuelrnanbrpkoc\":\"dataekurdgcpzanaqve\"}},\"parameters\":{\"gijxmdboe\":{\"type\":\"Int\",\"defaultValue\":\"datagegjtjltckiwxggf\"},\"u\":{\"type\":\"Float\",\"defaultValue\":\"dataxha\"}},\"annotations\":[\"datanvzsodmokrqd\",\"datasgkq\"],\"folder\":{\"name\":\"otypcjxh\"},\"\":{\"p\":\"datalocjhz\",\"xbofpr\":\"databrbm\",\"wwsfvtgh\":\"datamivapesbfzllej\"}}") - .toObject(ZohoObjectDataset.class); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals("sbeqieiuxhj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gijxmdboe").type()); - Assertions.assertEquals("otypcjxh", model.folder().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoObjectDataset model = new ZohoObjectDataset().withDescription("b") - .withStructure("datavtuekbb") - .withSchema("dataqsm") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("sbeqieiuxhj") - .withParameters( - mapOf("lzyxvtajfjatoid", "datadalnjjhrgkjjpcpi", "gnpuelrnanbrpkoc", "dataekurdgcpzanaqve"))) - .withParameters(mapOf("gijxmdboe", - new ParameterSpecification().withType(ParameterType.INT).withDefaultValue("datagegjtjltckiwxggf"), "u", - new ParameterSpecification().withType(ParameterType.FLOAT).withDefaultValue("dataxha"))) - .withAnnotations(Arrays.asList("datanvzsodmokrqd", "datasgkq")) - .withFolder(new DatasetFolder().withName("otypcjxh")) - .withTableName("dataotmmxlmxejwyv"); - model = BinaryData.fromObject(model).toObject(ZohoObjectDataset.class); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals("sbeqieiuxhj", model.linkedServiceName().referenceName()); - Assertions.assertEquals(ParameterType.INT, model.parameters().get("gijxmdboe").type()); - Assertions.assertEquals("otypcjxh", model.folder().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java deleted file mode 100644 index ae55477d1350..000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/test/java/com/azure/resourcemanager/datafactory/generated/ZohoSourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.datafactory.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datafactory.models.ZohoSource; - -public final class ZohoSourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ZohoSource model = BinaryData.fromString( - "{\"type\":\"ZohoSource\",\"query\":\"databetzydtgpvnczf\",\"queryTimeout\":\"dataybjku\",\"additionalColumns\":\"dataajkyrhucbfkaqlp\",\"sourceRetryCount\":\"dataptero\",\"sourceRetryWait\":\"dataqaktao\",\"maxConcurrentConnections\":\"datagefobcqvzmyw\",\"disableMetricsCollection\":\"datayns\",\"\":{\"kklzabauvncln\":\"dataosqvojgol\",\"ikireetvjfizafd\":\"dataaoidjhoykgtyvrn\",\"csipfwlye\":\"datajhnuvndgrolgxa\",\"rzfppopwxxdgzhn\":\"dataajdpjmqteirrjjm\"}}") - .toObject(ZohoSource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ZohoSource model = new ZohoSource().withSourceRetryCount("dataptero") - .withSourceRetryWait("dataqaktao") - .withMaxConcurrentConnections("datagefobcqvzmyw") - .withDisableMetricsCollection("datayns") - .withQueryTimeout("dataybjku") - .withAdditionalColumns("dataajkyrhucbfkaqlp") - .withQuery("databetzydtgpvnczf"); - model = BinaryData.fromObject(model).toObject(ZohoSource.class); - } -}