From 83d920ad59dc5e0d52587d4830d111c0eff49ceb Mon Sep 17 00:00:00 2001 From: Dongwei Wang Date: Tue, 15 Dec 2020 10:37:08 +0800 Subject: [PATCH] [Synapse] - Fixed deserialization error when create Pipeline/Dataset/Trigger through DefinitionFile (#13721) * Remove using Newtonsoft.Json and JsonObject * update client and cmdlets * Remove more Newtonsoft annotation * remove ToSdkObject and SetProperties * update artifacts client * Remove JsonProperty * remove unused sub-classes * remove internal properties * Update artifacts dependency version * Fix the default literal issue Co-authored-by: Dongwei Wang --- .../Notebooks/ExportAzureSynapseNotebook.cs | 2 +- .../Notebooks/SetAzureSynapseNotebook.cs | 16 +- .../InvokeAzureSynapsePipeline.cs | 2 +- src/Synapse/Synapse/Common/JsonConvert.cs | 42 +++ .../Models/Activity/PSActivityPolicy.cs | 44 --- .../Activity/PSAppendVariableActivity.cs | 76 ---- .../PSAzureDataExplorerCommandActivity.cs | 84 ----- .../Activity/PSAzureFunctionActivity.cs | 104 ----- .../PSAzureMLBatchExecutionActivity.cs | 97 ----- .../PSAzureMLExecutePipelineActivity.cs | 116 ------ .../PSAzureMLUpdateResourceActivity.cs | 98 ----- .../Models/Activity/PSControlActivity.cs | 58 --- .../Synapse/Models/Activity/PSCopyActivity.cs | 170 --------- .../Synapse/Models/Activity/PSCopySink.cs | 44 --- .../Synapse/Models/Activity/PSCopySource.cs | 36 -- .../Models/Activity/PSCustomActivity.cs | 114 ------ .../Models/Activity/PSDataFlowReference.cs | 34 -- .../PSDataLakeAnalyticsUsqlActivity.cs | 128 ------- .../Activity/PSDatabricksNotebookActivity.cs | 93 ----- .../Activity/PSDatabricksSparkJarActivity.cs | 91 ----- .../PSDatabricksSparkPythonActivity.cs | 91 ----- .../Models/Activity/PSDeleteActivity.cs | 110 ------ .../Activity/PSExecuteDataFlowActivity.cs | 93 ----- .../Activity/PSExecutePipelineActivity.cs | 86 ----- .../Activity/PSExecuteSsisPackageActivity.cs | 162 -------- .../Models/Activity/PSExecutionActivity.cs | 71 ---- .../Models/Activity/PSFilterActivity.cs | 80 ---- .../Models/Activity/PSForEachActivity.cs | 111 ------ .../Models/Activity/PSGetMetadataActivity.cs | 80 ---- .../Activity/PSHDInsightHiveActivity.cs | 122 ------ .../Activity/PSHDInsightMapReduceActivity.cs | 130 ------- .../Models/Activity/PSHDInsightPigActivity.cs | 108 ------ .../Activity/PSHDInsightSparkActivity.cs | 132 ------- .../Activity/PSHDInsightStreamingActivity.cs | 170 --------- .../Models/Activity/PSIfConditionActivity.cs | 113 ------ .../Models/Activity/PSLogStorageSettings.cs | 31 -- .../Models/Activity/PSLookupActivity.cs | 91 ----- .../PSRedirectIncompatibleRowSettings.cs | 31 -- .../Models/Activity/PSSetVariableActivity.cs | 74 ---- .../PSSqlPoolStoredProcedureActivity.cs | 91 ----- .../PSSqlServerStoredProcedureActivity.cs | 83 ---- .../Models/Activity/PSStagingSettings.cs | 35 -- .../Models/Activity/PSSwitchActivity.cs | 104 ----- .../Activity/PSSynapseNotebookActivity.cs | 78 ---- .../PSSynapseSparkJobDefinitionActivity.cs | 71 ---- .../Models/Activity/PSUntilActivity.cs | 105 ------ .../Models/Activity/PSValidationActivity.cs | 109 ------ .../Synapse/Models/Activity/PSWaitActivity.cs | 66 ---- .../Synapse/Models/Activity/PSWebActivity.cs | 133 ------- .../Models/Activity/PSWebHookActivity.cs | 133 ------- .../Models/DataFlow/PSMappingDataFlow.cs | 77 ---- .../Dataset/PSAmazonMWSObjectDataset.cs | 68 ---- .../Dataset/PSAmazonRedshiftTableDataset.cs | 85 ----- .../Synapse/Models/Dataset/PSAvroDataset.cs | 93 ----- .../PSAzureDataExplorerTableDataset.cs | 69 ---- .../Dataset/PSAzureMariaDBTableDataset.cs | 68 ---- .../Dataset/PSAzureMySqlTableDataset.cs | 76 ---- .../Dataset/PSAzurePostgreSqlTableDataset.cs | 86 ----- .../Dataset/PSAzureSearchIndexDataset.cs | 71 ---- .../Dataset/PSAzureSqlDWTableDataset.cs | 84 ----- .../Dataset/PSAzureSqlMITableDataset.cs | 84 ----- .../Models/Dataset/PSAzureSqlTableDataset.cs | 84 ----- .../Models/Dataset/PSAzureTableDataset.cs | 71 ---- .../Synapse/Models/Dataset/PSBinaryDataset.cs | 79 ---- .../Models/Dataset/PSCassandraTableDataset.cs | 76 ---- ...PSCommonDataServiceForAppsEntityDataset.cs | 69 ---- .../Models/Dataset/PSConcurObjectDataset.cs | 68 ---- .../PSCosmosDbMongoDbApiCollectionDataset.cs | 72 ---- .../PSCosmosDbSqlApiCollectionDataset.cs | 72 ---- .../Models/Dataset/PSCouchbaseTableDataset.cs | 68 ---- .../Synapse/Models/Dataset/PSCustomDataset.cs | 64 ---- .../Models/Dataset/PSDatasetCompression.cs | 22 -- .../Models/Dataset/PSDatasetLocation.cs | 34 -- .../Models/Dataset/PSDb2TableDataset.cs | 84 ----- .../Models/Dataset/PSDelimitedTextDataset.cs | 152 -------- .../Dataset/PSDocumentDbCollectionDataset.cs | 72 ---- .../Models/Dataset/PSDrillTableDataset.cs | 84 ----- .../Dataset/PSDynamicsAXResourceDataset.cs | 72 ---- .../Dataset/PSDynamicsCrmEntityDataset.cs | 68 ---- .../Models/Dataset/PSDynamicsEntityDataset.cs | 68 ---- .../Models/Dataset/PSEloquaObjectDataset.cs | 68 ---- .../Dataset/PSGoogleAdWordsObjectDataset.cs | 69 ---- .../Dataset/PSGoogleBigQueryObjectDataset.cs | 85 ----- .../Models/Dataset/PSGreenplumTableDataset.cs | 84 ----- .../Models/Dataset/PSHBaseObjectDataset.cs | 68 ---- .../Models/Dataset/PSHiveObjectDataset.cs | 84 ----- .../Models/Dataset/PSHubspotObjectDataset.cs | 68 ---- .../Models/Dataset/PSImpalaObjectDataset.cs | 84 ----- .../Models/Dataset/PSInformixTableDataset.cs | 68 ---- .../Models/Dataset/PSJiraObjectDataset.cs | 68 ---- .../Synapse/Models/Dataset/PSJsonDataset.cs | 90 ----- .../Models/Dataset/PSMagentoObjectDataset.cs | 68 ---- .../Models/Dataset/PSMariaDBTableDataset.cs | 68 ---- .../Models/Dataset/PSMarketoObjectDataset.cs | 68 ---- .../Dataset/PSMicrosoftAccessTableDataset.cs | 69 ---- .../Dataset/PSMongoDbCollectionDataset.cs | 71 ---- .../Dataset/PSMongoDbV2CollectionDataset.cs | 72 ---- .../Models/Dataset/PSMySqlTableDataset.cs | 68 ---- .../Models/Dataset/PSNetezzaTableDataset.cs | 84 ----- .../Models/Dataset/PSODataResourceDataset.cs | 68 ---- .../Models/Dataset/PSOdbcTableDataset.cs | 68 ---- .../Models/Dataset/PSOffice365Dataset.cs | 80 ---- .../PSOracleServiceCloudObjectDataset.cs | 69 ---- .../Models/Dataset/PSOracleTableDataset.cs | 84 ----- .../Synapse/Models/Dataset/PSOrcDataset.cs | 79 ---- .../Models/Dataset/PSParquetDataset.cs | 79 ---- .../Models/Dataset/PSPaypalObjectDataset.cs | 68 ---- .../Models/Dataset/PSPhoenixObjectDataset.cs | 84 ----- .../Dataset/PSPostgreSqlTableDataset.cs | 84 ----- .../Models/Dataset/PSPrestoObjectDataset.cs | 84 ----- .../Dataset/PSQuickBooksObjectDataset.cs | 68 ---- .../Dataset/PSRelationalTableDataset.cs | 68 ---- .../Dataset/PSResponsysObjectDataset.cs | 68 ---- .../Models/Dataset/PSRestResourceDataset.cs | 102 ----- ...PSSalesforceMarketingCloudObjectDataset.cs | 69 ---- .../Dataset/PSSalesforceObjectDataset.cs | 68 ---- .../PSSalesforceServiceCloudObjectDataset.cs | 69 ---- .../Models/Dataset/PSSapBwCubeDataset.cs | 57 --- .../PSSapCloudForCustomerResourceDataset.cs | 72 ---- .../Models/Dataset/PSSapEccResourceDataset.cs | 71 ---- .../Models/Dataset/PSSapHanaTableDataset.cs | 76 ---- .../Dataset/PSSapOpenHubTableDataset.cs | 91 ----- .../Dataset/PSSapTableResourceDataset.cs | 71 ---- .../Dataset/PSServiceNowObjectDataset.cs | 68 ---- .../Models/Dataset/PSShopifyObjectDataset.cs | 68 ---- .../Models/Dataset/PSSparkObjectDataset.cs | 84 ----- .../Models/Dataset/PSSqlServerTableDataset.cs | 84 ----- .../Models/Dataset/PSSquareObjectDataset.cs | 68 ---- .../Models/Dataset/PSSybaseTableDataset.cs | 68 ---- .../Models/Dataset/PSTeradataTableDataset.cs | 76 ---- .../Models/Dataset/PSVerticaTableDataset.cs | 84 ----- .../Models/Dataset/PSWebTableDataset.cs | 79 ---- .../Models/Dataset/PSXeroObjectDataset.cs | 68 ---- .../Models/Dataset/PSZohoObjectDataset.cs | 68 ---- .../LinkedService/PSAmazonMWSLinkedService.cs | 151 -------- .../PSAmazonRedshiftLinkedService.cs | 116 ------ .../LinkedService/PSAmazonS3LinkedService.cs | 97 ----- .../PSAzureBatchLinkedService.cs | 119 ------ .../PSAzureBlobFSLinkedService.cs | 114 ------ .../PSAzureBlobStorageLinkedService.cs | 128 ------- .../PSAzureDataExplorerLinkedService.cs | 120 ------ .../PSAzureDataLakeAnalyticsLinkedService.cs | 136 ------- .../PSAzureDataLakeStoreLinkedService.cs | 133 ------- .../PSAzureDatabricksLinkedService.cs | 200 ---------- .../PSAzureFileStorageLinkedService.cs | 96 ----- .../PSAzureFunctionLinkedService.cs | 88 ----- .../PSAzureKeyVaultLinkedService.cs | 73 ---- .../LinkedService/PSAzureMLLinkedService.cs | 127 ------- .../PSAzureMLServiceLinkedService.cs | 129 ------- .../PSAzureMariaDBLinkedService.cs | 75 ---- .../PSAzureMySqlLinkedService.cs | 88 ----- .../PSAzurePostgreSqlLinkedService.cs | 75 ---- .../PSAzureSearchLinkedService.cs | 87 ----- .../PSAzureSqlDWLinkedService.cs | 115 ------ .../PSAzureSqlDatabaseLinkedService.cs | 115 ------ .../PSAzureSqlMILinkedService.cs | 114 ------ .../PSAzureStorageLinkedService.cs | 93 ----- .../PSAzureTableStorageLinkedService.cs | 93 ----- .../LinkedService/PSCassandraLinkedService.cs | 111 ------ ...PSCommonDataServiceForAppsLinkedService.cs | 188 ---------- .../LinkedService/PSConcurLinkedService.cs | 123 ------ .../LinkedService/PSCosmosDbLinkedService.cs | 101 ----- .../PSCosmosDbMongoDbApiLinkedService.cs | 85 ----- .../LinkedService/PSCouchbaseLinkedService.cs | 74 ---- .../PSCustomDataSourceLinkedService.cs | 69 ---- .../LinkedService/PSDb2LinkedService.cs | 130 ------- .../LinkedService/PSDrillLinkedService.cs | 74 ---- .../PSDynamicsAXLinkedService.cs | 128 ------- .../PSDynamicsCrmLinkedService.cs | 184 --------- .../LinkedService/PSDynamicsLinkedService.cs | 182 --------- .../LinkedService/PSEloquaLinkedService.cs | 123 ------ .../PSFileServerLinkedService.cs | 95 ----- .../LinkedService/PSFtpServerLinkedService.cs | 130 ------- .../PSGoogleAdWordsLinkedService.cs | 166 -------- .../PSGoogleBigQueryLinkedService.cs | 172 --------- .../PSGoogleCloudStorageLinkedService.cs | 98 ----- .../LinkedService/PSGreenplumLinkedService.cs | 85 ----- .../LinkedService/PSHBaseLinkedService.cs | 156 -------- .../LinkedService/PSHDInsightLinkedService.cs | 127 ------- .../PSHDInsightOnDemandLinkedService.cs | 355 ------------------ .../LinkedService/PSHdfsLinkedService.cs | 105 ------ .../LinkedService/PSHiveLinkedService.cs | 207 ---------- .../LinkedService/PSHttpLinkedService.cs | 138 ------- .../LinkedService/PSHubspotLinkedService.cs | 129 ------- .../LinkedService/PSImpalaLinkedService.cs | 159 -------- .../LinkedService/PSInformixLinkedService.cs | 113 ------ .../LinkedService/PSJiraLinkedService.cs | 132 ------- .../LinkedService/PSMagentoLinkedService.cs | 112 ------ .../LinkedService/PSMariaDBLinkedService.cs | 85 ----- .../LinkedService/PSMarketoLinkedService.cs | 122 ------ .../PSMicrosoftAccessLinkedService.cs | 114 ------ .../LinkedService/PSMongoDbLinkedService.cs | 149 -------- .../LinkedService/PSMongoDbV2LinkedService.cs | 83 ---- .../LinkedService/PSMySqlLinkedService.cs | 87 ----- .../LinkedService/PSNetezzaLinkedService.cs | 85 ----- .../LinkedService/PSODataLinkedService.cs | 168 --------- .../LinkedService/PSOdbcLinkedService.cs | 113 ------ .../LinkedService/PSOffice365LinkedService.cs | 113 ------ .../LinkedService/PSOracleLinkedService.cs | 88 ----- .../PSOracleServiceCloudLinkedService.cs | 130 ------- .../LinkedService/PSPaypalLinkedService.cs | 123 ------ .../LinkedService/PSPhoenixLinkedService.cs | 167 -------- .../PSPostgreSqlLinkedService.cs | 87 ----- .../LinkedService/PSPrestoLinkedService.cs | 187 --------- .../PSQuickBooksLinkedService.cs | 138 ------- .../LinkedService/PSResponsysLinkedService.cs | 126 ------- .../PSRestServiceLinkedService.cs | 146 ------- .../PSSalesforceLinkedService.cs | 105 ------ ...PSSalesforceMarketingCloudLinkedService.cs | 119 ------ .../PSSalesforceServiceCloudLinkedService.cs | 114 ------ .../LinkedService/PSSapBWLinkedService.cs | 119 ------ .../PSSapCloudForCustomerLinkedService.cs | 99 ----- .../LinkedService/PSSapEccLinkedService.cs | 97 ----- .../LinkedService/PSSapHanaLinkedService.cs | 111 ------ .../PSSapOpenHubLinkedService.cs | 133 ------- .../LinkedService/PSSapTableLinkedService.cs | 196 ---------- .../PSServiceNowLinkedService.cs | 146 ------- .../PSSftpServerLinkedService.cs | 161 -------- .../LinkedService/PSShopifyLinkedService.cs | 113 ------ .../LinkedService/PSSparkLinkedService.cs | 184 --------- .../LinkedService/PSSqlServerLinkedService.cs | 95 ----- .../LinkedService/PSSquareLinkedService.cs | 134 ------- .../LinkedService/PSSybaseLinkedService.cs | 122 ------ .../LinkedService/PSTeradataLinkedService.cs | 108 ------ .../LinkedService/PSVerticaLinkedService.cs | 85 ----- .../LinkedService/PSWebLinkedService.cs | 68 ---- .../LinkedService/PSXeroLinkedService.cs | 121 ------ .../LinkedService/PSZohoLinkedService.cs | 112 ------ src/Synapse/Synapse/Models/PSActivity.cs | 30 -- .../Synapse/Models/PSActivityDependency.cs | 11 - .../Synapse/Models/PSBigDataPoolReference.cs | 12 - src/Synapse/Synapse/Models/PSDataFlow.cs | 14 - .../Synapse/Models/PSDataFlowFolder.cs | 8 - .../Synapse/Models/PSDataFlowResource.cs | 9 - src/Synapse/Synapse/Models/PSDataset.cs | 36 -- src/Synapse/Synapse/Models/PSDatasetFolder.cs | 8 - .../Synapse/Models/PSDatasetResource.cs | 9 - .../Models/PSIntegrationRuntimeReference.cs | 7 - src/Synapse/Synapse/Models/PSLinkedService.cs | 31 -- .../Synapse/Models/PSLinkedServiceResource.cs | 11 - src/Synapse/Synapse/Models/PSNotebook.cs | 22 -- src/Synapse/Synapse/Models/PSNotebookCell.cs | 22 -- .../Models/PSNotebookCellOutputItem.cs | 19 - .../Synapse/Models/PSNotebookKernelSpec.cs | 11 - .../Synapse/Models/PSNotebookLanguageInfo.cs | 26 -- .../Synapse/Models/PSNotebookMetadata.cs | 15 - .../Synapse/Models/PSNotebookResource.cs | 5 - .../Models/PSNotebookSessionProperties.cs | 13 - .../Models/PSParameterSpecification.cs | 8 - .../Synapse/Models/PSPipelineResource.cs | 41 -- src/Synapse/Synapse/Models/PSTrigger.cs | 28 -- .../Synapse/Models/PSTriggerResource.cs | 9 - src/Synapse/Synapse/Models/PSUserProperty.cs | 5 - .../Synapse/Models/PSVariableSpecification.cs | 8 - .../Models/SynapseAnalyticsArtifactsClient.cs | 36 +- .../SynapseAnalyticsManagementClient.cs | 2 +- .../Models/Trigger/PSBlobEventsTrigger.cs | 51 --- .../Trigger/PSMultiplePipelineTrigger.cs | 55 --- .../Models/Trigger/PSRecurrenceSchedule.cs | 37 -- .../Trigger/PSRecurrenceScheduleOccurrence.cs | 32 -- .../Models/Trigger/PSScheduleTrigger.cs | 36 -- .../Trigger/PSScheduleTriggerRecurrence.cs | 49 --- .../Models/Trigger/PSSinglePipelineTrigger.cs | 25 -- .../Models/Trigger/PSTumblingWindowTrigger.cs | 60 --- src/Synapse/Synapse/Synapse.csproj | 2 +- 265 files changed, 59 insertions(+), 22929 deletions(-) create mode 100644 src/Synapse/Synapse/Common/JsonConvert.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSActivityPolicy.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSAppendVariableActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSAzureDataExplorerCommandActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSAzureFunctionActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSAzureMLBatchExecutionActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSAzureMLExecutePipelineActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSAzureMLUpdateResourceActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSControlActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSCopyActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSCopySink.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSCopySource.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSCustomActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSDataFlowReference.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSDataLakeAnalyticsUsqlActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSDatabricksNotebookActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSDatabricksSparkJarActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSDatabricksSparkPythonActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSDeleteActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSExecuteDataFlowActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSExecutePipelineActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSExecuteSsisPackageActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSExecutionActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSFilterActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSForEachActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSGetMetadataActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSHDInsightHiveActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSHDInsightMapReduceActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSHDInsightPigActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSHDInsightSparkActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSHDInsightStreamingActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSIfConditionActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSLogStorageSettings.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSLookupActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSRedirectIncompatibleRowSettings.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSSetVariableActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSSqlPoolStoredProcedureActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSSqlServerStoredProcedureActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSStagingSettings.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSSwitchActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSSynapseNotebookActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSSynapseSparkJobDefinitionActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSUntilActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSValidationActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSWaitActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSWebActivity.cs delete mode 100644 src/Synapse/Synapse/Models/Activity/PSWebHookActivity.cs delete mode 100644 src/Synapse/Synapse/Models/DataFlow/PSMappingDataFlow.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAmazonMWSObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAmazonRedshiftTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAvroDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureDataExplorerTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureMariaDBTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureMySqlTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzurePostgreSqlTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureSearchIndexDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureSqlDWTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureSqlMITableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureSqlTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSAzureTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSBinaryDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSCassandraTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSCommonDataServiceForAppsEntityDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSConcurObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSCosmosDbMongoDbApiCollectionDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSCosmosDbSqlApiCollectionDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSCouchbaseTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSCustomDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDatasetCompression.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDatasetLocation.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDb2TableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDelimitedTextDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDocumentDbCollectionDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDrillTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDynamicsAXResourceDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDynamicsCrmEntityDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSDynamicsEntityDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSEloquaObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSGoogleAdWordsObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSGoogleBigQueryObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSGreenplumTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSHBaseObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSHiveObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSHubspotObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSImpalaObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSInformixTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSJiraObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSJsonDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSMagentoObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSMariaDBTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSMarketoObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSMicrosoftAccessTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSMongoDbCollectionDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSMongoDbV2CollectionDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSMySqlTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSNetezzaTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSODataResourceDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSOdbcTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSOffice365Dataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSOracleServiceCloudObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSOracleTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSOrcDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSParquetDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSPaypalObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSPhoenixObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSPostgreSqlTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSPrestoObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSQuickBooksObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSRelationalTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSResponsysObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSRestResourceDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSalesforceMarketingCloudObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSalesforceObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSalesforceServiceCloudObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSapBwCubeDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSapCloudForCustomerResourceDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSapEccResourceDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSapHanaTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSapOpenHubTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSapTableResourceDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSServiceNowObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSShopifyObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSparkObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSqlServerTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSquareObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSSybaseTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSTeradataTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSVerticaTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSWebTableDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSXeroObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/Dataset/PSZohoObjectDataset.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAmazonMWSLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAmazonRedshiftLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAmazonS3LinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureBatchLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureBlobFSLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureBlobStorageLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureDataExplorerLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeAnalyticsLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeStoreLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureDatabricksLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureFileStorageLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureFunctionLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureKeyVaultLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureMLLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureMLServiceLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureMariaDBLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureMySqlLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzurePostgreSqlLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureSearchLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDWLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDatabaseLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureSqlMILinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureStorageLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSAzureTableStorageLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSCassandraLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSCommonDataServiceForAppsLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSConcurLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSCosmosDbLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSCosmosDbMongoDbApiLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSCouchbaseLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSCustomDataSourceLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSDb2LinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSDrillLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSDynamicsAXLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSDynamicsCrmLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSDynamicsLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSEloquaLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSFileServerLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSFtpServerLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSGoogleAdWordsLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSGoogleBigQueryLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSGoogleCloudStorageLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSGreenplumLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSHBaseLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSHDInsightLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSHDInsightOnDemandLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSHdfsLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSHiveLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSHttpLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSHubspotLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSImpalaLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSInformixLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSJiraLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSMagentoLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSMariaDBLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSMarketoLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSMicrosoftAccessLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSMongoDbLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSMongoDbV2LinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSMySqlLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSNetezzaLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSODataLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSOdbcLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSOffice365LinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSOracleLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSOracleServiceCloudLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSPaypalLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSPhoenixLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSPostgreSqlLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSPrestoLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSQuickBooksLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSResponsysLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSRestServiceLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSalesforceLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSalesforceMarketingCloudLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSalesforceServiceCloudLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSapBWLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSapCloudForCustomerLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSapEccLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSapHanaLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSapOpenHubLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSapTableLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSServiceNowLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSftpServerLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSShopifyLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSparkLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSqlServerLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSquareLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSSybaseLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSTeradataLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSVerticaLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSWebLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSXeroLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/LinkedService/PSZohoLinkedService.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSBlobEventsTrigger.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSMultiplePipelineTrigger.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSRecurrenceSchedule.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSRecurrenceScheduleOccurrence.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSScheduleTrigger.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSScheduleTriggerRecurrence.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSSinglePipelineTrigger.cs delete mode 100644 src/Synapse/Synapse/Models/Trigger/PSTumblingWindowTrigger.cs diff --git a/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/ExportAzureSynapseNotebook.cs b/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/ExportAzureSynapseNotebook.cs index dca8699b6f6d..3911d5464a7b 100644 --- a/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/ExportAzureSynapseNotebook.cs +++ b/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/ExportAzureSynapseNotebook.cs @@ -88,7 +88,7 @@ public override void ExecuteCmdlet() private void WriteToFile(PSNotebookResource notebook) { - string json = JsonConvert.SerializeObject(notebook.Properties, Formatting.Indented); + string json = Newtonsoft.Json.JsonConvert.SerializeObject(notebook.Properties, Formatting.Indented); File.WriteAllText(Path.Combine(this.OutputFolder, notebook.Name + ".ipynb"), json); } } diff --git a/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/SetAzureSynapseNotebook.cs b/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/SetAzureSynapseNotebook.cs index a14c617072dd..3d8f3dc1f4c7 100644 --- a/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/SetAzureSynapseNotebook.cs +++ b/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Notebooks/SetAzureSynapseNotebook.cs @@ -5,7 +5,6 @@ using Microsoft.Azure.Commands.Synapse.Models; using Microsoft.Azure.Commands.Synapse.Properties; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.IO; using System.Management.Automation; @@ -80,11 +79,17 @@ public override void ExecuteCmdlet() this.WorkspaceName = this.WorkspaceObject.Name; } + if (!this.IsParameterBound(c => c.Name)) + { + string path = this.TryResolvePath(DefinitionFile); + this.Name = Path.GetFileNameWithoutExtension(path); + } + if (this.ShouldProcess(this.WorkspaceName, String.Format(Resources.SettingSynapseNotebook, this.Name, this.WorkspaceName))) { string rawJsonContent = SynapseAnalyticsClient.ReadJsonFileContent(this.TryResolvePath(DefinitionFile)); - PSNotebook pSNotebook = JsonConvert.DeserializeObject(rawJsonContent); - NotebookResource notebookResource = new NotebookResource(pSNotebook.ToSdkObject()); + Notebook notebook = JsonConvert.DeserializeObject(rawJsonContent); + NotebookResource notebookResource = new NotebookResource(this.Name, notebook); if (this.IsParameterBound(c => c.SparkPoolName)) { @@ -115,11 +120,6 @@ public override void ExecuteCmdlet() notebookResource.Properties.SessionProperties = new NotebookSessionProperties(options["memory"] + "g", (int)options["cores"], options["memory"] + "g", (int)options["cores"], (int)options["nodeCount"]); } - if (!this.IsParameterBound(c => c.Name)) - { - string path = this.TryResolvePath(DefinitionFile); - this.Name = Path.GetFileNameWithoutExtension(path); - } WriteObject(new PSNotebookResource(SynapseAnalyticsClient.CreateOrUpdateNotebook(this.Name, notebookResource), this.WorkspaceName)); } } diff --git a/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/PipelineRuns/InvokeAzureSynapsePipeline.cs b/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/PipelineRuns/InvokeAzureSynapsePipeline.cs index f9ac921ff1f5..4f9847f9614c 100644 --- a/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/PipelineRuns/InvokeAzureSynapsePipeline.cs +++ b/src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/PipelineRuns/InvokeAzureSynapsePipeline.cs @@ -3,12 +3,12 @@ using Microsoft.Azure.Commands.Synapse.Models; using Microsoft.Azure.Commands.Synapse.Properties; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Management.Automation; +using JsonConvert = Newtonsoft.Json.JsonConvert; namespace Microsoft.Azure.Commands.Synapse { diff --git a/src/Synapse/Synapse/Common/JsonConvert.cs b/src/Synapse/Synapse/Common/JsonConvert.cs new file mode 100644 index 000000000000..ec448000f937 --- /dev/null +++ b/src/Synapse/Synapse/Common/JsonConvert.cs @@ -0,0 +1,42 @@ +using System.IO; +using System.Reflection; +using System.Text.Json; + +namespace Microsoft.Azure.Commands.Synapse.Common +{ + internal static class JsonConvert + { + internal static T DeserializeObject(string rawJsonContent) + { + var document = JsonDocument.Parse(rawJsonContent); + MethodInfo deserializer = typeof(T).GetMethod($"Deserialize{typeof(T).Name}", BindingFlags.NonPublic | BindingFlags.Static); + return (T) deserializer.Invoke(null, new object[] { document.RootElement }); + } + + internal static string SerializeObject(object obj) + { + // TODO: in future, we might consider to add option to allow users to specify JSON writer options. + using (MemoryStream memoryStream = new MemoryStream()) + using (Utf8JsonWriter writer = new Utf8JsonWriter(memoryStream, new JsonWriterOptions { Indented = true })) + { + SerializeObject(obj, writer); + return memoryStream.ToString(); + } + } + + internal static void SerializeObject(object obj, string outputPath) + { + using (FileStream writeStream = File.Open(outputPath, FileMode.Create)) + using (Utf8JsonWriter writer = new Utf8JsonWriter(writeStream)) + { + SerializeObject(obj, writer); + } + } + + internal static void SerializeObject(object obj, Utf8JsonWriter writer) + { + MethodInfo serializer = obj.GetType().GetMethod("Write", BindingFlags.NonPublic); + serializer.Invoke(obj, new object[] { writer }); + } + } +} diff --git a/src/Synapse/Synapse/Models/Activity/PSActivityPolicy.cs b/src/Synapse/Synapse/Models/Activity/PSActivityPolicy.cs deleted file mode 100644 index 50079cde3fa5..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSActivityPolicy.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSActivityPolicy - { - public PSActivityPolicy() { } - - [JsonProperty(PropertyName = "timeout")] - public object Timeout { get; set; } - - [JsonProperty(PropertyName = "retry")] - public object Retry { get; set; } - - [JsonProperty(PropertyName = "retryIntervalInSeconds")] - public int? RetryIntervalInSeconds { get; set; } - - [JsonProperty(PropertyName = "secureInput")] - public bool? SecureInput { get; set; } - - [JsonProperty(PropertyName = "secureOutput")] - public bool? SecureOutput { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public ActivityPolicy ToSdkObject() - { - var policy = new ActivityPolicy() - { - Timeout = this.Timeout, - Retry = this.Retry, - RetryIntervalInSeconds = this.RetryIntervalInSeconds, - SecureInput = this.SecureInput, - SecureOutput = this.SecureOutput - }; - this.AdditionalProperties?.ForEach(item => policy.Add(item.Key, item.Value)); - return policy; - } - } -} diff --git a/src/Synapse/Synapse/Models/Activity/PSAppendVariableActivity.cs b/src/Synapse/Synapse/Models/Activity/PSAppendVariableActivity.cs deleted file mode 100644 index 249f3d003862..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSAppendVariableActivity.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Append value for a Variable of type Array. - /// - [Newtonsoft.Json.JsonObject("AppendVariable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAppendVariableActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSAppendVariableActivity class. - /// - public PSAppendVariableActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the variable whose value needs to be appended - /// to. - /// - [JsonProperty(PropertyName = "typeProperties.variableName")] - public string VariableName { get; set; } - - /// - /// Gets or sets value to be appended. Could be a static value or - /// Expression - /// - [JsonProperty(PropertyName = "typeProperties.value")] - public object Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new AppendVariableActivity(this.Name); - activity.VariableName = this.VariableName; - activity.Value = this.Value; - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSAzureDataExplorerCommandActivity.cs b/src/Synapse/Synapse/Models/Activity/PSAzureDataExplorerCommandActivity.cs deleted file mode 100644 index 27957b4880a6..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSAzureDataExplorerCommandActivity.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Data Explorer command activity. - /// - [Newtonsoft.Json.JsonObject("AzureDataExplorerCommand")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureDataExplorerCommandActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the - /// PSAzureDataExplorerCommandActivity class. - /// - public PSAzureDataExplorerCommandActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets a control command, according to the Azure Data - /// Explorer command syntax. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.command")] - public object Command { get; set; } - - /// - /// Gets or sets control command timeout. Type: string (or Expression - /// with resultType string), pattern: - /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) - /// - [JsonProperty(PropertyName = "typeProperties.commandTimeout")] - public object CommandTimeout { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Command == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Command"); - } - } - - public override Activity ToSdkObject() - { - var activity = new AzureDataExplorerCommandActivity(this.Name, this.Command); - activity.CommandTimeout = this.CommandTimeout; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSAzureFunctionActivity.cs b/src/Synapse/Synapse/Models/Activity/PSAzureFunctionActivity.cs deleted file mode 100644 index 2fe234e6b07f..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSAzureFunctionActivity.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Function activity. - /// - [Newtonsoft.Json.JsonObject("AzureFunctionActivity")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureFunctionActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSAzureFunctionActivity class. - /// - public PSAzureFunctionActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rest API method for target endpoint. Possible values - /// include: 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'HEAD', 'TRACE' - /// - [JsonProperty(PropertyName = "typeProperties.method")] - public string Method { get; set; } - - /// - /// Gets or sets name of the Function that the Azure Function Activity - /// will call. Type: string (or Expression with resultType string) - /// - [JsonProperty(PropertyName = "typeProperties.functionName")] - public object FunctionName { get; set; } - - /// - /// Gets or sets represents the headers that will be sent to the - /// request. For example, to set the language and type on a request: - /// "headers" : { "Accept-Language": "en-us", "Content-Type": - /// "application/json" }. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.headers")] - public object Headers { get; set; } - - /// - /// Gets or sets represents the payload that will be sent to the - /// endpoint. Required for POST/PUT method, not allowed for GET method - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.body")] - public object Body { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Method == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Method"); - } - if (FunctionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FunctionName"); - } - } - - public override Activity ToSdkObject() - { - var activity = new AzureFunctionActivity(this.Name, this.Method, this.FunctionName); - activity.Headers = this.Headers; - activity.Body = this.Body; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSAzureMLBatchExecutionActivity.cs b/src/Synapse/Synapse/Models/Activity/PSAzureMLBatchExecutionActivity.cs deleted file mode 100644 index 4624b9134395..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSAzureMLBatchExecutionActivity.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure ML Batch Execution activity. - /// - [Newtonsoft.Json.JsonObject("AzureMLBatchExecution")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMLBatchExecutionActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSAzureMLBatchExecutionActivity - /// class. - /// - public PSAzureMLBatchExecutionActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets key,Value pairs to be passed to the Azure ML Batch - /// Execution Service endpoint. Keys must match the names of web - /// service parameters defined in the published Azure ML web service. - /// Values will be passed in the GlobalParameters property of the Azure - /// ML batch execution request. - /// - [JsonProperty(PropertyName = "typeProperties.globalParameters")] - public IDictionary GlobalParameters { get; set; } - - /// - /// Gets or sets key,Value pairs, mapping the names of Azure ML - /// endpoint's Web Service Outputs to AzureMLWebServiceFile objects - /// specifying the output Blob locations. This information will be - /// passed in the WebServiceOutputs property of the Azure ML batch - /// execution request. - /// - [JsonProperty(PropertyName = "typeProperties.webServiceOutputs")] - public IDictionary WebServiceOutputs { get; set; } - - /// - /// Gets or sets key,Value pairs, mapping the names of Azure ML - /// endpoint's Web Service Inputs to AzureMLWebServiceFile objects - /// specifying the input Blob locations.. This information will be - /// passed in the WebServiceInputs property of the Azure ML batch - /// execution request. - /// - [JsonProperty(PropertyName = "typeProperties.webServiceInputs")] - public IDictionary WebServiceInputs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new AzureMLBatchExecutionActivity(this.Name); - this.GlobalParameters?.ForEach(item => activity.GlobalParameters.Add(item)); - this.WebServiceOutputs?.ForEach(item => activity.WebServiceOutputs.Add(item)); - this.WebServiceInputs?.ForEach(item => activity.WebServiceInputs.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSAzureMLExecutePipelineActivity.cs b/src/Synapse/Synapse/Models/Activity/PSAzureMLExecutePipelineActivity.cs deleted file mode 100644 index a332f827b734..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSAzureMLExecutePipelineActivity.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure ML Execute Pipeline activity. - /// - [Newtonsoft.Json.JsonObject("AzureMLExecutePipeline")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMLExecutePipelineActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSAzureMLExecutePipelineActivity - /// class. - /// - public PSAzureMLExecutePipelineActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets ID of the published Azure ML pipeline. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.mlPipelineId")] - public object MlPipelineId { get; set; } - - /// - /// Gets or sets run history experiment name of the pipeline run. This - /// information will be passed in the ExperimentName property of the - /// published pipeline execution request. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.experimentName")] - public object ExperimentName { get; set; } - - /// - /// Gets or sets key,Value pairs to be passed to the published Azure ML - /// pipeline endpoint. Keys must match the names of pipeline parameters - /// defined in the published pipeline. Values will be passed in the - /// ParameterAssignments property of the published pipeline execution - /// request. Type: object with key value pairs (or Expression with - /// resultType object). - /// - [JsonProperty(PropertyName = "typeProperties.mlPipelineParameters")] - public object MlPipelineParameters { get; set; } - - /// - /// Gets or sets the parent Azure ML Service pipeline run id. This - /// information will be passed in the ParentRunId property of the - /// published pipeline execution request. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.mlParentRunId")] - public object MlParentRunId { get; set; } - - /// - /// Gets or sets whether to continue execution of other steps in the - /// PipelineRun if a step fails. This information will be passed in the - /// continueOnStepFailure property of the published pipeline execution - /// request. Type: boolean (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.continueOnStepFailure")] - public object ContinueOnStepFailure { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (MlPipelineId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MlPipelineId"); - } - } - - public override Activity ToSdkObject() - { - var activity = new AzureMLExecutePipelineActivity(this.Name, this.MlPipelineId); - activity.ExperimentName = this.ExperimentName; - activity.MlPipelineParameters = this.MlPipelineParameters; - activity.MlParentRunId = this.MlParentRunId; - activity.ContinueOnStepFailure = this.ContinueOnStepFailure; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSAzureMLUpdateResourceActivity.cs b/src/Synapse/Synapse/Models/Activity/PSAzureMLUpdateResourceActivity.cs deleted file mode 100644 index 7f549f033abc..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSAzureMLUpdateResourceActivity.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure ML Update Resource management activity. - /// - [Newtonsoft.Json.JsonObject("AzureMLUpdateResource")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMLUpdateResourceActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSAzureMLUpdateResourceActivity - /// class. - /// - public PSAzureMLUpdateResourceActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the Trained Model module in the Web Service - /// experiment to be updated. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.trainedModelName")] - public object TrainedModelName { get; set; } - - /// - /// Gets or sets name of Azure Storage linked service holding the - /// .ilearner file that will be uploaded by the update operation. - /// - [JsonProperty(PropertyName = "typeProperties.trainedModelLinkedServiceName")] - public LinkedServiceReference TrainedModelLinkedServiceName { get; set; } - - /// - /// Gets or sets the relative file path in trainedModelLinkedService to - /// represent the .ilearner file that will be uploaded by the update - /// operation. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.trainedModelFilePath")] - public object TrainedModelFilePath { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (TrainedModelName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TrainedModelName"); - } - if (TrainedModelLinkedServiceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TrainedModelLinkedServiceName"); - } - if (TrainedModelFilePath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TrainedModelFilePath"); - } - } - - public override Activity ToSdkObject() - { - var activity = new AzureMLUpdateResourceActivity(this.Name, this.TrainedModelName, this.TrainedModelLinkedServiceName, this.TrainedModelFilePath); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSControlActivity.cs b/src/Synapse/Synapse/Models/Activity/PSControlActivity.cs deleted file mode 100644 index d0fc41e78df8..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSControlActivity.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Base class for all control activities like IfCondition, ForEach , - /// Until. - /// - [Newtonsoft.Json.JsonObject("Container")] - public partial class PSControlActivity : PSActivity - { - /// - /// Initializes a new instance of the PSControlActivity class. - /// - public PSControlActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new ControlActivity(this.Name); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSCopyActivity.cs b/src/Synapse/Synapse/Models/Activity/PSCopyActivity.cs deleted file mode 100644 index 3f791cf9703d..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSCopyActivity.cs +++ /dev/null @@ -1,170 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Copy activity. - /// - [Newtonsoft.Json.JsonObject("Copy")] - [Rest.Serialization.JsonTransformation] - public partial class PSCopyActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSCopyActivity class. - /// - public PSCopyActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets copy activity source. - /// - [JsonProperty(PropertyName = "typeProperties.source")] - public PSCopySource Source { get; set; } - - /// - /// Gets or sets copy activity sink. - /// - [JsonProperty(PropertyName = "typeProperties.sink")] - public PSCopySink Sink { get; set; } - - /// - /// Gets or sets copy activity translator. If not specified, tabular - /// translator is used. - /// - [JsonProperty(PropertyName = "typeProperties.translator")] - public object Translator { get; set; } - - /// - /// Gets or sets specifies whether to copy data via an interim staging. - /// Default value is false. Type: boolean (or Expression with - /// resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableStaging")] - public object EnableStaging { get; set; } - - /// - /// Gets or sets specifies interim staging settings when EnableStaging - /// is true. - /// - [JsonProperty(PropertyName = "typeProperties.stagingSettings")] - public PSStagingSettings StagingSettings { get; set; } - - /// - /// Gets or sets maximum number of concurrent sessions opened on the - /// source or sink to avoid overloading the data store. Type: integer - /// (or Expression with resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.parallelCopies")] - public object ParallelCopies { get; set; } - - /// - /// Gets or sets maximum number of data integration units that can be - /// used to perform this data movement. Type: integer (or Expression - /// with resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.dataIntegrationUnits")] - public object DataIntegrationUnits { get; set; } - - /// - /// Gets or sets whether to skip incompatible row. Default value is - /// false. Type: boolean (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableSkipIncompatibleRow")] - public object EnableSkipIncompatibleRow { get; set; } - - /// - /// Gets or sets redirect incompatible row settings when - /// EnableSkipIncompatibleRow is true. - /// - [JsonProperty(PropertyName = "typeProperties.redirectIncompatibleRowSettings")] - public PSRedirectIncompatibleRowSettings RedirectIncompatibleRowSettings { get; set; } - - /// - /// Gets or sets preserve Rules. - /// - [JsonProperty(PropertyName = "typeProperties.preserveRules")] - public IList PreserveRules { get; set; } - - /// - /// Gets or sets preserve rules. - /// - [JsonProperty(PropertyName = "typeProperties.preserve")] - public IList Preserve { get; set; } - - /// - /// Gets or sets list of inputs for the activity. - /// - [JsonProperty(PropertyName = "inputs")] - public IList Inputs { get; set; } - - /// - /// Gets or sets list of outputs for the activity. - /// - [JsonProperty(PropertyName = "outputs")] - public IList Outputs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Source == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); - } - if (Sink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Sink"); - } - } - - public override Activity ToSdkObject() - { - var activity = new CopyActivity(this.Name, this.Source?.ToSdkObject(), this.Sink?.ToSdkObject()); - this.Inputs?.ForEach(item => activity.Inputs.Add(item)); - this.Outputs?.ForEach(item => activity.Outputs.Add(item)); - activity.Translator = this.Translator; - activity.EnableStaging = this.EnableStaging; - activity.StagingSettings = this.StagingSettings?.ToSdkObject(); - activity.ParallelCopies = this.ParallelCopies; - activity.DataIntegrationUnits = this.DataIntegrationUnits; - activity.EnableSkipIncompatibleRow = this.EnableSkipIncompatibleRow; - activity.RedirectIncompatibleRowSettings = this.RedirectIncompatibleRowSettings?.ToSdkObject(); - this.PreserveRules?.ForEach(item => activity.PreserveRules.Add(item)); - this.Preserve?.ForEach(item => activity.Preserve.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSCopySink.cs b/src/Synapse/Synapse/Models/Activity/PSCopySink.cs deleted file mode 100644 index 1fbc9b439dee..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSCopySink.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSCopySink - { - public PSCopySink() { } - - [JsonProperty(PropertyName = "writeBatchSize")] - public object WriteBatchSize { get; set; } - - [JsonProperty(PropertyName = "writeBatchTimeout")] - public object WriteBatchTimeout { get; set; } - - [JsonProperty(PropertyName = "sinkRetryCount")] - public object SinkRetryCount { get; set; } - - [JsonProperty(PropertyName = "sinkRetryWait")] - public object SinkRetryWait { get; set; } - - [JsonProperty(PropertyName = "maxConcurrentConnections")] - public object MaxConcurrentConnections { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public CopySink ToSdkObject() - { - var copySink = new CopySink() - { - WriteBatchSize = this.WriteBatchSize, - WriteBatchTimeout = this.WriteBatchTimeout, - SinkRetryCount = this.SinkRetryCount, - SinkRetryWait = this.SinkRetryWait, - MaxConcurrentConnections = this.MaxConcurrentConnections - }; - this.AdditionalProperties?.ForEach(item => copySink.Add(item.Key, item.Value)); - return copySink; - } - } -} diff --git a/src/Synapse/Synapse/Models/Activity/PSCopySource.cs b/src/Synapse/Synapse/Models/Activity/PSCopySource.cs deleted file mode 100644 index 8f405645fe36..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSCopySource.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSCopySource - { - public PSCopySource() { } - - [JsonProperty(PropertyName = "sourceRetryCount")] - public object SourceRetryCount { get; set; } - - [JsonProperty(PropertyName = "sourceRetryWait")] - public object SourceRetryWait { get; set; } - - [JsonProperty(PropertyName = "maxConcurrentConnections")] - public object MaxConcurrentConnections { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public CopySource ToSdkObject() - { - var copySource = new CopySource() - { - SourceRetryCount = this.SourceRetryCount, - SourceRetryWait = this.SourceRetryWait, - MaxConcurrentConnections = this.MaxConcurrentConnections - }; - this.AdditionalProperties?.ForEach(item => copySource.Add(item.Key, item.Value)); - return copySource; - } - } -} diff --git a/src/Synapse/Synapse/Models/Activity/PSCustomActivity.cs b/src/Synapse/Synapse/Models/Activity/PSCustomActivity.cs deleted file mode 100644 index 9b56e85823f9..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSCustomActivity.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Custom activity type. - /// - [Newtonsoft.Json.JsonObject("Custom")] - [Rest.Serialization.JsonTransformation] - public partial class PSCustomActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSCustomActivity class. - /// - public PSCustomActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets command for custom activity Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.command")] - public object Command { get; set; } - - /// - /// Gets or sets resource linked service reference. - /// - [JsonProperty(PropertyName = "typeProperties.resourceLinkedService")] - public LinkedServiceReference ResourceLinkedService { get; set; } - - /// - /// Gets or sets folder path for resource files Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.folderPath")] - public object FolderPath { get; set; } - - /// - /// Gets or sets reference objects - /// - [JsonProperty(PropertyName = "typeProperties.referenceObjects")] - public CustomActivityReferenceObject ReferenceObjects { get; set; } - - /// - /// Gets or sets user defined property bag. There is no restriction on - /// the keys or values that can be used. The user specified custom - /// activity has the full responsibility to consume and interpret the - /// content defined. - /// - [JsonProperty(PropertyName = "typeProperties.extendedProperties")] - public IDictionary ExtendedProperties { get; set; } - - /// - /// Gets or sets the retention time for the files submitted for custom - /// activity. Type: double (or Expression with resultType double). - /// - [JsonProperty(PropertyName = "typeProperties.retentionTimeInDays")] - public object RetentionTimeInDays { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Command == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Command"); - } - } - - public override Activity ToSdkObject() - { - var activity = new CustomActivity(this.Name, this.Command); - activity.ResourceLinkedService = this.ResourceLinkedService; - activity.FolderPath = this.FolderPath; - activity.ReferenceObjects = this.ReferenceObjects; - this.ExtendedProperties?.ForEach(item => activity.ExtendedProperties.Add(item)); - activity.RetentionTimeInDays = this.RetentionTimeInDays; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSDataFlowReference.cs b/src/Synapse/Synapse/Models/Activity/PSDataFlowReference.cs deleted file mode 100644 index 1ccc45f43c0f..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSDataFlowReference.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSDataFlowReference - { - public PSDataFlowReference() { } - - [JsonProperty(PropertyName = "type")] - public DataFlowReferenceType? Type { get; set; } - - [JsonProperty(PropertyName = "referenceName")] - public string ReferenceName { get; set; } - - [JsonProperty(PropertyName = "datasetParameters")] - public object DatasetParameters { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public DataFlowReference ToSdkObject() - { - var dataFlowReference = new DataFlowReference(this.Type.GetValueOrDefault(), this.ReferenceName) - { - DatasetParameters = this.DatasetParameters - }; - this.AdditionalProperties?.ForEach(item => dataFlowReference.Add(item.Key, item.Value)); - return dataFlowReference; - } - } -} diff --git a/src/Synapse/Synapse/Models/Activity/PSDataLakeAnalyticsUsqlActivity.cs b/src/Synapse/Synapse/Models/Activity/PSDataLakeAnalyticsUsqlActivity.cs deleted file mode 100644 index 6f6272aa1523..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSDataLakeAnalyticsUsqlActivity.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Data Lake Analytics U-SQL activity. - /// - [Newtonsoft.Json.JsonObject("DataLakeAnalyticsU-SQL")] - [Rest.Serialization.JsonTransformation] - public partial class PSDataLakeAnalyticsUsqlActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSDataLakeAnalyticsUSQLActivity - /// class. - /// - public PSDataLakeAnalyticsUsqlActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets case-sensitive path to folder that contains the U-SQL - /// script. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.scriptPath")] - public object ScriptPath { get; set; } - - /// - /// Gets or sets script linked service reference. - /// - [JsonProperty(PropertyName = "typeProperties.scriptLinkedService")] - public LinkedServiceReference ScriptLinkedService { get; set; } - - /// - /// Gets or sets the maximum number of nodes simultaneously used to run - /// the job. Default value is 1. Type: integer (or Expression with - /// resultType integer), minimum: 1. - /// - [JsonProperty(PropertyName = "typeProperties.degreeOfParallelism")] - public object DegreeOfParallelism { get; set; } - - /// - /// Gets or sets determines which jobs out of all that are queued - /// should be selected to run first. The lower the number, the higher - /// the priority. Default value is 1000. Type: integer (or Expression - /// with resultType integer), minimum: 1. - /// - [JsonProperty(PropertyName = "typeProperties.priority")] - public object Priority { get; set; } - - /// - /// Gets or sets parameters for U-SQL job request. - /// - [JsonProperty(PropertyName = "typeProperties.parameters")] - public IDictionary Parameters { get; set; } - - /// - /// Gets or sets runtime version of the U-SQL engine to use. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.runtimeVersion")] - public object RuntimeVersion { get; set; } - - /// - /// Gets or sets compilation mode of U-SQL. Must be one of these values - /// : Semantic, Full and SingleBox. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.compilationMode")] - public object CompilationMode { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ScriptPath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ScriptPath"); - } - if (ScriptLinkedService == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ScriptLinkedService"); - } - } - - public override Activity ToSdkObject() - { - var activity = new DataLakeAnalyticsUsqlActivity(this.Name, this.ScriptPath, this.ScriptLinkedService); - activity.DegreeOfParallelism = this.DegreeOfParallelism; - activity.Priority = this.Priority; - this.Parameters?.ForEach(item => activity.Parameters.Add(item)); - activity.RuntimeVersion = this.RuntimeVersion; - activity.CompilationMode = this.CompilationMode; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSDatabricksNotebookActivity.cs b/src/Synapse/Synapse/Models/Activity/PSDatabricksNotebookActivity.cs deleted file mode 100644 index bd7418f7a543..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSDatabricksNotebookActivity.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DatabricksNotebook activity. - /// - [Newtonsoft.Json.JsonObject("DatabricksNotebook")] - [Rest.Serialization.JsonTransformation] - public partial class PSDatabricksNotebookActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSDatabricksNotebookActivity - /// class. - /// - public PSDatabricksNotebookActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the absolute path of the notebook to be run in the - /// Databricks Workspace. This path must begin with a slash. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.notebookPath")] - public object NotebookPath { get; set; } - - /// - /// Gets or sets base parameters to be used for each run of this job.If - /// the notebook takes a parameter that is not specified, the default - /// value from the notebook will be used. - /// - [JsonProperty(PropertyName = "typeProperties.baseParameters")] - public IDictionary BaseParameters { get; set; } - - /// - /// Gets or sets a list of libraries to be installed on the cluster - /// that will execute the job. - /// - [JsonProperty(PropertyName = "typeProperties.libraries")] - public IList> Libraries { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (NotebookPath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "NotebookPath"); - } - } - - public override Activity ToSdkObject() - { - var activity = new DatabricksNotebookActivity(this.Name, this.NotebookPath); - this.BaseParameters?.ForEach(item => activity.BaseParameters.Add(item)); - this.Libraries?.ForEach(item => activity.Libraries.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSDatabricksSparkJarActivity.cs b/src/Synapse/Synapse/Models/Activity/PSDatabricksSparkJarActivity.cs deleted file mode 100644 index a1d0ed3de1bb..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSDatabricksSparkJarActivity.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DatabricksSparkJar activity. - /// - [Newtonsoft.Json.JsonObject("DatabricksSparkJar")] - [Rest.Serialization.JsonTransformation] - public partial class PSDatabricksSparkJarActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSDatabricksSparkJarActivity - /// class. - /// - public PSDatabricksSparkJarActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the full name of the class containing the main method - /// to be executed. This class must be contained in a JAR provided as a - /// library. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.mainClassName")] - public object MainClassName { get; set; } - - /// - /// Gets or sets parameters that will be passed to the main method. - /// - [JsonProperty(PropertyName = "typeProperties.parameters")] - public IList Parameters { get; set; } - - /// - /// Gets or sets a list of libraries to be installed on the cluster - /// that will execute the job. - /// - [JsonProperty(PropertyName = "typeProperties.libraries")] - public IList> Libraries { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (MainClassName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MainClassName"); - } - } - - public override Activity ToSdkObject() - { - var activity = new DatabricksSparkJarActivity(this.Name, this.MainClassName); - this.Parameters?.ForEach(item => activity.Parameters.Add(item)); - this.Libraries?.ForEach(item => activity.Libraries.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSDatabricksSparkPythonActivity.cs b/src/Synapse/Synapse/Models/Activity/PSDatabricksSparkPythonActivity.cs deleted file mode 100644 index 13b33a75e9dd..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSDatabricksSparkPythonActivity.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DatabricksSparkPython activity. - /// - [Newtonsoft.Json.JsonObject("DatabricksSparkPython")] - [Rest.Serialization.JsonTransformation] - public partial class PSDatabricksSparkPythonActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSDatabricksSparkPythonActivity - /// class. - /// - public PSDatabricksSparkPythonActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URI of the Python file to be executed. DBFS paths - /// are supported. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.pythonFile")] - public object PythonFile { get; set; } - - /// - /// Gets or sets command line parameters that will be passed to the - /// Python file. - /// - [JsonProperty(PropertyName = "typeProperties.parameters")] - public IList Parameters { get; set; } - - /// - /// Gets or sets a list of libraries to be installed on the cluster - /// that will execute the job. - /// - [JsonProperty(PropertyName = "typeProperties.libraries")] - public IList> Libraries { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (PythonFile == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PythonFile"); - } - } - - public override Activity ToSdkObject() - { - var activity = new DatabricksSparkPythonActivity(this.Name, this.PythonFile); - this.Parameters?.ForEach(item => activity.Parameters.Add(item)); - this.Libraries?.ForEach(item => activity.Libraries.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSDeleteActivity.cs b/src/Synapse/Synapse/Models/Activity/PSDeleteActivity.cs deleted file mode 100644 index b487647d2f74..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSDeleteActivity.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Delete activity. - /// - [Newtonsoft.Json.JsonObject("Delete")] - [Rest.Serialization.JsonTransformation] - public partial class PSDeleteActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSDeleteActivity class. - /// - public PSDeleteActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets if true, files or sub-folders under current folder - /// path will be deleted recursively. Default is false. Type: boolean - /// (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.recursive")] - public object Recursive { get; set; } - - /// - /// Gets or sets the max concurrent connections to connect data source - /// at the same time. - /// - [JsonProperty(PropertyName = "typeProperties.maxConcurrentConnections")] - public int? MaxConcurrentConnections { get; set; } - - /// - /// Gets or sets whether to record detailed logs of delete-activity - /// execution. Default value is false. Type: boolean (or Expression - /// with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableLogging")] - public object EnableLogging { get; set; } - - /// - /// Gets or sets log storage settings customer need to provide when - /// enableLogging is true. - /// - [JsonProperty(PropertyName = "typeProperties.logStorageSettings")] - public PSLogStorageSettings LogStorageSettings { get; set; } - - /// - /// Gets or sets delete activity dataset reference. - /// - [JsonProperty(PropertyName = "typeProperties.dataset")] - public DatasetReference Dataset { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Dataset == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Dataset"); - } - if (MaxConcurrentConnections < 1) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxConcurrentConnections", 1); - } - } - - public override Activity ToSdkObject() - { - var activity = new DeleteActivity(this.Name, this.Dataset); - activity.Recursive = this.Recursive; - activity.MaxConcurrentConnections = this.MaxConcurrentConnections; - activity.EnableLogging = this.EnableLogging; - activity.LogStorageSettings = this.LogStorageSettings?.ToSdkObject(); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSExecuteDataFlowActivity.cs b/src/Synapse/Synapse/Models/Activity/PSExecuteDataFlowActivity.cs deleted file mode 100644 index b31947b42707..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSExecuteDataFlowActivity.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Execute data flow activity. - /// - [Newtonsoft.Json.JsonObject("ExecuteDataFlow")] - [Rest.Serialization.JsonTransformation] - public partial class PSExecuteDataFlowActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSExecuteDataFlowActivity class. - /// - public PSExecuteDataFlowActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets data flow reference. - /// - [JsonProperty(PropertyName = "typeProperties.dataFlow")] - public PSDataFlowReference DataFlow { get; set; } - - /// - /// Gets or sets staging info for execute data flow activity. - /// - [JsonProperty(PropertyName = "typeProperties.staging")] - public DataFlowStagingInfo Staging { get; set; } - - /// - /// Gets or sets the integration runtime reference. - /// - [JsonProperty(PropertyName = "typeProperties.integrationRuntime")] - public IntegrationRuntimeReference IntegrationRuntime { get; set; } - - /// - /// Gets or sets compute properties for data flow activity. - /// - [JsonProperty(PropertyName = "typeProperties.compute")] - public ExecuteDataFlowActivityTypePropertiesCompute Compute { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (DataFlow == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DataFlow"); - } - } - - public override Activity ToSdkObject() - { - var activity = new ExecuteDataFlowActivity(this.Name, this.DataFlow?.ToSdkObject()); - activity.Staging = this.Staging; - activity.IntegrationRuntime = this.IntegrationRuntime; - activity.Compute = this.Compute; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSExecutePipelineActivity.cs b/src/Synapse/Synapse/Models/Activity/PSExecutePipelineActivity.cs deleted file mode 100644 index 5f4250c1395a..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSExecutePipelineActivity.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Execute pipeline activity. - /// - [Newtonsoft.Json.JsonObject("ExecutePipeline")] - [Rest.Serialization.JsonTransformation] - public partial class PSExecutePipelineActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSExecutePipelineActivity class. - /// - public PSExecutePipelineActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets pipeline reference. - /// - [JsonProperty(PropertyName = "typeProperties.pipeline")] - public PipelineReference Pipeline { get; set; } - - /// - /// Gets or sets pipeline parameters. - /// - [JsonProperty(PropertyName = "typeProperties.parameters")] - public IDictionary Parameters { get; set; } - - /// - /// Gets or sets defines whether activity execution will wait for the - /// dependent pipeline execution to finish. Default is false. - /// - [JsonProperty(PropertyName = "typeProperties.waitOnCompletion")] - public bool? WaitOnCompletion { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Pipeline == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Pipeline"); - } - } - - public override Activity ToSdkObject() - { - var activity = new ExecutePipelineActivity(this.Name, this.Pipeline); - this.Parameters?.ForEach(item => activity.Parameters.Add(item)); - activity.WaitOnCompletion = this.WaitOnCompletion; - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSExecuteSsisPackageActivity.cs b/src/Synapse/Synapse/Models/Activity/PSExecuteSsisPackageActivity.cs deleted file mode 100644 index 43994d554747..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSExecuteSsisPackageActivity.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Execute SSIS package activity. - /// - [Newtonsoft.Json.JsonObject("ExecuteSSISPackage")] - [Rest.Serialization.JsonTransformation] - public partial class PSExecuteSsisPackageActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSExecuteSSISPackageActivity - /// class. - /// - public PSExecuteSsisPackageActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets SSIS package location. - /// - [JsonProperty(PropertyName = "typeProperties.packageLocation")] - public SsisPackageLocation PackageLocation { get; set; } - - /// - /// Gets or sets specifies the runtime to execute SSIS package. The - /// value should be "x86" or "x64". Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.runtime")] - public object Runtime { get; set; } - - /// - /// Gets or sets the logging level of SSIS package execution. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.loggingLevel")] - public object LoggingLevel { get; set; } - - /// - /// Gets or sets the environment path to execute the SSIS package. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.environmentPath")] - public object EnvironmentPath { get; set; } - - /// - /// Gets or sets the package execution credential. - /// - [JsonProperty(PropertyName = "typeProperties.executionCredential")] - public SsisExecutionCredential ExecutionCredential { get; set; } - - /// - /// Gets or sets the integration runtime reference. - /// - [JsonProperty(PropertyName = "typeProperties.connectVia")] - public IntegrationRuntimeReference ConnectVia { get; set; } - - /// - /// Gets or sets the project level parameters to execute the SSIS - /// package. - /// - [JsonProperty(PropertyName = "typeProperties.projectParameters")] - public IDictionary ProjectParameters { get; set; } - - /// - /// Gets or sets the package level parameters to execute the SSIS - /// package. - /// - [JsonProperty(PropertyName = "typeProperties.packageParameters")] - public IDictionary PackageParameters { get; set; } - - /// - /// Gets or sets the project level connection managers to execute the - /// SSIS package. - /// - [JsonProperty(PropertyName = "typeProperties.projectConnectionManagers")] - public IDictionary> ProjectConnectionManagers { get; set; } - - /// - /// Gets or sets the package level connection managers to execute the - /// SSIS package. - /// - [JsonProperty(PropertyName = "typeProperties.packageConnectionManagers")] - public IDictionary> PackageConnectionManagers { get; set; } - - /// - /// Gets or sets the property overrides to execute the SSIS package. - /// - [JsonProperty(PropertyName = "typeProperties.propertyOverrides")] - public IDictionary PropertyOverrides { get; set; } - - /// - /// Gets or sets SSIS package execution log location. - /// - [JsonProperty(PropertyName = "typeProperties.logLocation")] - public SsisLogLocation LogLocation { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (PackageLocation == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PackageLocation"); - } - if (ConnectVia == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectVia"); - } - } - - public override Activity ToSdkObject() - { - var activity = new ExecuteSsisPackageActivity(this.Name, this.PackageLocation, this.ConnectVia); - activity.Runtime = this.Runtime; - activity.LoggingLevel = this.LoggingLevel; - activity.EnvironmentPath = this.EnvironmentPath; - activity.ExecutionCredential = this.ExecutionCredential; - this.ProjectParameters?.ForEach(item => activity.ProjectParameters.Add(item)); - this.PackageParameters?.ForEach(item => activity.PackageParameters.Add(item)); - this.ProjectConnectionManagers?.ForEach(item => activity.ProjectConnectionManagers.Add(item.Key, item.Value)); - this.PackageConnectionManagers?.ForEach(item => activity.PackageConnectionManagers.Add(item.Key, item.Value)); - this.PropertyOverrides?.ForEach(item => activity.PropertyOverrides.Add(item)); - activity.LogLocation = this.LogLocation; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSExecutionActivity.cs b/src/Synapse/Synapse/Models/Activity/PSExecutionActivity.cs deleted file mode 100644 index 171f94898950..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSExecutionActivity.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Base class for all execution activities. - /// - [Newtonsoft.Json.JsonObject("Execution")] - public partial class PSExecutionActivity : PSActivity - { - /// - /// Initializes a new instance of the PSExecutionActivity class. - /// - public PSExecutionActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets linked service reference. - /// - [JsonProperty(PropertyName = "linkedServiceName")] - public LinkedServiceReference LinkedServiceName { get; set; } - - /// - /// Gets or sets activity policy. - /// - [JsonProperty(PropertyName = "policy")] - public PSActivityPolicy Policy { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new ExecutionActivity(this.Name); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSFilterActivity.cs b/src/Synapse/Synapse/Models/Activity/PSFilterActivity.cs deleted file mode 100644 index 0888c007eb59..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSFilterActivity.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Filter and return results from input array based on the conditions. - /// - [Newtonsoft.Json.JsonObject("Filter")] - [Rest.Serialization.JsonTransformation] - public partial class PSFilterActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSFilterActivity class. - /// - public PSFilterActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets input array on which filter should be applied. - /// - [JsonProperty(PropertyName = "typeProperties.items")] - public Expression Items { get; set; } - - /// - /// Gets or sets condition to be used for filtering the input. - /// - [JsonProperty(PropertyName = "typeProperties.condition")] - public Expression Condition { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Items == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Condition == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Condition"); - } - } - - public override Activity ToSdkObject() - { - var activity = new FilterActivity(this.Name, this.Items, this.Condition); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSForEachActivity.cs b/src/Synapse/Synapse/Models/Activity/PSForEachActivity.cs deleted file mode 100644 index 8461f90bcfd0..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSForEachActivity.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This activity is used for iterating over a collection and execute given - /// activities. - /// - [Newtonsoft.Json.JsonObject("ForEach")] - [Rest.Serialization.JsonTransformation] - public partial class PSForEachActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSForEachActivity class. - /// - public PSForEachActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets should the loop be executed in sequence or in parallel - /// (max 50) - /// - [JsonProperty(PropertyName = "typeProperties.isSequential")] - public bool? IsSequential { get; set; } - - /// - /// Gets or sets batch count to be used for controlling the number of - /// parallel execution (when isSequential is set to false). - /// - [JsonProperty(PropertyName = "typeProperties.batchCount")] - public int? BatchCount { get; set; } - - /// - /// Gets or sets collection to iterate. - /// - [JsonProperty(PropertyName = "typeProperties.items")] - public Expression Items { get; set; } - - /// - /// Gets or sets list of activities to execute . - /// - [JsonProperty(PropertyName = "typeProperties.activities")] - public IList Activities { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Items == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Activities == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Activities"); - } - if (BatchCount > 50) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "BatchCount", 50); - } - if (Activities != null) - { - foreach (var element in Activities) - { - if (element != null) - { - element.Validate(); - } - } - } - } - - public override Activity ToSdkObject() - { - var activity = new ForEachActivity(this.Name, this.Items, this.Activities?.Select(element => element?.ToSdkObject())); - activity.IsSequential = this.IsSequential; - activity.BatchCount = this.BatchCount; - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSGetMetadataActivity.cs b/src/Synapse/Synapse/Models/Activity/PSGetMetadataActivity.cs deleted file mode 100644 index 7b06c4681e7e..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSGetMetadataActivity.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Activity to get metadata of dataset - /// - [Newtonsoft.Json.JsonObject("GetMetadata")] - [Rest.Serialization.JsonTransformation] - public partial class PSGetMetadataActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSGetMetadataActivity class. - /// - public PSGetMetadataActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets getMetadata activity dataset reference. - /// - [JsonProperty(PropertyName = "typeProperties.dataset")] - public DatasetReference Dataset { get; set; } - - /// - /// Gets or sets fields of metadata to get from dataset. - /// - [JsonProperty(PropertyName = "typeProperties.fieldList")] - public IList FieldList { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Dataset == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Dataset"); - } - } - - public override Activity ToSdkObject() - { - var activity = new GetMetadataActivity(this.Name, this.Dataset); - this.FieldList?.ForEach(item => activity.FieldList.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSHDInsightHiveActivity.cs b/src/Synapse/Synapse/Models/Activity/PSHDInsightHiveActivity.cs deleted file mode 100644 index f4ac00e65d9c..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSHDInsightHiveActivity.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HDInsight Hive activity type. - /// - [Newtonsoft.Json.JsonObject("HDInsightHive")] - [Rest.Serialization.JsonTransformation] - public partial class PSHDInsightHiveActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSHDInsightHiveActivity class. - /// - public PSHDInsightHiveActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets storage linked service references. - /// - [JsonProperty(PropertyName = "typeProperties.storageLinkedServices")] - public IList StorageLinkedServices { get; set; } - - /// - /// Gets or sets user specified arguments to HDInsightActivity. - /// - [JsonProperty(PropertyName = "typeProperties.arguments")] - public IList Arguments { get; set; } - - /// - /// Gets or sets debug info option. Possible values include: 'None', - /// 'Always', 'Failure' - /// - [JsonProperty(PropertyName = "typeProperties.getDebugInfo")] - public string GetDebugInfo { get; set; } - - /// - /// Gets or sets script path. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.scriptPath")] - public object ScriptPath { get; set; } - - /// - /// Gets or sets script linked service reference. - /// - [JsonProperty(PropertyName = "typeProperties.scriptLinkedService")] - public LinkedServiceReference ScriptLinkedService { get; set; } - - /// - /// Gets or sets allows user to specify defines for Hive job request. - /// - [JsonProperty(PropertyName = "typeProperties.defines")] - public IDictionary Defines { get; set; } - - /// - /// Gets or sets user specified arguments under hivevar namespace. - /// - [JsonProperty(PropertyName = "typeProperties.variables")] - public IList Variables { get; set; } - - /// - /// Gets or sets query timeout value (in minutes). Effective when the - /// HDInsight cluster is with ESP (Enterprise Security Package) - /// - [JsonProperty(PropertyName = "typeProperties.queryTimeout")] - public int? QueryTimeout { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new HDInsightHiveActivity(this.Name); - this.StorageLinkedServices?.ForEach(item => activity.StorageLinkedServices.Add(item)); - this.Arguments?.ForEach(item => activity.Arguments.Add(item)); - activity.GetDebugInfo = this.GetDebugInfo; - activity.ScriptPath = this.ScriptPath; - activity.ScriptLinkedService = this.ScriptLinkedService; - this.Defines?.ForEach(item => activity.Defines.Add(item)); - this.Variables?.ForEach(item => activity.Variables.Add(item)); - activity.QueryTimeout = this.QueryTimeout; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSHDInsightMapReduceActivity.cs b/src/Synapse/Synapse/Models/Activity/PSHDInsightMapReduceActivity.cs deleted file mode 100644 index fcc846f17a5e..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSHDInsightMapReduceActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HDInsight MapReduce activity type. - /// - [Newtonsoft.Json.JsonObject("HDInsightMapReduce")] - [Rest.Serialization.JsonTransformation] - public partial class PSHDInsightMapReduceActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSHDInsightMapReduceActivity - /// class. - /// - public PSHDInsightMapReduceActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets storage linked service references. - /// - [JsonProperty(PropertyName = "typeProperties.storageLinkedServices")] - public IList StorageLinkedServices { get; set; } - - /// - /// Gets or sets user specified arguments to HDInsightActivity. - /// - [JsonProperty(PropertyName = "typeProperties.arguments")] - public IList Arguments { get; set; } - - /// - /// Gets or sets debug info option. Possible values include: 'None', - /// 'Always', 'Failure' - /// - [JsonProperty(PropertyName = "typeProperties.getDebugInfo")] - public string GetDebugInfo { get; set; } - - /// - /// Gets or sets class name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.className")] - public object ClassName { get; set; } - - /// - /// Gets or sets jar path. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.jarFilePath")] - public object JarFilePath { get; set; } - - /// - /// Gets or sets jar linked service reference. - /// - [JsonProperty(PropertyName = "typeProperties.jarLinkedService")] - public LinkedServiceReference JarLinkedService { get; set; } - - /// - /// Gets or sets jar libs. - /// - [JsonProperty(PropertyName = "typeProperties.jarLibs")] - public IList JarLibs { get; set; } - - /// - /// Gets or sets allows user to specify defines for the MapReduce job - /// request. - /// - [JsonProperty(PropertyName = "typeProperties.defines")] - public IDictionary Defines { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ClassName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClassName"); - } - if (JarFilePath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "JarFilePath"); - } - } - - public override Activity ToSdkObject() - { - var activity = new HDInsightMapReduceActivity(this.Name, this.ClassName, this.JarFilePath); - this.StorageLinkedServices?.ForEach(item => activity.StorageLinkedServices.Add(item)); - this.Arguments?.ForEach(item => activity.Arguments.Add(item)); - activity.GetDebugInfo = this.GetDebugInfo; - activity.JarLinkedService = this.JarLinkedService; - this.JarLibs?.ForEach(item => activity.JarLibs.Add(item)); - this.Defines?.ForEach(item => activity.Defines.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSHDInsightPigActivity.cs b/src/Synapse/Synapse/Models/Activity/PSHDInsightPigActivity.cs deleted file mode 100644 index 0a8e5000683a..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSHDInsightPigActivity.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HDInsight Pig activity type. - /// - [Newtonsoft.Json.JsonObject("HDInsightPig")] - [Rest.Serialization.JsonTransformation] - public partial class PSHDInsightPigActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSHDInsightPigActivity class. - /// - public PSHDInsightPigActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets storage linked service references. - /// - [JsonProperty(PropertyName = "typeProperties.storageLinkedServices")] - public IList StorageLinkedServices { get; set; } - - /// - /// Gets or sets user specified arguments to HDInsightActivity. Type: - /// array (or Expression with resultType array). - /// - [JsonProperty(PropertyName = "typeProperties.arguments")] - public object Arguments { get; set; } - - /// - /// Gets or sets debug info option. Possible values include: 'None', - /// 'Always', 'Failure' - /// - [JsonProperty(PropertyName = "typeProperties.getDebugInfo")] - public string GetDebugInfo { get; set; } - - /// - /// Gets or sets script path. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.scriptPath")] - public object ScriptPath { get; set; } - - /// - /// Gets or sets script linked service reference. - /// - [JsonProperty(PropertyName = "typeProperties.scriptLinkedService")] - public LinkedServiceReference ScriptLinkedService { get; set; } - - /// - /// Gets or sets allows user to specify defines for Pig job request. - /// - [JsonProperty(PropertyName = "typeProperties.defines")] - public IDictionary Defines { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new HDInsightPigActivity(this.Name); - this.StorageLinkedServices?.ForEach(item => activity.StorageLinkedServices.Add(item)); - activity.Arguments = this.Arguments; - activity.GetDebugInfo = this.GetDebugInfo; - activity.ScriptPath = this.ScriptPath; - activity.ScriptLinkedService = this.ScriptLinkedService; - this.Defines?.ForEach(item => activity.Defines.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSHDInsightSparkActivity.cs b/src/Synapse/Synapse/Models/Activity/PSHDInsightSparkActivity.cs deleted file mode 100644 index db9bbacc002d..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSHDInsightSparkActivity.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HDInsight Spark activity. - /// - [Newtonsoft.Json.JsonObject("HDInsightSpark")] - [Rest.Serialization.JsonTransformation] - public partial class PSHDInsightSparkActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSHDInsightSparkActivity class. - /// - public PSHDInsightSparkActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the root path in 'sparkJobLinkedService' for all the - /// job’s files. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.rootPath")] - public object RootPath { get; set; } - - /// - /// Gets or sets the relative path to the root folder of the - /// code/package to be executed. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.entryFilePath")] - public object EntryFilePath { get; set; } - - /// - /// Gets or sets the user-specified arguments to - /// HDInsightSparkActivity. - /// - [JsonProperty(PropertyName = "typeProperties.arguments")] - public IList Arguments { get; set; } - - /// - /// Gets or sets debug info option. Possible values include: 'None', - /// 'Always', 'Failure' - /// - [JsonProperty(PropertyName = "typeProperties.getDebugInfo")] - public string GetDebugInfo { get; set; } - - /// - /// Gets or sets the storage linked service for uploading the entry - /// file and dependencies, and for receiving logs. - /// - [JsonProperty(PropertyName = "typeProperties.sparkJobLinkedService")] - public LinkedServiceReference SparkJobLinkedService { get; set; } - - /// - /// Gets or sets the application's Java/Spark main class. - /// - [JsonProperty(PropertyName = "typeProperties.className")] - public string ClassName { get; set; } - - /// - /// Gets or sets the user to impersonate that will execute the job. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.proxyUser")] - public object ProxyUser { get; set; } - - /// - /// Gets or sets spark configuration property. - /// - [JsonProperty(PropertyName = "typeProperties.sparkConfig")] - public IDictionary SparkConfig { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (RootPath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RootPath"); - } - if (EntryFilePath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "EntryFilePath"); - } - } - - public override Activity ToSdkObject() - { - var activity = new HDInsightSparkActivity(this.Name, this.RootPath, this.EntryFilePath); - this.Arguments?.ForEach(item => activity.Arguments.Add(item)); - activity.GetDebugInfo = this.GetDebugInfo; - activity.SparkJobLinkedService = this.SparkJobLinkedService; - activity.ClassName = this.ClassName; - activity.ProxyUser = this.ProxyUser; - this.SparkConfig?.ForEach(item => activity.SparkConfig.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSHDInsightStreamingActivity.cs b/src/Synapse/Synapse/Models/Activity/PSHDInsightStreamingActivity.cs deleted file mode 100644 index f5e3bd5520b7..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSHDInsightStreamingActivity.cs +++ /dev/null @@ -1,170 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HDInsight streaming activity type. - /// - [Newtonsoft.Json.JsonObject("HDInsightStreaming")] - [Rest.Serialization.JsonTransformation] - public partial class PSHDInsightStreamingActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSHDInsightStreamingActivity - /// class. - /// - public PSHDInsightStreamingActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets storage linked service references. - /// - [JsonProperty(PropertyName = "typeProperties.storageLinkedServices")] - public IList StorageLinkedServices { get; set; } - - /// - /// Gets or sets user specified arguments to HDInsightActivity. - /// - [JsonProperty(PropertyName = "typeProperties.arguments")] - public IList Arguments { get; set; } - - /// - /// Gets or sets debug info option. Possible values include: 'None', - /// 'Always', 'Failure' - /// - [JsonProperty(PropertyName = "typeProperties.getDebugInfo")] - public string GetDebugInfo { get; set; } - - /// - /// Gets or sets mapper executable name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.mapper")] - public object Mapper { get; set; } - - /// - /// Gets or sets reducer executable name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.reducer")] - public object Reducer { get; set; } - - /// - /// Gets or sets input blob path. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.input")] - public object Input { get; set; } - - /// - /// Gets or sets output blob path. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.output")] - public object Output { get; set; } - - /// - /// Gets or sets paths to streaming job files. Can be directories. - /// - [JsonProperty(PropertyName = "typeProperties.filePaths")] - public IList FilePaths { get; set; } - - /// - /// Gets or sets linked service reference where the files are located. - /// - [JsonProperty(PropertyName = "typeProperties.fileLinkedService")] - public LinkedServiceReference FileLinkedService { get; set; } - - /// - /// Gets or sets combiner executable name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.combiner")] - public object Combiner { get; set; } - - /// - /// Gets or sets command line environment values. - /// - [JsonProperty(PropertyName = "typeProperties.commandEnvironment")] - public IList CommandEnvironment { get; set; } - - /// - /// Gets or sets allows user to specify defines for streaming job - /// request. - /// - [JsonProperty(PropertyName = "typeProperties.defines")] - public IDictionary Defines { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Mapper == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Mapper"); - } - if (Reducer == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Reducer"); - } - if (Input == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Input"); - } - if (Output == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Output"); - } - if (FilePaths == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FilePaths"); - } - } - - public override Activity ToSdkObject() - { - var activity = new HDInsightStreamingActivity(this.Name, this.Mapper, this.Reducer, this.Input, this.Output, this.FilePaths); - this.StorageLinkedServices?.ForEach(item => activity.StorageLinkedServices.Add(item)); - this.Arguments?.ForEach(item => activity.Arguments.Add(item)); - activity.GetDebugInfo = this.GetDebugInfo; - activity.FileLinkedService = this.FileLinkedService; - activity.Combiner = this.Combiner; - this.CommandEnvironment?.ForEach(item => activity.CommandEnvironment.Add(item)); - this.Defines?.ForEach(item => activity.Defines.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSIfConditionActivity.cs b/src/Synapse/Synapse/Models/Activity/PSIfConditionActivity.cs deleted file mode 100644 index 4bf4d90a51ad..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSIfConditionActivity.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This activity evaluates a boolean expression and executes either the - /// activities under the ifTrueActivities property or the ifFalseActivities - /// property depending on the result of the expression. - /// - [Newtonsoft.Json.JsonObject("IfCondition")] - [Rest.Serialization.JsonTransformation] - public partial class PSIfConditionActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSIfConditionActivity class. - /// - public PSIfConditionActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an expression that would evaluate to Boolean. This is - /// used to determine the block of activities (ifTrueActivities or - /// ifFalseActivities) that will be executed. - /// - [JsonProperty(PropertyName = "typeProperties.expression")] - public Expression Expression { get; set; } - - /// - /// Gets or sets list of activities to execute if expression is - /// evaluated to true. This is an optional property and if not - /// provided, the activity will exit without any action. - /// - [JsonProperty(PropertyName = "typeProperties.ifTrueActivities")] - public IList IfTrueActivities { get; set; } - - /// - /// Gets or sets list of activities to execute if expression is - /// evaluated to false. This is an optional property and if not - /// provided, the activity will exit without any action. - /// - [JsonProperty(PropertyName = "typeProperties.ifFalseActivities")] - public IList IfFalseActivities { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Expression == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Expression"); - } - if (IfTrueActivities != null) - { - foreach (var element in IfTrueActivities) - { - if (element != null) - { - element.Validate(); - } - } - } - if (IfFalseActivities != null) - { - foreach (var element1 in IfFalseActivities) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - } - - public override Activity ToSdkObject() - { - var activity = new IfConditionActivity(this.Name, this.Expression); - this.IfTrueActivities?.ForEach(item => activity.IfTrueActivities.Add(item?.ToSdkObject())); - this.IfFalseActivities?.ForEach(item => activity.IfFalseActivities.Add(item?.ToSdkObject())); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSLogStorageSettings.cs b/src/Synapse/Synapse/Models/Activity/PSLogStorageSettings.cs deleted file mode 100644 index f823fd715b64..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSLogStorageSettings.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSLogStorageSettings - { - public PSLogStorageSettings() { } - - [JsonProperty(PropertyName = "linkedServiceName")] - public LinkedServiceReference LinkedServiceName { get; set; } - - [JsonProperty(PropertyName = "path")] - public object Path { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public LogStorageSettings ToSdkObject() - { - var logStorageSettings = new LogStorageSettings(this.LinkedServiceName) - { - Path = this.Path - }; - this.AdditionalProperties?.ForEach(item => logStorageSettings.Add(item.Key, item.Value)); - return logStorageSettings; - } - } -} diff --git a/src/Synapse/Synapse/Models/Activity/PSLookupActivity.cs b/src/Synapse/Synapse/Models/Activity/PSLookupActivity.cs deleted file mode 100644 index f93f73f0fd4e..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSLookupActivity.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Lookup activity. - /// - [Newtonsoft.Json.JsonObject("Lookup")] - [Rest.Serialization.JsonTransformation] - public partial class PSLookupActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSLookupActivity class. - /// - public PSLookupActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets dataset-specific source properties, same as copy - /// activity source. - /// - [JsonProperty(PropertyName = "typeProperties.source")] - public PSCopySource Source { get; set; } - - /// - /// Gets or sets lookup activity dataset reference. - /// - [JsonProperty(PropertyName = "typeProperties.dataset")] - public DatasetReference Dataset { get; set; } - - /// - /// Gets or sets whether to return first row or all rows. Default value - /// is true. Type: boolean (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.firstRowOnly")] - public object FirstRowOnly { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Source == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); - } - if (Dataset == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Dataset"); - } - } - - public override Activity ToSdkObject() - { - var activity = new LookupActivity(this.Name, this.Source?.ToSdkObject(), this.Dataset); - activity.FirstRowOnly = this.FirstRowOnly; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSRedirectIncompatibleRowSettings.cs b/src/Synapse/Synapse/Models/Activity/PSRedirectIncompatibleRowSettings.cs deleted file mode 100644 index 405a375938cb..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSRedirectIncompatibleRowSettings.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSRedirectIncompatibleRowSettings - { - public PSRedirectIncompatibleRowSettings() { } - - [JsonProperty(PropertyName = "linkedServiceName")] - public object LinkedServiceName { get; set; } - - [JsonProperty(PropertyName = "path")] - public object Path { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public RedirectIncompatibleRowSettings ToSdkObject() - { - var settings = new RedirectIncompatibleRowSettings(this.LinkedServiceName) - { - Path = this.Path - }; - this.AdditionalProperties?.ForEach(item => settings.Add(item.Key, item.Value)); - return settings; - } - } -} diff --git a/src/Synapse/Synapse/Models/Activity/PSSetVariableActivity.cs b/src/Synapse/Synapse/Models/Activity/PSSetVariableActivity.cs deleted file mode 100644 index 48908393f390..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSSetVariableActivity.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Set value for a Variable. - /// - [Newtonsoft.Json.JsonObject("SetVariable")] - [Rest.Serialization.JsonTransformation] - public partial class PSSetVariableActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSSetVariableActivity class. - /// - public PSSetVariableActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the variable whose value needs to be set. - /// - [JsonProperty(PropertyName = "typeProperties.variableName")] - public string VariableName { get; set; } - - /// - /// Gets or sets value to be set. Could be a static value or Expression - /// - [JsonProperty(PropertyName = "typeProperties.value")] - public object Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new SetVariableActivity(this.Name); - activity.VariableName = this.VariableName; - activity.Value = this.Value; - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSSqlPoolStoredProcedureActivity.cs b/src/Synapse/Synapse/Models/Activity/PSSqlPoolStoredProcedureActivity.cs deleted file mode 100644 index e91a98e2dbd0..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSSqlPoolStoredProcedureActivity.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Execute SQL pool stored procedure activity. - /// - [Newtonsoft.Json.JsonObject("SqlPoolStoredProcedure")] - [Rest.Serialization.JsonTransformation] - public partial class PSSqlPoolStoredProcedureActivity : PSActivity - { - /// - /// Initializes a new instance of the SqlPoolStoredProcedureActivity - /// class. - /// - public PSSqlPoolStoredProcedureActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets SQL pool stored procedure reference. - /// - [JsonProperty(PropertyName = "sqlPool")] - public SqlPoolReference SqlPool { get; set; } - - /// - /// Gets or sets stored procedure name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.storedProcedureName")] - public object StoredProcedureName { get; set; } - - /// - /// Gets or sets value and type setting for stored procedure - /// parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - /// - [JsonProperty(PropertyName = "typeProperties.storedProcedureParameters")] - public IDictionary StoredProcedureParameters { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (SqlPool == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SqlPool"); - } - if (StoredProcedureName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StoredProcedureName"); - } - } - - public override Activity ToSdkObject() - { - var activity = new SqlPoolStoredProcedureActivity(this.Name, this.SqlPool, this.StoredProcedureName); - this.StoredProcedureParameters?.ForEach(item => activity.StoredProcedureParameters.Add(item)); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSSqlServerStoredProcedureActivity.cs b/src/Synapse/Synapse/Models/Activity/PSSqlServerStoredProcedureActivity.cs deleted file mode 100644 index 31ba1ed7aabe..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSSqlServerStoredProcedureActivity.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SQL stored procedure activity type. - /// - [Newtonsoft.Json.JsonObject("SqlServerStoredProcedure")] - [Rest.Serialization.JsonTransformation] - public partial class PSSqlServerStoredProcedureActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the - /// PSSqlServerStoredProcedureActivity class. - /// - public PSSqlServerStoredProcedureActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets stored procedure name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.storedProcedureName")] - public object StoredProcedureName { get; set; } - - /// - /// Gets or sets value and type setting for stored procedure - /// parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - /// - [JsonProperty(PropertyName = "typeProperties.storedProcedureParameters")] - public IDictionary StoredProcedureParameters { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (StoredProcedureName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StoredProcedureName"); - } - } - - public override Activity ToSdkObject() - { - var activity = new SqlServerStoredProcedureActivity(this.Name, this.StoredProcedureName); - this.StoredProcedureParameters?.ForEach(item => activity.StoredProcedureParameters.Add(item)); - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSStagingSettings.cs b/src/Synapse/Synapse/Models/Activity/PSStagingSettings.cs deleted file mode 100644 index 43fa3ef9ac5c..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSStagingSettings.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSStagingSettings - { - public PSStagingSettings() { } - - [JsonProperty(PropertyName = "linkedServiceName")] - public LinkedServiceReference LinkedServiceName { get; set; } - - [JsonProperty(PropertyName = "path")] - public object Path { get; set; } - - [JsonProperty(PropertyName = "enableCompression")] - public object EnableCompression { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public StagingSettings ToSdkObject() - { - var settings = new StagingSettings(this.LinkedServiceName) - { - Path = this.Path, - EnableCompression = this.EnableCompression - }; - this.AdditionalProperties?.ForEach(item => settings.Add(item.Key, item.Value)); - return settings; - } - } -} diff --git a/src/Synapse/Synapse/Models/Activity/PSSwitchActivity.cs b/src/Synapse/Synapse/Models/Activity/PSSwitchActivity.cs deleted file mode 100644 index 05550c58e071..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSSwitchActivity.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This activity evaluates an expression and executes activities under the - /// cases property that correspond to the expression evaluation expected in - /// the equals property. - /// - [Newtonsoft.Json.JsonObject("Switch")] - [Rest.Serialization.JsonTransformation] - public partial class PSSwitchActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSSwitchActivity class. - /// - public PSSwitchActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an expression that would evaluate to a string or - /// integer. This is used to determine the block of activities in cases - /// that will be executed. - /// - [JsonProperty(PropertyName = "typeProperties.on")] - public Expression On { get; set; } - - /// - /// Gets or sets list of cases that correspond to expected values of - /// the 'on' property. This is an optional property and if not - /// provided, the activity will execute activities provided in - /// defaultActivities. - /// - [JsonProperty(PropertyName = "typeProperties.cases")] - public IList Cases { get; set; } - - /// - /// Gets or sets list of activities to execute if no case condition is - /// satisfied. This is an optional property and if not provided, the - /// activity will exit without any action. - /// - [JsonProperty(PropertyName = "typeProperties.defaultActivities")] - public IList DefaultActivities { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (On == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "On"); - } - if (DefaultActivities != null) - { - foreach (var element in DefaultActivities) - { - if (element != null) - { - element.Validate(); - } - } - } - } - - public override Activity ToSdkObject() - { - var activity = new SwitchActivity(this.Name, this.On); - this.Cases?.ForEach(item => activity.Cases.Add(item)); - this.DefaultActivities?.ForEach(item => activity.DefaultActivities.Add(item?.ToSdkObject())); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSSynapseNotebookActivity.cs b/src/Synapse/Synapse/Models/Activity/PSSynapseNotebookActivity.cs deleted file mode 100644 index b379f08ae3c1..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSSynapseNotebookActivity.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Execute Synapse notebook activity. - /// - [Newtonsoft.Json.JsonObject("SynapseNotebook")] - [Rest.Serialization.JsonTransformation] - public partial class PSSynapseNotebookActivity : PSActivity - { - /// - /// Initializes a new instance of the SynapseNotebookActivity class. - /// - public PSSynapseNotebookActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets synapse notebook reference. - /// - [JsonProperty(PropertyName = "typeProperties.notebook")] - public SynapseNotebookReference Notebook { get; set; } - - /// - /// Gets or sets notebook parameters. - /// - [JsonProperty(PropertyName = "typeProperties.parameters")] - public IDictionary Parameters { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Notebook == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Notebook"); - } - } - - public override Activity ToSdkObject() - { - var activity = new SynapseNotebookActivity(this.Name, this.Notebook); - this.Parameters?.ForEach(item => activity.Parameters.Add(item)); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSSynapseSparkJobDefinitionActivity.cs b/src/Synapse/Synapse/Models/Activity/PSSynapseSparkJobDefinitionActivity.cs deleted file mode 100644 index 832ec74586c5..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSSynapseSparkJobDefinitionActivity.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Execute spark job activity. - /// - [Newtonsoft.Json.JsonObject("SparkJob")] - [Rest.Serialization.JsonTransformation] - public partial class PSSynapseSparkJobDefinitionActivity : PSActivity - { - /// - /// Initializes a new instance of the SynapseSparkJobDefinitionActivity - /// class. - /// - public PSSynapseSparkJobDefinitionActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets synapse spark job reference. - /// - [JsonProperty(PropertyName = "typeProperties.sparkJob")] - public SynapseSparkJobReference SparkJob { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (SparkJob == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SparkJob"); - } - } - - public override Activity ToSdkObject() - { - var activity = new SynapseSparkJobDefinitionActivity(this.Name, this.SparkJob); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSUntilActivity.cs b/src/Synapse/Synapse/Models/Activity/PSUntilActivity.cs deleted file mode 100644 index 6c3403d3245f..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSUntilActivity.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This activity executes inner activities until the specified boolean - /// expression results to true or timeout is reached, whichever is earlier. - /// - [Newtonsoft.Json.JsonObject("Until")] - [Rest.Serialization.JsonTransformation] - public partial class PSUntilActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSUntilActivity class. - /// - public PSUntilActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an expression that would evaluate to Boolean. The loop - /// will continue until this expression evaluates to true - /// - [JsonProperty(PropertyName = "typeProperties.expression")] - public Expression Expression { get; set; } - - /// - /// Gets or sets specifies the timeout for the activity to run. If - /// there is no value specified, it takes the value of - /// TimeSpan.FromDays(7) which is 1 week as default. Type: string (or - /// Expression with resultType string), pattern: - /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string - /// (or Expression with resultType string), pattern: - /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - /// - [JsonProperty(PropertyName = "typeProperties.timeout")] - public object Timeout { get; set; } - - /// - /// Gets or sets list of activities to execute. - /// - [JsonProperty(PropertyName = "typeProperties.activities")] - public IList Activities { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Expression == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Expression"); - } - if (Activities == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Activities"); - } - if (Activities != null) - { - foreach (var element in Activities) - { - if (element != null) - { - element.Validate(); - } - } - } - } - - public override Activity ToSdkObject() - { - var activity = new UntilActivity(this.Name, this.Expression, this.Activities?.Select(element => element?.ToSdkObject())); - activity.Timeout = this.Timeout; - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSValidationActivity.cs b/src/Synapse/Synapse/Models/Activity/PSValidationActivity.cs deleted file mode 100644 index 3f06143b7529..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSValidationActivity.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This activity verifies that an external resource exists. - /// - [Newtonsoft.Json.JsonObject("Validation")] - [Rest.Serialization.JsonTransformation] - public partial class PSValidationActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSValidationActivity class. - /// - public PSValidationActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets specifies the timeout for the activity to run. If - /// there is no value specified, it takes the value of - /// TimeSpan.FromDays(7) which is 1 week as default. Type: string (or - /// Expression with resultType string), pattern: - /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - /// - [JsonProperty(PropertyName = "typeProperties.timeout")] - public object Timeout { get; set; } - - /// - /// Gets or sets a delay in seconds between validation attempts. If no - /// value is specified, 10 seconds will be used as the default. Type: - /// integer (or Expression with resultType integer). - /// - [JsonProperty(PropertyName = "typeProperties.sleep")] - public object Sleep { get; set; } - - /// - /// Gets or sets can be used if dataset points to a file. The file must - /// be greater than or equal in size to the value specified. Type: - /// integer (or Expression with resultType integer). - /// - [JsonProperty(PropertyName = "typeProperties.minimumSize")] - public object MinimumSize { get; set; } - - /// - /// Gets or sets can be used if dataset points to a folder. If set to - /// true, the folder must have at least one file. If set to false, the - /// folder must be empty. Type: boolean (or Expression with resultType - /// boolean). - /// - [JsonProperty(PropertyName = "typeProperties.childItems")] - public object ChildItems { get; set; } - - /// - /// Gets or sets validation activity dataset reference. - /// - [JsonProperty(PropertyName = "typeProperties.dataset")] - public DatasetReference Dataset { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Dataset == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Dataset"); - } - } - - public override Activity ToSdkObject() - { - var activity = new ValidationActivity(this.Name, this.Dataset); - activity.Timeout = this.Timeout; - activity.Sleep = this.Sleep; - activity.MinimumSize = this.MinimumSize; - activity.ChildItems = this.ChildItems; - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSWaitActivity.cs b/src/Synapse/Synapse/Models/Activity/PSWaitActivity.cs deleted file mode 100644 index 950615a720e1..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSWaitActivity.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This activity suspends pipeline execution for the specified interval. - /// - [Newtonsoft.Json.JsonObject("Wait")] - [Rest.Serialization.JsonTransformation] - public partial class PSWaitActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSWaitActivity class. - /// - public PSWaitActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets duration in seconds. - /// - [JsonProperty(PropertyName = "typeProperties.waitTimeInSeconds")] - public int WaitTimeInSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Activity ToSdkObject() - { - var activity = new WaitActivity(this.Name, this.WaitTimeInSeconds); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSWebActivity.cs b/src/Synapse/Synapse/Models/Activity/PSWebActivity.cs deleted file mode 100644 index f2aa6aa3825f..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSWebActivity.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Web activity. - /// - [Newtonsoft.Json.JsonObject("WebActivity")] - [Rest.Serialization.JsonTransformation] - public partial class PSWebActivity : PSExecutionActivity - { - /// - /// Initializes a new instance of the PSWebActivity class. - /// - public PSWebActivity() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rest API method for target endpoint. Possible values - /// include: 'GET', 'POST', 'PUT', 'DELETE' - /// - [JsonProperty(PropertyName = "typeProperties.method")] - public string Method { get; set; } - - /// - /// Gets or sets web activity target endpoint and path. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets represents the headers that will be sent to the - /// request. For example, to set the language and type on a request: - /// "headers" : { "Accept-Language": "en-us", "Content-Type": - /// "application/json" }. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.headers")] - public object Headers { get; set; } - - /// - /// Gets or sets represents the payload that will be sent to the - /// endpoint. Required for POST/PUT method, not allowed for GET method - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.body")] - public object Body { get; set; } - - /// - /// Gets or sets authentication method used for calling the endpoint. - /// - [JsonProperty(PropertyName = "typeProperties.authentication")] - public WebActivityAuthentication Authentication { get; set; } - - /// - /// Gets or sets list of datasets passed to web endpoint. - /// - [JsonProperty(PropertyName = "typeProperties.datasets")] - public IList Datasets { get; set; } - - /// - /// Gets or sets list of linked services passed to web endpoint. - /// - [JsonProperty(PropertyName = "typeProperties.linkedServices")] - public IList LinkedServices { get; set; } - - /// - /// Gets or sets the integration runtime reference. - /// - [JsonProperty(PropertyName = "typeProperties.connectVia")] - public IntegrationRuntimeReference ConnectVia { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Method == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Method"); - } - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override Activity ToSdkObject() - { - var activity = new WebActivity(this.Name, this.Method, this.Url); - activity.Headers = this.Headers; - activity.Body = this.Body; - activity.Authentication = this.Authentication; - this.Datasets?.ForEach(item => activity.Datasets.Add(item)); - this.LinkedServices?.ForEach(item => activity.LinkedServices.Add(item)); - activity.ConnectVia = this.ConnectVia; - activity.LinkedServiceName = this.LinkedServiceName; - activity.Policy = this.Policy?.ToSdkObject(); - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Activity/PSWebHookActivity.cs b/src/Synapse/Synapse/Models/Activity/PSWebHookActivity.cs deleted file mode 100644 index 3a8b27071cd7..000000000000 --- a/src/Synapse/Synapse/Models/Activity/PSWebHookActivity.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// WebHook activity. - /// - [Newtonsoft.Json.JsonObject("WebHook")] - [Rest.Serialization.JsonTransformation] - public partial class PSWebHookActivity : PSControlActivity - { - /// - /// Initializes a new instance of the PSWebHookActivity class. - /// - public PSWebHookActivity() - { - CustomInit(); - } - - /// - /// Static constructor for PSWebHookActivity class. - /// - static PSWebHookActivity() - { - Method = "POST"; - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets webHook activity target endpoint and path. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets the timeout within which the webhook should be called - /// back. If there is no value specified, it defaults to 10 minutes. - /// Type: string. Pattern: - /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - /// - [JsonProperty(PropertyName = "typeProperties.timeout")] - public string Timeout { get; set; } - - /// - /// Gets or sets represents the headers that will be sent to the - /// request. For example, to set the language and type on a request: - /// "headers" : { "Accept-Language": "en-us", "Content-Type": - /// "application/json" }. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.headers")] - public object Headers { get; set; } - - /// - /// Gets or sets represents the payload that will be sent to the - /// endpoint. Required for POST/PUT method, not allowed for GET method - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.body")] - public object Body { get; set; } - - /// - /// Gets or sets authentication method used for calling the endpoint. - /// - [JsonProperty(PropertyName = "typeProperties.authentication")] - public WebActivityAuthentication Authentication { get; set; } - - /// - /// Gets or sets when set to true, statusCode, output and error in - /// callback request body will be consumed by activity. The activity - /// can be marked as failed by setting statusCode &gt;= 400 in - /// callback request. Default is false. Type: boolean (or Expression - /// with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.reportStatusOnCallBack")] - public object ReportStatusOnCallBack { get; set; } - - /// - /// Rest API method for target endpoint. - /// - [JsonProperty(PropertyName = "typeProperties.method")] - public static string Method { get; private set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override Activity ToSdkObject() - { - var activity = new WebHookActivity(this.Name, new WebHookActivityMethod(PSWebHookActivity.Method), this.Url); - activity.Timeout = this.Timeout; - activity.Headers = this.Headers; - activity.Body = this.Body; - activity.Authentication = this.Authentication; - activity.ReportStatusOnCallBack = this.ReportStatusOnCallBack; - SetProperties(activity); - return activity; - } - } -} - diff --git a/src/Synapse/Synapse/Models/DataFlow/PSMappingDataFlow.cs b/src/Synapse/Synapse/Models/DataFlow/PSMappingDataFlow.cs deleted file mode 100644 index 1bcd2565c8bc..000000000000 --- a/src/Synapse/Synapse/Models/DataFlow/PSMappingDataFlow.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Mapping data flow. - /// - [Newtonsoft.Json.JsonObject("MappingDataFlow")] - [Rest.Serialization.JsonTransformation] - public partial class PSMappingDataFlow : PSDataFlow - { - /// - /// Initializes a new instance of the MappingDataFlow class. - /// - public PSMappingDataFlow() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets list of sources in data flow. - /// - [JsonProperty(PropertyName = "typeProperties.sources")] - public IList Sources { get; set; } - - /// - /// Gets or sets list of sinks in data flow. - /// - [JsonProperty(PropertyName = "typeProperties.sinks")] - public IList Sinks { get; set; } - - /// - /// Gets or sets list of transformations in data flow. - /// - [JsonProperty(PropertyName = "typeProperties.transformations")] - public IList Transformations { get; set; } - - /// - /// Gets or sets dataFlow script. - /// - [JsonProperty(PropertyName = "typeProperties.script")] - public string Script { get; set; } - - public override DataFlow ToSdkObject() - { - var dataFlow = new MappingDataFlow(); - this.Sources?.ForEach(item => dataFlow.Sources.Add(item)); - this.Sinks?.ForEach(item => dataFlow.Sinks.Add(item)); - this.Transformations?.ForEach(item => dataFlow.Transformations.Add(item)); - dataFlow.Script = this.Script; - SetProperties(dataFlow); - return dataFlow; - } - } -} diff --git a/src/Synapse/Synapse/Models/Dataset/PSAmazonMWSObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAmazonMWSObjectDataset.cs deleted file mode 100644 index d13fb6f520fa..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAmazonMWSObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Amazon Marketplace Web Service dataset. - /// - [Newtonsoft.Json.JsonObject("AmazonMWSObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSAmazonMWSObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAmazonMWSObjectDataset class. - /// - public PSAmazonMWSObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AmazonMWSObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAmazonRedshiftTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAmazonRedshiftTableDataset.cs deleted file mode 100644 index a9fa62d7770c..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAmazonRedshiftTableDataset.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Amazon Redshift table dataset. - /// - [Newtonsoft.Json.JsonObject("AmazonRedshiftTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAmazonRedshiftTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAmazonRedshiftTableDataset - /// class. - /// - public PSAmazonRedshiftTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the Amazon Redshift table name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the Amazon Redshift schema name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object AmazonRedshiftTableDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AmazonRedshiftTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.AmazonRedshiftTableDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAvroDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAvroDataset.cs deleted file mode 100644 index 04ffcc792f56..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAvroDataset.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Avro dataset. - /// - [Newtonsoft.Json.JsonObject("Avro")] - [Rest.Serialization.JsonTransformation] - public partial class PSAvroDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAvroDataset class. - /// - public PSAvroDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the location of the avro storage. - /// - [JsonProperty(PropertyName = "typeProperties.location")] - public PSDatasetLocation Location { get; set; } - - /// - /// Gets or sets possible values include: 'none', 'deflate', 'snappy', - /// 'xz', 'bzip2' - /// - [JsonProperty(PropertyName = "typeProperties.avroCompressionCodec")] - public string AvroCompressionCodec { get; set; } - - /// - /// - [JsonProperty(PropertyName = "typeProperties.avroCompressionLevel")] - public int? AvroCompressionLevel { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - if (AvroCompressionLevel > 9) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "AvroCompressionLevel", 9); - } - if (AvroCompressionLevel < 1) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "AvroCompressionLevel", 1); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new AvroDataset(this.LinkedServiceName); - dataset.Location = this.Location?.ToSdkObject(); - dataset.AvroCompressionCodec = this.AvroCompressionCodec ?? "none"; - dataset.AvroCompressionLevel = this.AvroCompressionLevel; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureDataExplorerTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureDataExplorerTableDataset.cs deleted file mode 100644 index fe79280ac9f8..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureDataExplorerTableDataset.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Azure Data Explorer (Kusto) dataset. - /// - [Newtonsoft.Json.JsonObject("AzureDataExplorerTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureDataExplorerTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureDataExplorerTableDataset - /// class. - /// - public PSAzureDataExplorerTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name of the Azure Data Explorer database. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureDataExplorerTableDataset(this.LinkedServiceName); - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureMariaDBTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureMariaDBTableDataset.cs deleted file mode 100644 index 40ec7608b8b1..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureMariaDBTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Database for MariaDB dataset. - /// - [Newtonsoft.Json.JsonObject("AzureMariaDBTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMariaDBTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureMariaDBTableDataset class. - /// - public PSAzureMariaDBTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureMariaDBTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureMySqlTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureMySqlTableDataset.cs deleted file mode 100644 index 7ba87becb36d..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureMySqlTableDataset.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Azure MySQL database dataset. - /// - [Newtonsoft.Json.JsonObject("AzureMySqlTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMySqlTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureMySqlTableDataset class. - /// - public PSAzureMySqlTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Azure MySQL database table name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the name of Azure MySQL database table. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureMySqlTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzurePostgreSqlTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzurePostgreSqlTableDataset.cs deleted file mode 100644 index 5f358f7183ae..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzurePostgreSqlTableDataset.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure PostgreSQL dataset. - /// - [Newtonsoft.Json.JsonObject("AzurePostgreSqlTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzurePostgreSqlTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzurePostgreSqlTableDataset - /// class. - /// - public PSAzurePostgreSqlTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name of the Azure PostgreSQL database which - /// includes both schema and table. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Azure PostgreSQL database. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Azure PostgreSQL database. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object AzurePostgreSqlTableDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AzurePostgreSqlTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.AzurePostgreSqlTableDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureSearchIndexDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureSearchIndexDataset.cs deleted file mode 100644 index 451159e1970d..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureSearchIndexDataset.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Azure Search Index. - /// - [Newtonsoft.Json.JsonObject("AzureSearchIndex")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSearchIndexDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureSearchIndexDataset class. - /// - public PSAzureSearchIndexDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of the Azure Search Index. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.indexName")] - public object IndexName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (IndexName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "IndexName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureSearchIndexDataset(this.LinkedServiceName, this.IndexName); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureSqlDWTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureSqlDWTableDataset.cs deleted file mode 100644 index f5571f35d4f5..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureSqlDWTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Azure SQL Data Warehouse dataset. - /// - [Newtonsoft.Json.JsonObject("AzureSqlDWTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSqlDWTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureSqlDWTableDataset class. - /// - public PSAzureSqlDWTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the schema name of the Azure SQL Data Warehouse. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object AzureSqlDWTableDatasetSchema { get; set; } - - /// - /// Gets or sets the table name of the Azure SQL Data Warehouse. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureSqlDWTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.SchemaTypePropertiesSchema = this.AzureSqlDWTableDatasetSchema; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureSqlMITableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureSqlMITableDataset.cs deleted file mode 100644 index e84a11d22624..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureSqlMITableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Azure SQL Managed Instance dataset. - /// - [Newtonsoft.Json.JsonObject("AzureSqlMITable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSqlMITableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureSqlMITableDataset class. - /// - public PSAzureSqlMITableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the schema name of the Azure SQL Managed Instance. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object AzureSqlMITableDatasetSchema { get; set; } - - /// - /// Gets or sets the table name of the Azure SQL Managed Instance - /// dataset. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureSqlMITableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.SchemaTypePropertiesSchema = this.AzureSqlMITableDatasetSchema; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureSqlTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureSqlTableDataset.cs deleted file mode 100644 index 98823e3020a9..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureSqlTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Azure SQL Server database dataset. - /// - [Newtonsoft.Json.JsonObject("AzureSqlTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSqlTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureSqlTableDataset class. - /// - public PSAzureSqlTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the schema name of the Azure SQL database. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object AzureSqlTableDatasetSchema { get; set; } - - /// - /// Gets or sets the table name of the Azure SQL database. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureSqlTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.SchemaTypePropertiesSchema = this.AzureSqlTableDatasetSchema; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSAzureTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSAzureTableDataset.cs deleted file mode 100644 index 65515ad38abe..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSAzureTableDataset.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Azure Table storage dataset. - /// - [Newtonsoft.Json.JsonObject("AzureTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSAzureTableDataset class. - /// - public PSAzureTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name of the Azure Table storage. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (TableName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TableName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new AzureTableDataset(this.LinkedServiceName, this.TableName); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSBinaryDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSBinaryDataset.cs deleted file mode 100644 index 5683ab525f32..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSBinaryDataset.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Binary dataset. - /// - [Newtonsoft.Json.JsonObject("Binary")] - [Rest.Serialization.JsonTransformation] - public partial class PSBinaryDataset : PSDataset - { - /// - /// Initializes a new instance of the PSBinaryDataset class. - /// - public PSBinaryDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the location of the Binary storage. - /// - [JsonProperty(PropertyName = "typeProperties.location")] - public PSDatasetLocation Location { get; set; } - - /// - /// Gets or sets the data compression method used for the binary - /// dataset. - /// - [JsonProperty(PropertyName = "typeProperties.compression")] - public PSDatasetCompression Compression { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new BinaryDataset(this.LinkedServiceName); - dataset.Location = this.Location?.ToSdkObject(); - dataset.Compression = this.Compression?.ToSdkObject(); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSCassandraTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSCassandraTableDataset.cs deleted file mode 100644 index 9054082bf956..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSCassandraTableDataset.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Cassandra database dataset. - /// - [Newtonsoft.Json.JsonObject("CassandraTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSCassandraTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSCassandraTableDataset class. - /// - public PSCassandraTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name of the Cassandra database. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the keyspace of the Cassandra database. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.keyspace")] - public object Keyspace { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new CassandraTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Keyspace = this.Keyspace; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSCommonDataServiceForAppsEntityDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSCommonDataServiceForAppsEntityDataset.cs deleted file mode 100644 index 62ee5af995e9..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSCommonDataServiceForAppsEntityDataset.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Common Data Service for Apps entity dataset. - /// - [Newtonsoft.Json.JsonObject("CommonDataServiceForAppsEntity")] - [Rest.Serialization.JsonTransformation] - public partial class PSCommonDataServiceForAppsEntityDataset : PSDataset - { - /// - /// Initializes a new instance of the - /// PSCommonDataServiceForAppsEntityDataset class. - /// - public PSCommonDataServiceForAppsEntityDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the logical name of the entity. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.entityName")] - public object EntityName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new CommonDataServiceForAppsEntityDataset(this.LinkedServiceName); - dataset.EntityName = this.EntityName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSConcurObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSConcurObjectDataset.cs deleted file mode 100644 index 17d9248d7c92..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSConcurObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Concur Service dataset. - /// - [Newtonsoft.Json.JsonObject("ConcurObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSConcurObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSConcurObjectDataset class. - /// - public PSConcurObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new ConcurObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSCosmosDbMongoDbApiCollectionDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSCosmosDbMongoDbApiCollectionDataset.cs deleted file mode 100644 index c2b9c8358a7e..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSCosmosDbMongoDbApiCollectionDataset.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The CosmosDB (MongoDB API) database dataset. - /// - [Newtonsoft.Json.JsonObject("CosmosDbMongoDbApiCollection")] - [Rest.Serialization.JsonTransformation] - public partial class PSCosmosDbMongoDbApiCollectionDataset : PSDataset - { - /// - /// Initializes a new instance of the - /// PSCosmosDbMongoDbApiCollectionDataset class. - /// - public PSCosmosDbMongoDbApiCollectionDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the collection name of the CosmosDB (MongoDB API) - /// database. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.collection")] - public object Collection { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Collection == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Collection"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new CosmosDbMongoDbApiCollectionDataset(this.LinkedServiceName, this.Collection); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSCosmosDbSqlApiCollectionDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSCosmosDbSqlApiCollectionDataset.cs deleted file mode 100644 index 8f7b836022cb..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSCosmosDbSqlApiCollectionDataset.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Microsoft Azure CosmosDB (SQL API) Collection dataset. - /// - [Newtonsoft.Json.JsonObject("CosmosDbSqlApiCollection")] - [Rest.Serialization.JsonTransformation] - public partial class PSCosmosDbSqlApiCollectionDataset : PSDataset - { - /// - /// Initializes a new instance of the PSCosmosDbSqlApiCollectionDataset - /// class. - /// - public PSCosmosDbSqlApiCollectionDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets cosmosDB (SQL API) collection name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.collectionName")] - public object CollectionName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (CollectionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CollectionName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new CosmosDbSqlApiCollectionDataset(this.LinkedServiceName, this.CollectionName); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSCouchbaseTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSCouchbaseTableDataset.cs deleted file mode 100644 index ae045588118c..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSCouchbaseTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Couchbase server dataset. - /// - [Newtonsoft.Json.JsonObject("CouchbaseTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSCouchbaseTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSCouchbaseTableDataset class. - /// - public PSCouchbaseTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new CouchbaseTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSCustomDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSCustomDataset.cs deleted file mode 100644 index 197d001681d6..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSCustomDataset.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The custom dataset. - /// - [Newtonsoft.Json.JsonObject("PSCustomDataset")] - public partial class PSCustomDataset : PSDataset - { - /// - /// Initializes a new instance of the PSCustomDataset class. - /// - public PSCustomDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets custom dataset properties. - /// - [JsonProperty(PropertyName = "typeProperties")] - public object TypeProperties { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new CustomDataset(this.LinkedServiceName); - dataset.TypeProperties = this.TypeProperties; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSDatasetCompression.cs b/src/Synapse/Synapse/Models/Dataset/PSDatasetCompression.cs deleted file mode 100644 index 67ae5dc2b1b0..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDatasetCompression.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSDatasetCompression - { - public PSDatasetCompression() { } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public DatasetCompression ToSdkObject() - { - var datasetCompression = new DatasetCompression(); - this.AdditionalProperties?.ForEach(item => datasetCompression.Add(item.Key, item.Value)); - return datasetCompression; - } - } -} diff --git a/src/Synapse/Synapse/Models/Dataset/PSDatasetLocation.cs b/src/Synapse/Synapse/Models/Dataset/PSDatasetLocation.cs deleted file mode 100644 index ec3d89f6152e..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDatasetLocation.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSDatasetLocation - { - public PSDatasetLocation() { } - - [JsonProperty(PropertyName = "folderPath")] - public object FolderPath { get; set; } - - [JsonProperty(PropertyName = "fileName")] - public object FileName { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public DatasetLocation ToSdkObject() - { - var datasetLocation = new DatasetLocation() - { - FolderPath = this.FolderPath, - FileName = this.FileName - }; - this.AdditionalProperties?.ForEach(item => datasetLocation.Add(item.Key, item.Value)); - return datasetLocation; - } - } -} diff --git a/src/Synapse/Synapse/Models/Dataset/PSDb2TableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSDb2TableDataset.cs deleted file mode 100644 index 1ca79a1d26b0..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDb2TableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Db2 table dataset. - /// - [Newtonsoft.Json.JsonObject("Db2Table")] - [Rest.Serialization.JsonTransformation] - public partial class PSDb2TableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSDb2TableDataset class. - /// - public PSDb2TableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the Db2 schema name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object Db2TableDatasetSchema { get; set; } - - /// - /// Gets or sets the Db2 table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new Db2TableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.SchemaTypePropertiesSchema = this.Db2TableDatasetSchema; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSDelimitedTextDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSDelimitedTextDataset.cs deleted file mode 100644 index 9c6095438314..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDelimitedTextDataset.cs +++ /dev/null @@ -1,152 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Delimited text dataset. - /// - [Newtonsoft.Json.JsonObject("DelimitedText")] - [Rest.Serialization.JsonTransformation] - public partial class PSDelimitedTextDataset : PSDataset - { - /// - /// Initializes a new instance of the PSDelimitedTextDataset class. - /// - public PSDelimitedTextDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the location of the delimited text storage. - /// - [JsonProperty(PropertyName = "typeProperties.location")] - public PSDatasetLocation Location { get; set; } - - /// - /// Gets or sets the column delimiter. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.columnDelimiter")] - public object ColumnDelimiter { get; set; } - - /// - /// Gets or sets the row delimiter. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.rowDelimiter")] - public object RowDelimiter { get; set; } - - /// - /// Gets or sets the code page name of the preferred encoding. If miss, - /// the default value is UTF-8, unless BOM denotes another Unicode - /// encoding. Refer to the name column of the table in the following - /// link to set supported values: - /// https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encodingName")] - public object EncodingName { get; set; } - - /// - /// Gets or sets possible values include: 'bzip2', 'gzip', 'deflate', - /// 'zipDeflate', 'snappy', 'lz4' - /// - [JsonProperty(PropertyName = "typeProperties.compressionCodec")] - public string CompressionCodec { get; set; } - - /// - /// Gets or sets the data compression method used for DelimitedText. - /// Possible values include: 'Optimal', 'Fastest' - /// - [JsonProperty(PropertyName = "typeProperties.compressionLevel")] - public string CompressionLevel { get; set; } - - /// - /// Gets or sets the quote character. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.quoteChar")] - public object QuoteChar { get; set; } - - /// - /// Gets or sets the escape character. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.escapeChar")] - public object EscapeChar { get; set; } - - /// - /// Gets or sets when used as input, treat the first row of data as - /// headers. When used as output,write the headers into the output as - /// the first row of data. The default value is false. Type: boolean - /// (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.firstRowAsHeader")] - public object FirstRowAsHeader { get; set; } - - /// - /// Gets or sets the null value string. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.nullValue")] - public object NullValue { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new DelimitedTextDataset(this.LinkedServiceName); - dataset.Location = this.Location?.ToSdkObject(); - dataset.ColumnDelimiter = this.ColumnDelimiter; - dataset.RowDelimiter = this.RowDelimiter; - dataset.EncodingName = this.EncodingName; - if (this.CompressionCodec != null) - { - dataset.CompressionCodec = this.CompressionCodec; - dataset.CompressionLevel = this.CompressionLevel; - } - dataset.QuoteChar = this.QuoteChar; - dataset.EscapeChar = this.EscapeChar; - dataset.FirstRowAsHeader = this.FirstRowAsHeader; - dataset.NullValue = this.NullValue; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSDocumentDbCollectionDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSDocumentDbCollectionDataset.cs deleted file mode 100644 index f575e66982cb..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDocumentDbCollectionDataset.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Microsoft Azure Document Database Collection dataset. - /// - [Newtonsoft.Json.JsonObject("DocumentDbCollection")] - [Rest.Serialization.JsonTransformation] - public partial class PSDocumentDbCollectionDataset : PSDataset - { - /// - /// Initializes a new instance of the PSDocumentDbCollectionDataset - /// class. - /// - public PSDocumentDbCollectionDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets document Database collection name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.collectionName")] - public object CollectionName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (CollectionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CollectionName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new DocumentDbCollectionDataset(this.LinkedServiceName, this.CollectionName); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSDrillTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSDrillTableDataset.cs deleted file mode 100644 index eb4edaed7275..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDrillTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Drill server dataset. - /// - [Newtonsoft.Json.JsonObject("DrillTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSDrillTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSDrillTableDataset class. - /// - public PSDrillTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Drill. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Drill. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object DrillTableDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new DrillTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.DrillTableDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSDynamicsAXResourceDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSDynamicsAXResourceDataset.cs deleted file mode 100644 index 8cfec1f91f1c..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDynamicsAXResourceDataset.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The path of the Dynamics AX OData entity. - /// - [Newtonsoft.Json.JsonObject("DynamicsAXResource")] - [Rest.Serialization.JsonTransformation] - public partial class PSDynamicsAXResourceDataset : PSDataset - { - /// - /// Initializes a new instance of the PSDynamicsAXResourceDataset - /// class. - /// - public PSDynamicsAXResourceDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the path of the Dynamics AX OData entity. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.path")] - public object Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new DynamicsAXResourceDataset(this.LinkedServiceName, this.Path); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSDynamicsCrmEntityDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSDynamicsCrmEntityDataset.cs deleted file mode 100644 index b58f8e620feb..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDynamicsCrmEntityDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Dynamics CRM entity dataset. - /// - [Newtonsoft.Json.JsonObject("DynamicsCrmEntity")] - [Rest.Serialization.JsonTransformation] - public partial class PSDynamicsCrmEntityDataset : PSDataset - { - /// - /// Initializes a new instance of the PSDynamicsCrmEntityDataset class. - /// - public PSDynamicsCrmEntityDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the logical name of the entity. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.entityName")] - public object EntityName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new DynamicsCrmEntityDataset(this.LinkedServiceName); - dataset.EntityName = this.EntityName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSDynamicsEntityDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSDynamicsEntityDataset.cs deleted file mode 100644 index a192fb2903a5..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSDynamicsEntityDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Dynamics entity dataset. - /// - [Newtonsoft.Json.JsonObject("DynamicsEntity")] - [Rest.Serialization.JsonTransformation] - public partial class PSDynamicsEntityDataset : PSDataset - { - /// - /// Initializes a new instance of the PSDynamicsEntityDataset class. - /// - public PSDynamicsEntityDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the logical name of the entity. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.entityName")] - public object EntityName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new DynamicsEntityDataset(this.LinkedServiceName); - dataset.EntityName = this.EntityName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSEloquaObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSEloquaObjectDataset.cs deleted file mode 100644 index 840a03a7b9bc..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSEloquaObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Eloqua server dataset. - /// - [Newtonsoft.Json.JsonObject("EloquaObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSEloquaObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSEloquaObjectDataset class. - /// - public PSEloquaObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new EloquaObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSGoogleAdWordsObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSGoogleAdWordsObjectDataset.cs deleted file mode 100644 index 5276ee3c70a4..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSGoogleAdWordsObjectDataset.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Google AdWords service dataset. - /// - [Newtonsoft.Json.JsonObject("GoogleAdWordsObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSGoogleAdWordsObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSGoogleAdWordsObjectDataset - /// class. - /// - public PSGoogleAdWordsObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new GoogleAdWordsObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSGoogleBigQueryObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSGoogleBigQueryObjectDataset.cs deleted file mode 100644 index 79eca2cdf89c..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSGoogleBigQueryObjectDataset.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Google BigQuery service dataset. - /// - [Newtonsoft.Json.JsonObject("GoogleBigQueryObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSGoogleBigQueryObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSGoogleBigQueryObjectDataset - /// class. - /// - public PSGoogleBigQueryObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// database + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Google BigQuery. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the database name of the Google BigQuery. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.dataset")] - public object Dataset { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new GoogleBigQueryObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.Dataset = this.Dataset; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSGreenplumTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSGreenplumTableDataset.cs deleted file mode 100644 index 1c0a17f0d98f..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSGreenplumTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Greenplum Database dataset. - /// - [Newtonsoft.Json.JsonObject("GreenplumTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSGreenplumTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSGreenplumTableDataset class. - /// - public PSGreenplumTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of Greenplum. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of Greenplum. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object GreenplumTableDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new GreenplumTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.GreenplumTableDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSHBaseObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSHBaseObjectDataset.cs deleted file mode 100644 index f0a28aac613f..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSHBaseObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HBase server dataset. - /// - [Newtonsoft.Json.JsonObject("HBaseObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSHBaseObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSHBaseObjectDataset class. - /// - public PSHBaseObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new HBaseObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSHiveObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSHiveObjectDataset.cs deleted file mode 100644 index 3fc4a8a9dcf1..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSHiveObjectDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Hive Server dataset. - /// - [Newtonsoft.Json.JsonObject("HiveObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSHiveObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSHiveObjectDataset class. - /// - public PSHiveObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Hive. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Hive. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object HiveObjectDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new HiveObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.HiveObjectDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSHubspotObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSHubspotObjectDataset.cs deleted file mode 100644 index ea7b2b3b896b..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSHubspotObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Hubspot Service dataset. - /// - [Newtonsoft.Json.JsonObject("HubspotObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSHubspotObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSHubspotObjectDataset class. - /// - public PSHubspotObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new HubspotObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSImpalaObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSImpalaObjectDataset.cs deleted file mode 100644 index 905551ec8511..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSImpalaObjectDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Impala server dataset. - /// - [Newtonsoft.Json.JsonObject("ImpalaObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSImpalaObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSImpalaObjectDataset class. - /// - public PSImpalaObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Impala. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Impala. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object ImpalaObjectDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new ImpalaObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.ImpalaObjectDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSInformixTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSInformixTableDataset.cs deleted file mode 100644 index 5117cb49bb8c..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSInformixTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Informix table dataset. - /// - [Newtonsoft.Json.JsonObject("InformixTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSInformixTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSInformixTableDataset class. - /// - public PSInformixTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Informix table name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new InformixTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSJiraObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSJiraObjectDataset.cs deleted file mode 100644 index 09858bad67a5..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSJiraObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Jira Service dataset. - /// - [Newtonsoft.Json.JsonObject("JiraObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSJiraObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSJiraObjectDataset class. - /// - public PSJiraObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new JiraObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSJsonDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSJsonDataset.cs deleted file mode 100644 index 6355a0d96173..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSJsonDataset.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Json dataset. - /// - [Newtonsoft.Json.JsonObject("Json")] - [Rest.Serialization.JsonTransformation] - public partial class PSJsonDataset : PSDataset - { - /// - /// Initializes a new instance of the PSJsonDataset class. - /// - public PSJsonDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the location of the json data storage. - /// - [JsonProperty(PropertyName = "typeProperties.location")] - public PSDatasetLocation Location { get; set; } - - /// - /// Gets or sets the code page name of the preferred encoding. If not - /// specified, the default value is UTF-8, unless BOM denotes another - /// Unicode encoding. Refer to the name column of the table in the - /// following link to set supported values: - /// https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encodingName")] - public object EncodingName { get; set; } - - /// - /// Gets or sets the data compression method used for the json dataset. - /// - [JsonProperty(PropertyName = "typeProperties.compression")] - public PSDatasetCompression Compression { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new JsonDataset(this.LinkedServiceName); - dataset.Location = this.Location?.ToSdkObject(); - dataset.EncodingName = this.EncodingName; - dataset.Compression = this.Compression?.ToSdkObject(); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSMagentoObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSMagentoObjectDataset.cs deleted file mode 100644 index 9394b034e2b1..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSMagentoObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Magento server dataset. - /// - [Newtonsoft.Json.JsonObject("MagentoObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSMagentoObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSMagentoObjectDataset class. - /// - public PSMagentoObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new MagentoObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSMariaDBTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSMariaDBTableDataset.cs deleted file mode 100644 index fdfeeda81881..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSMariaDBTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// MariaDB server dataset. - /// - [Newtonsoft.Json.JsonObject("MariaDBTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSMariaDBTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSMariaDBTableDataset class. - /// - public PSMariaDBTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new MariaDBTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSMarketoObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSMarketoObjectDataset.cs deleted file mode 100644 index b29170e4f074..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSMarketoObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Marketo server dataset. - /// - [Newtonsoft.Json.JsonObject("MarketoObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSMarketoObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSMarketoObjectDataset class. - /// - public PSMarketoObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new MarketoObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSMicrosoftAccessTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSMicrosoftAccessTableDataset.cs deleted file mode 100644 index 9441dd501350..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSMicrosoftAccessTableDataset.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Microsoft Access table dataset. - /// - [Newtonsoft.Json.JsonObject("MicrosoftAccessTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSMicrosoftAccessTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSMicrosoftAccessTableDataset - /// class. - /// - public PSMicrosoftAccessTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Microsoft Access table name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new MicrosoftAccessTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSMongoDbCollectionDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSMongoDbCollectionDataset.cs deleted file mode 100644 index 5bcdab9d5a33..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSMongoDbCollectionDataset.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The MongoDB database dataset. - /// - [Newtonsoft.Json.JsonObject("MongoDbCollection")] - [Rest.Serialization.JsonTransformation] - public partial class PSMongoDbCollectionDataset : PSDataset - { - /// - /// Initializes a new instance of the PSMongoDbCollectionDataset class. - /// - public PSMongoDbCollectionDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name of the MongoDB database. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.collectionName")] - public object CollectionName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (CollectionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CollectionName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new MongoDbCollectionDataset(this.LinkedServiceName, this.CollectionName); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSMongoDbV2CollectionDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSMongoDbV2CollectionDataset.cs deleted file mode 100644 index 39b26232bf7d..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSMongoDbV2CollectionDataset.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The MongoDB database dataset. - /// - [Newtonsoft.Json.JsonObject("MongoDbV2Collection")] - [Rest.Serialization.JsonTransformation] - public partial class PSMongoDbV2CollectionDataset : PSDataset - { - /// - /// Initializes a new instance of the PSMongoDbV2CollectionDataset - /// class. - /// - public PSMongoDbV2CollectionDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the collection name of the MongoDB database. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.collection")] - public object Collection { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Collection == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Collection"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new MongoDbV2CollectionDataset(this.LinkedServiceName, this.Collection); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSMySqlTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSMySqlTableDataset.cs deleted file mode 100644 index a9cd86062450..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSMySqlTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The MySQL table dataset. - /// - [Newtonsoft.Json.JsonObject("MySqlTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSMySqlTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSMySqlTableDataset class. - /// - public PSMySqlTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the MySQL table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new MySqlTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSNetezzaTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSNetezzaTableDataset.cs deleted file mode 100644 index feb0e5cf83ce..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSNetezzaTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Netezza dataset. - /// - [Newtonsoft.Json.JsonObject("NetezzaTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSNetezzaTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSNetezzaTableDataset class. - /// - public PSNetezzaTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Netezza. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Netezza. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object NetezzaTableDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new NetezzaTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.NetezzaTableDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSODataResourceDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSODataResourceDataset.cs deleted file mode 100644 index 61f95240a109..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSODataResourceDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Open Data Protocol (OData) resource dataset. - /// - [Newtonsoft.Json.JsonObject("ODataResource")] - [Rest.Serialization.JsonTransformation] - public partial class PSODataResourceDataset : PSDataset - { - /// - /// Initializes a new instance of the PSODataResourceDataset class. - /// - public PSODataResourceDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the OData resource path. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.path")] - public object Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new ODataResourceDataset(this.LinkedServiceName); - dataset.Path = this.Path; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSOdbcTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSOdbcTableDataset.cs deleted file mode 100644 index f6569c382bc4..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSOdbcTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The ODBC table dataset. - /// - [Newtonsoft.Json.JsonObject("OdbcTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSOdbcTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSOdbcTableDataset class. - /// - public PSOdbcTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the ODBC table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new OdbcTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSOffice365Dataset.cs b/src/Synapse/Synapse/Models/Dataset/PSOffice365Dataset.cs deleted file mode 100644 index 4b45a2999592..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSOffice365Dataset.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Office365 account. - /// - [Newtonsoft.Json.JsonObject("Office365Table")] - [Rest.Serialization.JsonTransformation] - public partial class PSOffice365Dataset : PSDataset - { - /// - /// Initializes a new instance of the PSOffice365Dataset class. - /// - public PSOffice365Dataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the dataset to extract from Office 365. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets a predicate expression that can be used to filter the - /// specific rows to extract from Office 365. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.predicate")] - public object Predicate { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (TableName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TableName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new Office365Dataset(this.LinkedServiceName, this.TableName); - dataset.Predicate = this.Predicate; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSOracleServiceCloudObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSOracleServiceCloudObjectDataset.cs deleted file mode 100644 index 53e7ae0137fb..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSOracleServiceCloudObjectDataset.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Oracle Service Cloud dataset. - /// - [Newtonsoft.Json.JsonObject("OracleServiceCloudObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSOracleServiceCloudObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSOracleServiceCloudObjectDataset - /// class. - /// - public PSOracleServiceCloudObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new OracleServiceCloudObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSOracleTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSOracleTableDataset.cs deleted file mode 100644 index aee8d527b21a..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSOracleTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The on-premises Oracle database dataset. - /// - [Newtonsoft.Json.JsonObject("OracleTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSOracleTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSOracleTableDataset class. - /// - public PSOracleTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the schema name of the on-premises Oracle database. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object OracleTableDatasetSchema { get; set; } - - /// - /// Gets or sets the table name of the on-premises Oracle database. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new OracleTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.SchemaTypePropertiesSchema = this.OracleTableDatasetSchema; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSOrcDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSOrcDataset.cs deleted file mode 100644 index 42edd65688e0..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSOrcDataset.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Linq; - - /// - /// ORC dataset. - /// - [Newtonsoft.Json.JsonObject("Orc")] - [Rest.Serialization.JsonTransformation] - public partial class PSOrcDataset : PSDataset - { - /// - /// Initializes a new instance of the PSOrcDataset class. - /// - public PSOrcDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the location of the ORC data storage. - /// - [JsonProperty(PropertyName = "typeProperties.location")] - public PSDatasetLocation Location { get; set; } - - /// - /// Gets or sets possible values include: 'none', 'zlib', 'snappy' - /// - [JsonProperty(PropertyName = "typeProperties.orcCompressionCodec")] - public string OrcCompressionCodec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new OrcDataset(this.LinkedServiceName); - dataset.Location = this.Location?.ToSdkObject(); - dataset.OrcCompressionCodec = this.OrcCompressionCodec ?? "none"; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSParquetDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSParquetDataset.cs deleted file mode 100644 index ff39fdbb882e..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSParquetDataset.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Parquet dataset. - /// - [Newtonsoft.Json.JsonObject("Parquet")] - [Rest.Serialization.JsonTransformation] - public partial class PSParquetDataset : PSDataset - { - /// - /// Initializes a new instance of the PSParquetDataset class. - /// - public PSParquetDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the location of the parquet storage. - /// - [JsonProperty(PropertyName = "typeProperties.location")] - public PSDatasetLocation Location { get; set; } - - /// - /// Gets or sets possible values include: 'none', 'gzip', 'snappy', - /// 'lzo' - /// - [JsonProperty(PropertyName = "typeProperties.compressionCodec")] - public string CompressionCodec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new ParquetDataset(this.LinkedServiceName); - dataset.Location = this.Location?.ToSdkObject(); - dataset.CompressionCodec = this.CompressionCodec ?? "none"; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSPaypalObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSPaypalObjectDataset.cs deleted file mode 100644 index ee04b81aa1ba..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSPaypalObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Paypal Service dataset. - /// - [Newtonsoft.Json.JsonObject("PaypalObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSPaypalObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSPaypalObjectDataset class. - /// - public PSPaypalObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new PaypalObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSPhoenixObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSPhoenixObjectDataset.cs deleted file mode 100644 index 0466510df6a2..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSPhoenixObjectDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Phoenix server dataset. - /// - [Newtonsoft.Json.JsonObject("PhoenixObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSPhoenixObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSPhoenixObjectDataset class. - /// - public PSPhoenixObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Phoenix. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Phoenix. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object PhoenixObjectDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new PhoenixObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.PhoenixObjectDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSPostgreSqlTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSPostgreSqlTableDataset.cs deleted file mode 100644 index cf8256bfbb19..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSPostgreSqlTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The PostgreSQL table dataset. - /// - [Newtonsoft.Json.JsonObject("PostgreSqlTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSPostgreSqlTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSPostgreSqlTableDataset class. - /// - public PSPostgreSqlTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the PostgreSQL table name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the PostgreSQL schema name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object PostgreSqlTableDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new PostgreSqlTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.PostgreSqlTableDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSPrestoObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSPrestoObjectDataset.cs deleted file mode 100644 index 9214283ba588..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSPrestoObjectDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Presto server dataset. - /// - [Newtonsoft.Json.JsonObject("PrestoObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSPrestoObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSPrestoObjectDataset class. - /// - public PSPrestoObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Presto. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Presto. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object PrestoObjectDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new PrestoObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.PrestoObjectDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSQuickBooksObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSQuickBooksObjectDataset.cs deleted file mode 100644 index d284bb40f588..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSQuickBooksObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// QuickBooks server dataset. - /// - [Newtonsoft.Json.JsonObject("QuickBooksObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSQuickBooksObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSQuickBooksObjectDataset class. - /// - public PSQuickBooksObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new QuickBooksObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSRelationalTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSRelationalTableDataset.cs deleted file mode 100644 index 8309477f382b..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSRelationalTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The relational table dataset. - /// - [Newtonsoft.Json.JsonObject("RelationalTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSRelationalTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSRelationalTableDataset class. - /// - public PSRelationalTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the relational table name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new RelationalTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSResponsysObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSResponsysObjectDataset.cs deleted file mode 100644 index fd502fde1e77..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSResponsysObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Responsys dataset. - /// - [Newtonsoft.Json.JsonObject("ResponsysObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSResponsysObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSResponsysObjectDataset class. - /// - public PSResponsysObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new ResponsysObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSRestResourceDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSRestResourceDataset.cs deleted file mode 100644 index 306a442b7ff0..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSRestResourceDataset.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// A Rest service dataset. - /// - [Newtonsoft.Json.JsonObject("RestResource")] - [Rest.Serialization.JsonTransformation] - public partial class PSRestResourceDataset : PSDataset - { - /// - /// Initializes a new instance of the PSRestResourceDataset class. - /// - public PSRestResourceDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the relative URL to the resource that the RESTful API - /// provides. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.relativeUrl")] - public object RelativeUrl { get; set; } - - /// - /// Gets or sets the HTTP method used to call the RESTful API. The - /// default is GET. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.requestMethod")] - public object RequestMethod { get; set; } - - /// - /// Gets or sets the HTTP request body to the RESTful API if - /// requestMethod is POST. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.requestBody")] - public object RequestBody { get; set; } - - /// - /// Gets or sets the additional HTTP headers in the request to the - /// RESTful API. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.additionalHeaders")] - public object AdditionalHeaders { get; set; } - - /// - /// Gets or sets the pagination rules to compose next page requests. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.paginationRules")] - public object PaginationRules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new RestResourceDataset(this.LinkedServiceName); - dataset.RelativeUrl = this.RelativeUrl; - dataset.RequestMethod = this.RequestMethod; - dataset.RequestBody = this.RequestBody; - dataset.AdditionalHeaders = this.AdditionalHeaders; - dataset.PaginationRules = this.PaginationRules; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSalesforceMarketingCloudObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSalesforceMarketingCloudObjectDataset.cs deleted file mode 100644 index 8609d7ec98f7..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSalesforceMarketingCloudObjectDataset.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Salesforce Marketing Cloud dataset. - /// - [Newtonsoft.Json.JsonObject("SalesforceMarketingCloudObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSSalesforceMarketingCloudObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the - /// PSSalesforceMarketingCloudObjectDataset class. - /// - public PSSalesforceMarketingCloudObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SalesforceMarketingCloudObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSalesforceObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSalesforceObjectDataset.cs deleted file mode 100644 index 39566131fb16..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSalesforceObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Salesforce object dataset. - /// - [Newtonsoft.Json.JsonObject("SalesforceObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSSalesforceObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSalesforceObjectDataset class. - /// - public PSSalesforceObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Salesforce object API name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.objectApiName")] - public object ObjectApiName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SalesforceObjectDataset(this.LinkedServiceName); - dataset.ObjectApiName = this.ObjectApiName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSalesforceServiceCloudObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSalesforceServiceCloudObjectDataset.cs deleted file mode 100644 index 215a82000692..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSalesforceServiceCloudObjectDataset.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Salesforce Service Cloud object dataset. - /// - [Newtonsoft.Json.JsonObject("SalesforceServiceCloudObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSSalesforceServiceCloudObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the - /// PSSalesforceServiceCloudObjectDataset class. - /// - public PSSalesforceServiceCloudObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Salesforce Service Cloud object API name. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.objectApiName")] - public object ObjectApiName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SalesforceServiceCloudObjectDataset(this.LinkedServiceName); - dataset.ObjectApiName = this.ObjectApiName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSapBwCubeDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSapBwCubeDataset.cs deleted file mode 100644 index b3eb2a1adce4..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSapBwCubeDataset.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The SAP BW cube dataset. - /// - [Newtonsoft.Json.JsonObject("SapBwCube")] - public partial class PSSapBwCubeDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSapBwCubeDataset class. - /// - public PSSapBwCubeDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SapBwCubeDataset(this.LinkedServiceName); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSapCloudForCustomerResourceDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSapCloudForCustomerResourceDataset.cs deleted file mode 100644 index e52855e8665c..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSapCloudForCustomerResourceDataset.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The path of the SAP Cloud for Customer OData entity. - /// - [Newtonsoft.Json.JsonObject("SapCloudForCustomerResource")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapCloudForCustomerResourceDataset : PSDataset - { - /// - /// Initializes a new instance of the - /// PSSapCloudForCustomerResourceDataset class. - /// - public PSSapCloudForCustomerResourceDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the path of the SAP Cloud for Customer OData entity. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.path")] - public object Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new SapCloudForCustomerResourceDataset(this.LinkedServiceName, this.Path); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSapEccResourceDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSapEccResourceDataset.cs deleted file mode 100644 index 19c5ee2aea16..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSapEccResourceDataset.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The path of the SAP ECC OData entity. - /// - [Newtonsoft.Json.JsonObject("SapEccResource")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapEccResourceDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSapEccResourceDataset class. - /// - public PSSapEccResourceDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the path of the SAP ECC OData entity. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.path")] - public object Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new SapEccResourceDataset(this.LinkedServiceName, this.Path); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSapHanaTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSapHanaTableDataset.cs deleted file mode 100644 index 9ecd4566814a..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSapHanaTableDataset.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SAP HANA Table properties. - /// - [Newtonsoft.Json.JsonObject("SapHanaTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapHanaTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSapHanaTableDataset class. - /// - public PSSapHanaTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the schema name of SAP HANA. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object SapHanaTableDatasetSchema { get; set; } - - /// - /// Gets or sets the table name of SAP HANA. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SapHanaTableDataset(this.LinkedServiceName); - dataset.SchemaTypePropertiesSchema = this.SapHanaTableDatasetSchema; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSapOpenHubTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSapOpenHubTableDataset.cs deleted file mode 100644 index 0577b1f7a090..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSapOpenHubTableDataset.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Sap Business Warehouse Open Hub Destination Table properties. - /// - [Newtonsoft.Json.JsonObject("SapOpenHubTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapOpenHubTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSapOpenHubTableDataset class. - /// - public PSSapOpenHubTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of the Open Hub Destination with destination - /// type as Database Table. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.openHubDestinationName")] - public object OpenHubDestinationName { get; set; } - - /// - /// Gets or sets whether to exclude the records of the last request. - /// The default value is true. Type: boolean (or Expression with - /// resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.excludeLastRequest")] - public object ExcludeLastRequest { get; set; } - - /// - /// Gets or sets the ID of request for delta loading. Once it is set, - /// only data with requestId larger than the value of this property - /// will be retrieved. The default value is 0. Type: integer (or - /// Expression with resultType integer ). - /// - [JsonProperty(PropertyName = "typeProperties.baseRequestId")] - public object BaseRequestId { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (OpenHubDestinationName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "OpenHubDestinationName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new SapOpenHubTableDataset(this.LinkedServiceName, this.OpenHubDestinationName); - dataset.ExcludeLastRequest = this.ExcludeLastRequest; - dataset.BaseRequestId = this.BaseRequestId; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSapTableResourceDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSapTableResourceDataset.cs deleted file mode 100644 index 24205fba6560..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSapTableResourceDataset.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SAP Table Resource properties. - /// - [Newtonsoft.Json.JsonObject("SapTableResource")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapTableResourceDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSapTableResourceDataset class. - /// - public PSSapTableResourceDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of the SAP Table. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (TableName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TableName"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new SapTableResourceDataset(this.LinkedServiceName, this.TableName); - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSServiceNowObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSServiceNowObjectDataset.cs deleted file mode 100644 index 57ba485108aa..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSServiceNowObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ServiceNow server dataset. - /// - [Newtonsoft.Json.JsonObject("ServiceNowObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSServiceNowObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSServiceNowObjectDataset class. - /// - public PSServiceNowObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new ServiceNowObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSShopifyObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSShopifyObjectDataset.cs deleted file mode 100644 index c94a715c4830..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSShopifyObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Shopify Service dataset. - /// - [Newtonsoft.Json.JsonObject("ShopifyObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSShopifyObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSShopifyObjectDataset class. - /// - public PSShopifyObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new ShopifyObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSparkObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSparkObjectDataset.cs deleted file mode 100644 index 176495f0c369..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSparkObjectDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Spark Server dataset. - /// - [Newtonsoft.Json.JsonObject("SparkObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSSparkObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSparkObjectDataset class. - /// - public PSSparkObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Spark. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Spark. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object SparkObjectDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SparkObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.SparkObjectDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSqlServerTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSqlServerTableDataset.cs deleted file mode 100644 index 7d41eddd8f1a..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSqlServerTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The on-premises SQL Server dataset. - /// - [Newtonsoft.Json.JsonObject("SqlServerTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSSqlServerTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSqlServerTableDataset class. - /// - public PSSqlServerTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the schema name of the SQL Server dataset. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object SqlServerTableDatasetSchema { get; set; } - - /// - /// Gets or sets the table name of the SQL Server dataset. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SqlServerTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.SchemaTypePropertiesSchema = this.SqlServerTableDatasetSchema; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSquareObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSquareObjectDataset.cs deleted file mode 100644 index 791ec88ad625..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSquareObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Square Service dataset. - /// - [Newtonsoft.Json.JsonObject("SquareObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSSquareObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSquareObjectDataset class. - /// - public PSSquareObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SquareObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSSybaseTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSSybaseTableDataset.cs deleted file mode 100644 index 17fe00ce37c2..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSSybaseTableDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Sybase table dataset. - /// - [Newtonsoft.Json.JsonObject("SybaseTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSSybaseTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSSybaseTableDataset class. - /// - public PSSybaseTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Sybase table name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new SybaseTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSTeradataTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSTeradataTableDataset.cs deleted file mode 100644 index c5a22ae3117a..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSTeradataTableDataset.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The Teradata database dataset. - /// - [Newtonsoft.Json.JsonObject("TeradataTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSTeradataTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSTeradataTableDataset class. - /// - public PSTeradataTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the database name of Teradata. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Gets or sets the table name of Teradata. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new TeradataTableDataset(this.LinkedServiceName); - dataset.Database = this.Database; - dataset.Table = this.Table; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSVerticaTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSVerticaTableDataset.cs deleted file mode 100644 index dd1176cebbfd..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSVerticaTableDataset.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Vertica dataset. - /// - [Newtonsoft.Json.JsonObject("VerticaTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSVerticaTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSVerticaTableDataset class. - /// - public PSVerticaTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets this property will be retired. Please consider using - /// schema + table properties instead. - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Gets or sets the table name of the Vertica. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.table")] - public object Table { get; set; } - - /// - /// Gets or sets the schema name of the Vertica. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object VerticaTableDatasetSchema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new VerticaTableDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - dataset.Table = this.Table; - dataset.SchemaTypePropertiesSchema = this.VerticaTableDatasetSchema; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSWebTableDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSWebTableDataset.cs deleted file mode 100644 index 0acfe49c213b..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSWebTableDataset.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The dataset points to a HTML table in the web page. - /// - [Newtonsoft.Json.JsonObject("WebTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSWebTableDataset : PSDataset - { - /// - /// Initializes a new instance of the PSWebTableDataset class. - /// - public PSWebTableDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the zero-based index of the table in the web page. - /// Type: integer (or Expression with resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.index")] - public object Index { get; set; } - - /// - /// Gets or sets the relative URL to the web page from the linked - /// service URL. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.path")] - public object Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Index == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Index"); - } - } - - public override Dataset ToSdkObject() - { - var dataset = new WebTableDataset(this.LinkedServiceName, this.Index); - dataset.Path = this.Path; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSXeroObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSXeroObjectDataset.cs deleted file mode 100644 index f96c6ca0ec0a..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSXeroObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Xero Service dataset. - /// - [Newtonsoft.Json.JsonObject("XeroObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSXeroObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSXeroObjectDataset class. - /// - public PSXeroObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new XeroObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/Dataset/PSZohoObjectDataset.cs b/src/Synapse/Synapse/Models/Dataset/PSZohoObjectDataset.cs deleted file mode 100644 index 5ccc31889f22..000000000000 --- a/src/Synapse/Synapse/Models/Dataset/PSZohoObjectDataset.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Zoho server dataset. - /// - [Newtonsoft.Json.JsonObject("ZohoObject")] - [Rest.Serialization.JsonTransformation] - public partial class PSZohoObjectDataset : PSDataset - { - /// - /// Initializes a new instance of the PSZohoObjectDataset class. - /// - public PSZohoObjectDataset() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the table name. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tableName")] - public object TableName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override Dataset ToSdkObject() - { - var dataset = new ZohoObjectDataset(this.LinkedServiceName); - dataset.TableName = this.TableName; - SetProperties(dataset); - return dataset; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAmazonMWSLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAmazonMWSLinkedService.cs deleted file mode 100644 index 219f60bc1127..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAmazonMWSLinkedService.cs +++ /dev/null @@ -1,151 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Amazon Marketplace Web Service linked service. - /// - [Newtonsoft.Json.JsonObject("AmazonMWS")] - [Rest.Serialization.JsonTransformation] - public partial class PSAmazonMWSLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAmazonMWSLinkedService class. - /// - public PSAmazonMWSLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Amazon MWS server, (i.e. - /// mws.amazonservices.com) - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the Amazon Marketplace ID you want to retrieve data - /// from. To retrieve data from multiple Marketplace IDs, separate them - /// with a comma (,). (i.e. A2EUQ1WTGCTBG2) - /// - [JsonProperty(PropertyName = "typeProperties.marketplaceID")] - public object MarketplaceID { get; set; } - - /// - /// Gets or sets the Amazon seller ID. - /// - [JsonProperty(PropertyName = "typeProperties.sellerID")] - public object SellerID { get; set; } - - /// - /// Gets or sets the Amazon MWS authentication token. - /// - [JsonProperty(PropertyName = "typeProperties.mwsAuthToken")] - public SecretBase MwsAuthToken { get; set; } - - /// - /// Gets or sets the access key id used to access data. - /// - [JsonProperty(PropertyName = "typeProperties.accessKeyId")] - public object AccessKeyId { get; set; } - - /// - /// Gets or sets the secret key used to access data. - /// - [JsonProperty(PropertyName = "typeProperties.secretKey")] - public SecretBase SecretKey { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - if (MarketplaceID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MarketplaceID"); - } - if (SellerID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SellerID"); - } - if (AccessKeyId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccessKeyId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AmazonMWSLinkedService(this.Endpoint, this.MarketplaceID, this.SellerID, this.AccessKeyId); - linkedService.MwsAuthToken = this.MwsAuthToken; - linkedService.SecretKey = this.SecretKey; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAmazonRedshiftLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAmazonRedshiftLinkedService.cs deleted file mode 100644 index 902ffffcc766..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAmazonRedshiftLinkedService.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Amazon Redshift. - /// - [Newtonsoft.Json.JsonObject("AmazonRedshift")] - [Rest.Serialization.JsonTransformation] - public partial class PSAmazonRedshiftLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAmazonRedshiftLinkedService - /// class. - /// - public PSAmazonRedshiftLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of the Amazon Redshift server. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets the username of the Amazon Redshift source. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password of the Amazon Redshift source. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the database name of the Amazon Redshift source. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Gets or sets the TCP port number that the Amazon Redshift server - /// uses to listen for client connections. The default value is 5439. - /// Type: integer (or Expression with resultType integer). - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - if (Database == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Database"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AmazonRedshiftLinkedService(this.Server, this.Database); - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.Port = this.Port; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAmazonS3LinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAmazonS3LinkedService.cs deleted file mode 100644 index 8f6993120ca3..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAmazonS3LinkedService.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Amazon S3. - /// - [Newtonsoft.Json.JsonObject("AmazonS3")] - [Rest.Serialization.JsonTransformation] - public partial class PSAmazonS3LinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAmazonS3LinkedService class. - /// - public PSAmazonS3LinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the access key identifier of the Amazon S3 Identity - /// and Access Management (IAM) user. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.accessKeyId")] - public object AccessKeyId { get; set; } - - /// - /// Gets or sets the secret access key of the Amazon S3 Identity and - /// Access Management (IAM) user. - /// - [JsonProperty(PropertyName = "typeProperties.secretAccessKey")] - public SecretBase SecretAccessKey { get; set; } - - /// - /// Gets or sets this value specifies the endpoint to access with the - /// S3 Connector. This is an optional property; change it only if you - /// want to try a different service endpoint or want to switch between - /// https and http. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.serviceUrl")] - public object ServiceUrl { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AmazonS3LinkedService(); - linkedService.AccessKeyId = this.AccessKeyId; - linkedService.SecretAccessKey = this.SecretAccessKey; - linkedService.ServiceUrl = this.ServiceUrl; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureBatchLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureBatchLinkedService.cs deleted file mode 100644 index 0608b5bae2ce..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureBatchLinkedService.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Batch linked service. - /// - [Newtonsoft.Json.JsonObject("AzureBatch")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureBatchLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureBatchLinkedService class. - /// - public PSAzureBatchLinkedService(string referenceName) - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Azure Batch account name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.accountName")] - public object AccountName { get; set; } - - /// - /// Gets or sets the Azure Batch account access key. - /// - [JsonProperty(PropertyName = "typeProperties.accessKey")] - public SecretBase AccessKey { get; set; } - - /// - /// Gets or sets the Azure Batch URI. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.batchUri")] - public object BatchUri { get; set; } - - /// - /// Gets or sets the Azure Batch pool name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.poolName")] - public object PoolName { get; set; } - - /// - /// Gets or sets the Azure Storage linked service reference. - /// - [JsonProperty(PropertyName = "typeProperties.linkedServiceName")] - public LinkedServiceReference LinkedServiceName { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (AccountName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccountName"); - } - if (BatchUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "BatchUri"); - } - if (PoolName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PoolName"); - } - if (LinkedServiceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "LinkedServiceName"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureBatchLinkedService(this.AccountName, this.BatchUri, this.PoolName, this.LinkedServiceName); - linkedService.AccessKey = this.AccessKey; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureBlobFSLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureBlobFSLinkedService.cs deleted file mode 100644 index a779d19effff..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureBlobFSLinkedService.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Data Lake Storage Gen2 linked service. - /// - [Newtonsoft.Json.JsonObject("AzureBlobFS")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureBlobFSLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureBlobFSLinkedService class. - /// - public PSAzureBlobFSLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets endpoint for the Azure Data Lake Storage Gen2 service. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets account key for the Azure Data Lake Storage Gen2 - /// service. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.accountKey")] - public object AccountKey { get; set; } - - /// - /// Gets or sets the ID of the application used to authenticate against - /// the Azure Data Lake Storage Gen2 account. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the Key of the application used to authenticate - /// against the Azure Data Lake Storage Gen2 account. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureBlobFSLinkedService(this.Url); - linkedService.AccountKey = this.AccountKey; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureBlobStorageLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureBlobStorageLinkedService.cs deleted file mode 100644 index 2caaffc84b24..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureBlobStorageLinkedService.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The azure blob storage linked service. - /// - [Newtonsoft.Json.JsonObject("AzureBlobStorage")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureBlobStorageLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureBlobStorageLinkedService - /// class. - /// - public PSAzureBlobStorageLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. It is mutually exclusive with - /// sasUri, serviceEndpoint property. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of accountKey in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.accountKey")] - public AzureKeyVaultSecretReference AccountKey { get; set; } - - /// - /// Gets or sets SAS URI of the Azure Blob Storage resource. It is - /// mutually exclusive with connectionString, serviceEndpoint property. - /// Type: string, SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.sasUri")] - public object SasUri { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of sasToken in - /// sas uri. - /// - [JsonProperty(PropertyName = "typeProperties.sasToken")] - public AzureKeyVaultSecretReference SasToken { get; set; } - - /// - /// Gets or sets blob service endpoint of the Azure Blob Storage - /// resource. It is mutually exclusive with connectionString, sasUri - /// property. - /// - [JsonProperty(PropertyName = "typeProperties.serviceEndpoint")] - public string ServiceEndpoint { get; set; } - - /// - /// Gets or sets the ID of the service principal used to authenticate - /// against Azure SQL Data Warehouse. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key of the service principal used to authenticate - /// against Azure SQL Data Warehouse. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public string EncryptedCredential { get; set; } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureBlobStorageLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.AccountKey = this.AccountKey; - linkedService.SasUri = this.SasUri; - linkedService.SasToken = this.SasToken; - linkedService.ServiceEndpoint = this.ServiceEndpoint; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureDataExplorerLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureDataExplorerLinkedService.cs deleted file mode 100644 index 2e7b27ea6105..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureDataExplorerLinkedService.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Data Explorer (Kusto) linked service. - /// - [Newtonsoft.Json.JsonObject("AzureDataExplorer")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureDataExplorerLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureDataExplorerLinkedService - /// class. - /// - public PSAzureDataExplorerLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of Azure Data Explorer (the engine's - /// endpoint). URL will be in the format - /// https://&lt;clusterName&gt;.&lt;regionName&gt;.kusto.windows.net. - /// Type: string (or Expression with resultType string) - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the ID of the service principal used to authenticate - /// against Azure Data Explorer. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key of the service principal used to authenticate - /// against Kusto. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets database name for connection. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - if (ServicePrincipalId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalId"); - } - if (ServicePrincipalKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalKey"); - } - if (Database == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Database"); - } - if (Tenant == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Tenant"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureDataExplorerLinkedService(this.Endpoint, this.ServicePrincipalId, this.ServicePrincipalKey, this.Database, this.Tenant); - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeAnalyticsLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeAnalyticsLinkedService.cs deleted file mode 100644 index 17ab6b6434a0..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeAnalyticsLinkedService.cs +++ /dev/null @@ -1,136 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Data Lake Analytics linked service. - /// - [Newtonsoft.Json.JsonObject("AzureDataLakeAnalytics")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureDataLakeAnalyticsLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the - /// PSAzureDataLakeAnalyticsLinkedService class. - /// - public PSAzureDataLakeAnalyticsLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Azure Data Lake Analytics account name. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.accountName")] - public object AccountName { get; set; } - - /// - /// Gets or sets the ID of the application used to authenticate against - /// the Azure Data Lake Analytics account. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the Key of the application used to authenticate - /// against the Azure Data Lake Analytics account. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets data Lake Analytics account subscription ID (if - /// different from Data Factory account). Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.subscriptionId")] - public object SubscriptionId { get; set; } - - /// - /// Gets or sets data Lake Analytics account resource group name (if - /// different from Data Factory account). Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.resourceGroupName")] - public object ResourceGroupName { get; set; } - - /// - /// Gets or sets azure Data Lake Analytics URI Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.dataLakeAnalyticsUri")] - public object DataLakeAnalyticsUri { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (AccountName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccountName"); - } - if (Tenant == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Tenant"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureDataLakeAnalyticsLinkedService(this.AccountName, this.Tenant); - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.SubscriptionId = this.SubscriptionId; - linkedService.ResourceGroupName = this.ResourceGroupName; - linkedService.DataLakeAnalyticsUri = this.DataLakeAnalyticsUri; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeStoreLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeStoreLinkedService.cs deleted file mode 100644 index f9057662d35c..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureDataLakeStoreLinkedService.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Data Lake Store linked service. - /// - [Newtonsoft.Json.JsonObject("AzureDataLakeStore")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureDataLakeStoreLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureDataLakeStoreLinkedService - /// class. - /// - public PSAzureDataLakeStoreLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets data Lake Store service URI. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.dataLakeStoreUri")] - public object DataLakeStoreUri { get; set; } - - /// - /// Gets or sets the ID of the application used to authenticate against - /// the Azure Data Lake Store account. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the Key of the application used to authenticate - /// against the Azure Data Lake Store account. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets data Lake Store account name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.accountName")] - public object AccountName { get; set; } - - /// - /// Gets or sets data Lake Store account subscription ID (if different - /// from Data Factory account). Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.subscriptionId")] - public object SubscriptionId { get; set; } - - /// - /// Gets or sets data Lake Store account resource group name (if - /// different from Data Factory account). Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.resourceGroupName")] - public object ResourceGroupName { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (DataLakeStoreUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DataLakeStoreUri"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureDataLakeStoreLinkedService(this.DataLakeStoreUri); - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.AccountName = this.AccountName; - linkedService.SubscriptionId = this.SubscriptionId; - linkedService.ResourceGroupName = this.ResourceGroupName; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureDatabricksLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureDatabricksLinkedService.cs deleted file mode 100644 index fa22a53b90cf..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureDatabricksLinkedService.cs +++ /dev/null @@ -1,200 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Databricks linked service. - /// - [Newtonsoft.Json.JsonObject("AzureDatabricks")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureDatabricksLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureDatabricksLinkedService - /// class. - /// - public PSAzureDatabricksLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets &lt;REGION&gt;.azuredatabricks.net, domain - /// name of your Databricks deployment. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.domain")] - public object Domain { get; set; } - - /// - /// Gets or sets access token for databricks REST API. Refer to - /// https://docs.azuredatabricks.net/api/latest/authentication.html. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.accessToken")] - public SecretBase AccessToken { get; set; } - - /// - /// Gets or sets the id of an existing interactive cluster that will be - /// used for all runs of this activity. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.existingClusterId")] - public object ExistingClusterId { get; set; } - - /// - /// Gets or sets the id of an existing instance pool that will be used - /// for all runs of this activity. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.instancePoolId")] - public object InstancePoolId { get; set; } - - /// - /// Gets or sets if not using an existing interactive cluster, this - /// specifies the Spark version of a new job cluster or instance pool - /// nodes created for each run of this activity. Required if - /// instancePoolId is specified. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.newClusterVersion")] - public object NewClusterVersion { get; set; } - - /// - /// Gets or sets if not using an existing interactive cluster, this - /// specifies the number of worker nodes to use for the new job cluster - /// or instance pool. For new job clusters, this a string-formatted - /// Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale - /// from 1 (min) to 10 (max). For instance pools, this is a - /// string-formatted Int32, and can only specify a fixed number of - /// worker nodes, such as '2'. Required if newClusterVersion is - /// specified. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.newClusterNumOfWorker")] - public object NewClusterNumOfWorker { get; set; } - - /// - /// Gets or sets the node type of the new job cluster. This property is - /// required if newClusterVersion is specified and instancePoolId is - /// not specified. If instancePoolId is specified, this property is - /// ignored. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.newClusterNodeType")] - public object NewClusterNodeType { get; set; } - - /// - /// Gets or sets a set of optional, user-specified Spark configuration - /// key-value pairs. - /// - [JsonProperty(PropertyName = "typeProperties.newClusterSparkConf")] - public IDictionary NewClusterSparkConf { get; set; } - - /// - /// Gets or sets a set of optional, user-specified Spark environment - /// variables key-value pairs. - /// - [JsonProperty(PropertyName = "typeProperties.newClusterSparkEnvVars")] - public IDictionary NewClusterSparkEnvVars { get; set; } - - /// - /// Gets or sets additional tags for cluster resources. This property - /// is ignored in instance pool configurations. - /// - [JsonProperty(PropertyName = "typeProperties.newClusterCustomTags")] - public IDictionary NewClusterCustomTags { get; set; } - - /// - /// Gets or sets the driver node type for the new job cluster. This - /// property is ignored in instance pool configurations. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.newClusterDriverNodeType")] - public object NewClusterDriverNodeType { get; set; } - - /// - /// Gets or sets user-defined initialization scripts for the new - /// cluster. Type: array of strings (or Expression with resultType - /// array of strings). - /// - [JsonProperty(PropertyName = "typeProperties.newClusterInitScripts")] - public object NewClusterInitScripts { get; set; } - - /// - /// Gets or sets enable the elastic disk on the new cluster. This - /// property is now ignored, and takes the default elastic disk - /// behavior in Databricks (elastic disks are always enabled). Type: - /// boolean (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.newClusterEnableElasticDisk")] - public object NewClusterEnableElasticDisk { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Domain == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Domain"); - } - if (AccessToken == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccessToken"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureDatabricksLinkedService(this.Domain, this.AccessToken); - linkedService.ExistingClusterId = this.ExistingClusterId; - linkedService.InstancePoolId = this.InstancePoolId; - linkedService.NewClusterVersion = this.NewClusterVersion; - linkedService.NewClusterNumOfWorker = this.NewClusterNumOfWorker; - linkedService.NewClusterNodeType = this.NewClusterNodeType; - this.NewClusterSparkConf?.ForEach(item => linkedService.NewClusterSparkConf.Add(item)); - this.NewClusterSparkEnvVars?.ForEach(item => linkedService.NewClusterSparkEnvVars.Add(item)); - this.NewClusterCustomTags?.ForEach(item => linkedService.NewClusterCustomTags.Add(item)); - linkedService.NewClusterDriverNodeType = this.NewClusterDriverNodeType; - linkedService.NewClusterInitScripts = this.NewClusterInitScripts; - linkedService.NewClusterEnableElasticDisk = this.NewClusterEnableElasticDisk; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureFileStorageLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureFileStorageLinkedService.cs deleted file mode 100644 index a50b25386b48..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureFileStorageLinkedService.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure File Storage linked service. - /// - [Newtonsoft.Json.JsonObject("AzureFileStorage")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureFileStorageLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureFileStorageLinkedService - /// class. - /// - public PSAzureFileStorageLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets host name of the server. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets user ID to logon the server. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userId")] - public object UserId { get; set; } - - /// - /// Gets or sets password to logon the server. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureFileStorageLinkedService(this.Host); - linkedService.UserId = this.UserId; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureFunctionLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureFunctionLinkedService.cs deleted file mode 100644 index 9d631e5a3f16..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureFunctionLinkedService.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Function linked service. - /// - [Newtonsoft.Json.JsonObject("AzureFunction")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureFunctionLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureFunctionLinkedService - /// class. - /// - public PSAzureFunctionLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Azure Function App. URL will be in - /// the format https://&lt;accountName&gt;.azurewebsites.net. - /// - [JsonProperty(PropertyName = "typeProperties.functionAppUrl")] - public object FunctionAppUrl { get; set; } - - /// - /// Gets or sets function or Host key for Azure Function App. - /// - [JsonProperty(PropertyName = "typeProperties.functionKey")] - public SecretBase FunctionKey { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (FunctionAppUrl == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FunctionAppUrl"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureFunctionLinkedService(this.FunctionAppUrl); - linkedService.FunctionKey = this.FunctionKey; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureKeyVaultLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureKeyVaultLinkedService.cs deleted file mode 100644 index 2b5b23003326..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureKeyVaultLinkedService.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Key Vault linked service. - /// - [Newtonsoft.Json.JsonObject("AzureKeyVault")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureKeyVaultLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureKeyVaultLinkedService - /// class. - /// - public PSAzureKeyVaultLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the base URL of the Azure Key Vault. e.g. - /// https://myakv.vault.azure.net Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.baseUrl")] - public object BaseUrl { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (BaseUrl == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "BaseUrl"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureKeyVaultLinkedService(this.BaseUrl); - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureMLLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureMLLinkedService.cs deleted file mode 100644 index 8f21d71d5772..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureMLLinkedService.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure ML Studio Web Service linked service. - /// - [Newtonsoft.Json.JsonObject("AzureML")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMLLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureMLLinkedService class. - /// - public PSAzureMLLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Batch Execution REST URL for an Azure ML Studio - /// Web Service endpoint. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.mlEndpoint")] - public object MlEndpoint { get; set; } - - /// - /// Gets or sets the API key for accessing the Azure ML model endpoint. - /// - [JsonProperty(PropertyName = "typeProperties.apiKey")] - public SecretBase ApiKey { get; set; } - - /// - /// Gets or sets the Update Resource REST URL for an Azure ML Studio - /// Web Service endpoint. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.updateResourceEndpoint")] - public object UpdateResourceEndpoint { get; set; } - - /// - /// Gets or sets the ID of the service principal used to authenticate - /// against the ARM-based updateResourceEndpoint of an Azure ML Studio - /// web service. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key of the service principal used to authenticate - /// against the ARM-based updateResourceEndpoint of an Azure ML Studio - /// web service. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (MlEndpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MlEndpoint"); - } - if (ApiKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ApiKey"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureMLLinkedService(this.MlEndpoint, this.ApiKey); - linkedService.UpdateResourceEndpoint = this.UpdateResourceEndpoint; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureMLServiceLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureMLServiceLinkedService.cs deleted file mode 100644 index 08c28021b1dd..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureMLServiceLinkedService.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure ML Service linked service. - /// - [Newtonsoft.Json.JsonObject("AzureMLService")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMLServiceLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureMLServiceLinkedService - /// class. - /// - public PSAzureMLServiceLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets azure ML Service workspace subscription ID. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.subscriptionId")] - public object SubscriptionId { get; set; } - - /// - /// Gets or sets azure ML Service workspace resource group name. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.resourceGroupName")] - public object ResourceGroupName { get; set; } - - /// - /// Gets or sets azure ML Service workspace name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.mlWorkspaceName")] - public object MlWorkspaceName { get; set; } - - /// - /// Gets or sets the ID of the service principal used to authenticate - /// against the endpoint of a published Azure ML Service pipeline. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key of the service principal used to authenticate - /// against the endpoint of a published Azure ML Service pipeline. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SubscriptionId"); - } - if (ResourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ResourceGroupName"); - } - if (MlWorkspaceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MlWorkspaceName"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureMLServiceLinkedService(this.SubscriptionId, this.ResourceGroupName, this.MlWorkspaceName); - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureMariaDBLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureMariaDBLinkedService.cs deleted file mode 100644 index 1a107965ccf5..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureMariaDBLinkedService.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure Database for MariaDB linked service. - /// - [Newtonsoft.Json.JsonObject("AzureMariaDB")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMariaDBLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureMariaDBLinkedService - /// class. - /// - public PSAzureMariaDBLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.pwd")] - public AzureKeyVaultSecretReference Pwd { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureMariaDBLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Pwd = this.Pwd; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureMySqlLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureMySqlLinkedService.cs deleted file mode 100644 index 4eaca5d53db9..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureMySqlLinkedService.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure MySQL database linked service. - /// - [Newtonsoft.Json.JsonObject("AzureMySql")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureMySqlLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureMySqlLinkedService class. - /// - public PSAzureMySqlLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureMySqlLinkedService(this.ConnectionString); - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzurePostgreSqlLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzurePostgreSqlLinkedService.cs deleted file mode 100644 index 5f83077f41f6..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzurePostgreSqlLinkedService.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure PostgreSQL linked service. - /// - [Newtonsoft.Json.JsonObject("AzurePostgreSql")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzurePostgreSqlLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzurePostgreSqlLinkedService - /// class. - /// - public PSAzurePostgreSqlLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzurePostgreSqlLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureSearchLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureSearchLinkedService.cs deleted file mode 100644 index 53cfcc23f2ae..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureSearchLinkedService.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Windows Azure Search Service. - /// - [Newtonsoft.Json.JsonObject("AzureSearch")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSearchLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureSearchLinkedService class. - /// - public PSAzureSearchLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets URL for Azure Search service. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets admin Key for Azure Search service - /// - [JsonProperty(PropertyName = "typeProperties.key")] - public SecretBase Key { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureSearchLinkedService(this.Url); - linkedService.Key = this.Key; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDWLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDWLinkedService.cs deleted file mode 100644 index 32513c873dac..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDWLinkedService.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure SQL Data Warehouse linked service. - /// - [Newtonsoft.Json.JsonObject("AzureSqlDW")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSqlDWLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureSqlDWLinkedService class. - /// - public PSAzureSqlDWLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. Type: string, SecureString or - /// AzureKeyVaultSecretReference. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the ID of the service principal used to authenticate - /// against Azure SQL Data Warehouse. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key of the service principal used to authenticate - /// against Azure SQL Data Warehouse. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureSqlDWLinkedService(this.ConnectionString); - linkedService.Password = this.Password; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDatabaseLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDatabaseLinkedService.cs deleted file mode 100644 index e9258ac88bc9..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlDatabaseLinkedService.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Microsoft Azure SQL Database linked service. - /// - [Newtonsoft.Json.JsonObject("AzureSqlDatabase")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSqlDatabaseLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureSqlDatabaseLinkedService - /// class. - /// - public PSAzureSqlDatabaseLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the ID of the service principal used to authenticate - /// against Azure SQL Database. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key of the service principal used to authenticate - /// against Azure SQL Database. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureSqlDatabaseLinkedService(this.ConnectionString); - linkedService.Password = this.Password; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlMILinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlMILinkedService.cs deleted file mode 100644 index a8c457c482e2..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureSqlMILinkedService.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Azure SQL Managed Instance linked service. - /// - [Newtonsoft.Json.JsonObject("AzureSqlMI")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureSqlMILinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureSqlMILinkedService class. - /// - public PSAzureSqlMILinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the ID of the service principal used to authenticate - /// against Azure SQL Managed Instance. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key of the service principal used to authenticate - /// against Azure SQL Managed Instance. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the name or ID of the tenant to which the service - /// principal belongs. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureSqlMILinkedService(this.ConnectionString); - linkedService.Password = this.Password; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureStorageLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureStorageLinkedService.cs deleted file mode 100644 index 8e6ceab92c89..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureStorageLinkedService.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The storage account linked service. - /// - [Newtonsoft.Json.JsonObject("AzureStorage")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureStorageLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureStorageLinkedService - /// class. - /// - public PSAzureStorageLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. It is mutually exclusive with - /// sasUri property. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of accountKey in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.accountKey")] - public AzureKeyVaultSecretReference AccountKey { get; set; } - - /// - /// Gets or sets SAS URI of the Azure Storage resource. It is mutually - /// exclusive with connectionString property. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.sasUri")] - public object SasUri { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of sasToken in - /// sas uri. - /// - [JsonProperty(PropertyName = "typeProperties.sasToken")] - public AzureKeyVaultSecretReference SasToken { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public string EncryptedCredential { get; set; } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureStorageLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.AccountKey = this.AccountKey; - linkedService.SasUri = this.SasUri; - linkedService.SasToken = this.SasToken; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSAzureTableStorageLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSAzureTableStorageLinkedService.cs deleted file mode 100644 index f0ce1dd90d59..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSAzureTableStorageLinkedService.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The azure table storage linked service. - /// - [Newtonsoft.Json.JsonObject("AzureTableStorage")] - [Rest.Serialization.JsonTransformation] - public partial class PSAzureTableStorageLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSAzureTableStorageLinkedService - /// class. - /// - public PSAzureTableStorageLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. It is mutually exclusive with - /// sasUri property. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of accountKey in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.accountKey")] - public AzureKeyVaultSecretReference AccountKey { get; set; } - - /// - /// Gets or sets SAS URI of the Azure Storage resource. It is mutually - /// exclusive with connectionString property. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.sasUri")] - public object SasUri { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of sasToken in - /// sas uri. - /// - [JsonProperty(PropertyName = "typeProperties.sasToken")] - public AzureKeyVaultSecretReference SasToken { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public string EncryptedCredential { get; set; } - - public override LinkedService ToSdkObject() - { - var linkedService = new AzureTableStorageLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.AccountKey = this.AccountKey; - linkedService.SasUri = this.SasUri; - linkedService.SasToken = this.SasToken; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSCassandraLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSCassandraLinkedService.cs deleted file mode 100644 index b60d5f0e0f97..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSCassandraLinkedService.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Cassandra data source. - /// - [Newtonsoft.Json.JsonObject("Cassandra")] - [Rest.Serialization.JsonTransformation] - public partial class PSCassandraLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSCassandraLinkedService class. - /// - public PSCassandraLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets host name for connection. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets authenticationType to be used for connection. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public object AuthenticationType { get; set; } - - /// - /// Gets or sets the port for the connection. Type: integer (or - /// Expression with resultType integer). - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets username for authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password for authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new CassandraLinkedService(this.Host); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Port = this.Port; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSCommonDataServiceForAppsLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSCommonDataServiceForAppsLinkedService.cs deleted file mode 100644 index 38b6ff8480aa..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSCommonDataServiceForAppsLinkedService.cs +++ /dev/null @@ -1,188 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Common Data Service for Apps linked service. - /// - [Newtonsoft.Json.JsonObject("CommonDataServiceForApps")] - [Rest.Serialization.JsonTransformation] - public partial class PSCommonDataServiceForAppsLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the - /// PSCommonDataServiceForAppsLinkedService class. - /// - public PSCommonDataServiceForAppsLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the deployment type of the Common Data Service for - /// Apps instance. 'Online' for Common Data Service for Apps Online and - /// 'OnPremisesWithIfd' for Common Data Service for Apps on-premises - /// with Ifd. Type: string (or Expression with resultType string). - /// Possible values include: 'Online', 'OnPremisesWithIfd' - /// - [JsonProperty(PropertyName = "typeProperties.deploymentType")] - public string DeploymentType { get; set; } - - /// - /// Gets or sets the host name of the on-premises Common Data Service - /// for Apps server. The property is required for on-prem and not - /// allowed for online. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.hostName")] - public object HostName { get; set; } - - /// - /// Gets or sets the port of on-premises Common Data Service for Apps - /// server. The property is required for on-prem and not allowed for - /// online. Default is 443. Type: integer (or Expression with - /// resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the URL to the Microsoft Common Data Service for Apps - /// server. The property is required for on-line and not allowed for - /// on-prem. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.serviceUri")] - public object ServiceUri { get; set; } - - /// - /// Gets or sets the organization name of the Common Data Service for - /// Apps instance. The property is required for on-prem and required - /// for online when there are more than one Common Data Service for - /// Apps instances associated with the user. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.organizationName")] - public object OrganizationName { get; set; } - - /// - /// Gets or sets the authentication type to connect to Common Data - /// Service for Apps server. 'Office365' for online scenario, 'Ifd' for - /// on-premises with Ifd scenario. 'AADServicePrincipal' for - /// Server-To-Server authentication in online scenario. Type: string - /// (or Expression with resultType string). Possible values include: - /// 'Office365', 'Ifd', 'AADServicePrincipal' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets user name to access the Common Data Service for Apps - /// instance. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password to access the Common Data Service for Apps - /// instance. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the client ID of the application in Azure Active - /// Directory used for Server-To-Server authentication. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the service principal credential type to use in - /// Server-To-Server authentication. 'ServicePrincipalKey' for - /// key/secret, 'ServicePrincipalCert' for certificate. Type: string - /// (or Expression with resultType string). Possible values include: - /// 'ServicePrincipalKey', 'ServicePrincipalCert' - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalCredentialType")] - public string ServicePrincipalCredentialType { get; set; } - - /// - /// Gets or sets the credential of the service principal object in - /// Azure Active Directory. If servicePrincipalCredentialType is - /// 'ServicePrincipalKey', servicePrincipalCredential can be - /// SecureString or AzureKeyVaultSecretReference. If - /// servicePrincipalCredentialType is 'ServicePrincipalCert', - /// servicePrincipalCredential can only be - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalCredential")] - public SecretBase ServicePrincipalCredential { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (DeploymentType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DeploymentType"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new CommonDataServiceForAppsLinkedService(this.DeploymentType, this.AuthenticationType); - linkedService.HostName = this.HostName; - linkedService.Port = this.Port; - linkedService.ServiceUri = this.ServiceUri; - linkedService.OrganizationName = this.OrganizationName; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalCredentialType = this.ServicePrincipalCredentialType; - linkedService.ServicePrincipalCredential = this.ServicePrincipalCredential; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSConcurLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSConcurLinkedService.cs deleted file mode 100644 index 85dbcd2e7440..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSConcurLinkedService.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Concur Service linked service. - /// - [Newtonsoft.Json.JsonObject("Concur")] - [Rest.Serialization.JsonTransformation] - public partial class PSConcurLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSConcurLinkedService class. - /// - public PSConcurLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets application client_id supplied by Concur App - /// Management. - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the user name that you use to access Concur Service. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name that you - /// provided in the username field. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - if (Username == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Username"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new ConcurLinkedService(this.ClientId, this.Username); - linkedService.Password = this.Password; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSCosmosDbLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSCosmosDbLinkedService.cs deleted file mode 100644 index 86115259d9d0..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSCosmosDbLinkedService.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Microsoft Azure Cosmos Database (CosmosDB) linked service. - /// - [Newtonsoft.Json.JsonObject("CosmosDb")] - [Rest.Serialization.JsonTransformation] - public partial class PSCosmosDbLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSCosmosDbLinkedService class. - /// - public PSCosmosDbLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the endpoint of the Azure CosmosDB account. Type: - /// string (or Expression with resultType string) - /// - [JsonProperty(PropertyName = "typeProperties.accountEndpoint")] - public object AccountEndpoint { get; set; } - - /// - /// Gets or sets the name of the database. Type: string (or Expression - /// with resultType string) - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Gets or sets the account key of the Azure CosmosDB account. Type: - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.accountKey")] - public SecretBase AccountKey { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new CosmosDbLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.AccountEndpoint = this.AccountEndpoint; - linkedService.Database = this.Database; - linkedService.AccountKey = this.AccountKey; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSCosmosDbMongoDbApiLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSCosmosDbMongoDbApiLinkedService.cs deleted file mode 100644 index 9f9cc50ec922..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSCosmosDbMongoDbApiLinkedService.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for CosmosDB (MongoDB API) data source. - /// - [Newtonsoft.Json.JsonObject("CosmosDbMongoDbApi")] - [Rest.Serialization.JsonTransformation] - public partial class PSCosmosDbMongoDbApiLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSCosmosDbMongoDbApiLinkedService - /// class. - /// - public PSCosmosDbMongoDbApiLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the CosmosDB (MongoDB API) connection string. Type: - /// string, SecureString or AzureKeyVaultSecretReference. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the name of the CosmosDB (MongoDB API) database that - /// you want to access. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - if (Database == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Database"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new CosmosDbMongoDbApiLinkedService(this.ConnectionString, this.Database); - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSCouchbaseLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSCouchbaseLinkedService.cs deleted file mode 100644 index e3686065c74b..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSCouchbaseLinkedService.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Couchbase server linked service. - /// - [Newtonsoft.Json.JsonObject("Couchbase")] - [Rest.Serialization.JsonTransformation] - public partial class PSCouchbaseLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSCouchbaseLinkedService class. - /// - public PSCouchbaseLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of credString in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.credString")] - public AzureKeyVaultSecretReference CredString { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - public override LinkedService ToSdkObject() - { - var linkedService = new CouchbaseLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.CredString = this.CredString; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSCustomDataSourceLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSCustomDataSourceLinkedService.cs deleted file mode 100644 index 9e43886917c8..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSCustomDataSourceLinkedService.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Custom linked service. - /// - [Newtonsoft.Json.JsonObject("CustomDataSource")] - public partial class PSCustomDataSourceLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSCustomDataSourceLinkedService - /// class. - /// - public PSCustomDataSourceLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets custom linked service properties. - /// - [JsonProperty(PropertyName = "typeProperties")] - public object TypeProperties { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (TypeProperties == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TypeProperties"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new CustomDataSourceLinkedService(this.TypeProperties); - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSDb2LinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSDb2LinkedService.cs deleted file mode 100644 index 63002c3fb60c..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSDb2LinkedService.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for DB2 data source. - /// - [Newtonsoft.Json.JsonObject("Db2")] - [Rest.Serialization.JsonTransformation] - public partial class PSDb2LinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSDb2LinkedService class. - /// - public PSDb2LinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets server name for connection. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets database name for connection. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Gets or sets authenticationType to be used for connection. Possible - /// values include: 'Basic' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets username for authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password for authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets under where packages are created when querying - /// database. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.packageCollection")] - public object PackageCollection { get; set; } - - /// - /// Gets or sets certificate Common Name when TLS is enabled. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.certificateCommonName")] - public object CertificateCommonName { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - if (Database == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Database"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new Db2LinkedService(this.Server, this.Database); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.PackageCollection = this.PackageCollection; - linkedService.CertificateCommonName = this.CertificateCommonName; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSDrillLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSDrillLinkedService.cs deleted file mode 100644 index f8e098656f05..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSDrillLinkedService.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Drill server linked service. - /// - [Newtonsoft.Json.JsonObject("Drill")] - [Rest.Serialization.JsonTransformation] - public partial class PSDrillLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSDrillLinkedService class. - /// - public PSDrillLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.pwd")] - public AzureKeyVaultSecretReference Pwd { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - public override LinkedService ToSdkObject() - { - var linkedService = new DrillLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Pwd = this.Pwd; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSDynamicsAXLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSDynamicsAXLinkedService.cs deleted file mode 100644 index 83d4c3afe432..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSDynamicsAXLinkedService.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Dynamics AX linked service. - /// - [Newtonsoft.Json.JsonObject("DynamicsAX")] - [Rest.Serialization.JsonTransformation] - public partial class PSDynamicsAXLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSDynamicsAXLinkedService class. - /// - public PSDynamicsAXLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Dynamics AX (or Dynamics 365 Finance and - /// Operations) instance OData endpoint. - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets specify the application's client ID. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets specify the application's key. Mark this field as a - /// SecureString to store it securely in Data Factory, or reference a - /// secret stored in Azure Key Vault. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets specify the tenant information (domain name or tenant - /// ID) under which your application resides. Retrieve it by hovering - /// the mouse in the top-right corner of the Azure portal. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets specify the resource you are requesting authorization. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.aadResourceId")] - public object AadResourceId { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - if (ServicePrincipalId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalId"); - } - if (ServicePrincipalKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalKey"); - } - if (Tenant == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Tenant"); - } - if (AadResourceId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AadResourceId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new DynamicsAXLinkedService(this.Url, this.ServicePrincipalId, this.ServicePrincipalKey, this.Tenant, this.AadResourceId); - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSDynamicsCrmLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSDynamicsCrmLinkedService.cs deleted file mode 100644 index 1bf80b1620eb..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSDynamicsCrmLinkedService.cs +++ /dev/null @@ -1,184 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Dynamics CRM linked service. - /// - [Newtonsoft.Json.JsonObject("DynamicsCrm")] - [Rest.Serialization.JsonTransformation] - public partial class PSDynamicsCrmLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSDynamicsCrmLinkedService class. - /// - public PSDynamicsCrmLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the deployment type of the Dynamics CRM instance. - /// 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for - /// Dynamics CRM on-premises with Ifd. Type: string (or Expression with - /// resultType string). Possible values include: 'Online', - /// 'OnPremisesWithIfd' - /// - [JsonProperty(PropertyName = "typeProperties.deploymentType")] - public string DeploymentType { get; set; } - - /// - /// Gets or sets the host name of the on-premises Dynamics CRM server. - /// The property is required for on-prem and not allowed for online. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.hostName")] - public object HostName { get; set; } - - /// - /// Gets or sets the port of on-premises Dynamics CRM server. The - /// property is required for on-prem and not allowed for online. - /// Default is 443. Type: integer (or Expression with resultType - /// integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the URL to the Microsoft Dynamics CRM server. The - /// property is required for on-line and not allowed for on-prem. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.serviceUri")] - public object ServiceUri { get; set; } - - /// - /// Gets or sets the organization name of the Dynamics CRM instance. - /// The property is required for on-prem and required for online when - /// there are more than one Dynamics CRM instances associated with the - /// user. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.organizationName")] - public object OrganizationName { get; set; } - - /// - /// Gets or sets the authentication type to connect to Dynamics CRM - /// server. 'Office365' for online scenario, 'Ifd' for on-premises with - /// Ifd scenario, 'AADServicePrincipal' for Server-To-Server - /// authentication in online scenario. Type: string (or Expression with - /// resultType string). Possible values include: 'Office365', 'Ifd', - /// 'AADServicePrincipal' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets user name to access the Dynamics CRM instance. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password to access the Dynamics CRM instance. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the client ID of the application in Azure Active - /// Directory used for Server-To-Server authentication. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the service principal credential type to use in - /// Server-To-Server authentication. 'ServicePrincipalKey' for - /// key/secret, 'ServicePrincipalCert' for certificate. Type: string - /// (or Expression with resultType string). Possible values include: - /// 'ServicePrincipalKey', 'ServicePrincipalCert' - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalCredentialType")] - public string ServicePrincipalCredentialType { get; set; } - - /// - /// Gets or sets the credential of the service principal object in - /// Azure Active Directory. If servicePrincipalCredentialType is - /// 'ServicePrincipalKey', servicePrincipalCredential can be - /// SecureString or AzureKeyVaultSecretReference. If - /// servicePrincipalCredentialType is 'ServicePrincipalCert', - /// servicePrincipalCredential can only be - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalCredential")] - public SecretBase ServicePrincipalCredential { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (DeploymentType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DeploymentType"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new DynamicsCrmLinkedService(this.DeploymentType, this.AuthenticationType); - linkedService.HostName = this.HostName; - linkedService.Port = this.Port; - linkedService.ServiceUri = this.ServiceUri; - linkedService.OrganizationName = this.OrganizationName; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalCredentialType = this.ServicePrincipalCredentialType; - linkedService.ServicePrincipalCredential = this.ServicePrincipalCredential; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSDynamicsLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSDynamicsLinkedService.cs deleted file mode 100644 index 94d093c52360..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSDynamicsLinkedService.cs +++ /dev/null @@ -1,182 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Dynamics linked service. - /// - [Newtonsoft.Json.JsonObject("Dynamics")] - [Rest.Serialization.JsonTransformation] - public partial class PSDynamicsLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSDynamicsLinkedService class. - /// - public PSDynamicsLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the deployment type of the Dynamics instance. 'Online' - /// for Dynamics Online and 'OnPremisesWithIfd' for Dynamics - /// on-premises with Ifd. Type: string (or Expression with resultType - /// string). Possible values include: 'Online', 'OnPremisesWithIfd' - /// - [JsonProperty(PropertyName = "typeProperties.deploymentType")] - public string DeploymentType { get; set; } - - /// - /// Gets or sets the host name of the on-premises Dynamics server. The - /// property is required for on-prem and not allowed for online. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.hostName")] - public string HostName { get; set; } - - /// - /// Gets or sets the port of on-premises Dynamics server. The property - /// is required for on-prem and not allowed for online. Default is 443. - /// Type: integer (or Expression with resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public string Port { get; set; } - - /// - /// Gets or sets the URL to the Microsoft Dynamics server. The property - /// is required for on-line and not allowed for on-prem. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.serviceUri")] - public string ServiceUri { get; set; } - - /// - /// Gets or sets the organization name of the Dynamics instance. The - /// property is required for on-prem and required for online when there - /// are more than one Dynamics instances associated with the user. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.organizationName")] - public string OrganizationName { get; set; } - - /// - /// Gets or sets the authentication type to connect to Dynamics server. - /// 'Office365' for online scenario, 'Ifd' for on-premises with Ifd - /// scenario, 'AADServicePrincipal' for Server-To-Server authentication - /// in online scenario. Type: string (or Expression with resultType - /// string). Possible values include: 'Office365', 'Ifd', - /// 'AADServicePrincipal' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets user name to access the Dynamics instance. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password to access the Dynamics instance. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the client ID of the application in Azure Active - /// Directory used for Server-To-Server authentication. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the service principal credential type to use in - /// Server-To-Server authentication. 'ServicePrincipalKey' for - /// key/secret, 'ServicePrincipalCert' for certificate. Type: string - /// (or Expression with resultType string). Possible values include: - /// 'ServicePrincipalKey', 'ServicePrincipalCert' - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalCredentialType")] - public string ServicePrincipalCredentialType { get; set; } - - /// - /// Gets or sets the credential of the service principal object in - /// Azure Active Directory. If servicePrincipalCredentialType is - /// 'ServicePrincipalKey', servicePrincipalCredential can be - /// SecureString or AzureKeyVaultSecretReference. If - /// servicePrincipalCredentialType is 'ServicePrincipalCert', - /// servicePrincipalCredential can only be - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalCredential")] - public SecretBase ServicePrincipalCredential { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (DeploymentType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DeploymentType"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new DynamicsLinkedService(this.DeploymentType, this.AuthenticationType); - linkedService.HostName = this.HostName; - linkedService.Port = this.Port; - linkedService.ServiceUri = this.ServiceUri; - linkedService.OrganizationName = this.OrganizationName; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalCredentialType = this.ServicePrincipalCredentialType; - linkedService.ServicePrincipalCredential = this.ServicePrincipalCredential; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSEloquaLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSEloquaLinkedService.cs deleted file mode 100644 index bd0547808ca5..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSEloquaLinkedService.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Eloqua server linked service. - /// - [Newtonsoft.Json.JsonObject("Eloqua")] - [Rest.Serialization.JsonTransformation] - public partial class PSEloquaLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSEloquaLinkedService class. - /// - public PSEloquaLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Eloqua server. (i.e. - /// eloqua.example.com) - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the site name and user name of your Eloqua account in - /// the form: sitename/username. (i.e. Eloqua/Alice) - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - if (Username == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Username"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new EloquaLinkedService(this.Endpoint, this.Username); - linkedService.Password = this.Password; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSFileServerLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSFileServerLinkedService.cs deleted file mode 100644 index 31f66dca19e1..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSFileServerLinkedService.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// File system linked service. - /// - [Newtonsoft.Json.JsonObject("FileServer")] - [Rest.Serialization.JsonTransformation] - public partial class PSFileServerLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSFileServerLinkedService class. - /// - public PSFileServerLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets host name of the server. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets user ID to logon the server. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userId")] - public object UserId { get; set; } - - /// - /// Gets or sets password to logon the server. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new FileServerLinkedService(this.Host); - linkedService.UserId = this.UserId; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSFtpServerLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSFtpServerLinkedService.cs deleted file mode 100644 index 8bcf715b3665..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSFtpServerLinkedService.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// A FTP server Linked Service. - /// - [Newtonsoft.Json.JsonObject("FtpServer")] - [Rest.Serialization.JsonTransformation] - public partial class PSFtpServerLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSFtpServerLinkedService class. - /// - public PSFtpServerLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets host name of the FTP server. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port number that the FTP server uses to listen - /// for client connections. Default value is 21. Type: integer (or - /// Expression with resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the authentication type to be used to connect to the - /// FTP server. Possible values include: 'Basic', 'Anonymous' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets username to logon the FTP server. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password to logon the FTP server. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Gets or sets if true, connect to the FTP server over SSL/TLS - /// channel. Default value is true. Type: boolean (or Expression with - /// resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets if true, validate the FTP server SSL certificate when - /// connect over SSL/TLS channel. Default value is true. Type: boolean - /// (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableServerCertificateValidation")] - public object EnableServerCertificateValidation { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new FtpServerLinkedService(this.Host); - linkedService.Port = this.Port; - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - linkedService.EnableSsl = this.EnableSsl; - linkedService.EnableServerCertificateValidation = this.EnableServerCertificateValidation; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSGoogleAdWordsLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSGoogleAdWordsLinkedService.cs deleted file mode 100644 index 9f018306f436..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSGoogleAdWordsLinkedService.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Google AdWords service linked service. - /// - [Newtonsoft.Json.JsonObject("GoogleAdWords")] - [Rest.Serialization.JsonTransformation] - public partial class PSGoogleAdWordsLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSGoogleAdWordsLinkedService - /// class. - /// - public PSGoogleAdWordsLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Client customer ID of the AdWords account that you - /// want to fetch report data for. - /// - [JsonProperty(PropertyName = "typeProperties.clientCustomerID")] - public object ClientCustomerID { get; set; } - - /// - /// Gets or sets the developer token associated with the manager - /// account that you use to grant access to the AdWords API. - /// - [JsonProperty(PropertyName = "typeProperties.developerToken")] - public SecretBase DeveloperToken { get; set; } - - /// - /// Gets or sets the OAuth 2.0 authentication mechanism used for - /// authentication. ServiceAuthentication can only be used on - /// self-hosted IR. Possible values include: 'ServiceAuthentication', - /// 'UserAuthentication' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the refresh token obtained from Google for authorizing - /// access to AdWords for UserAuthentication. - /// - [JsonProperty(PropertyName = "typeProperties.refreshToken")] - public SecretBase RefreshToken { get; set; } - - /// - /// Gets or sets the client id of the google application used to - /// acquire the refresh token. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret of the google application used to - /// acquire the refresh token. - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets the service account email ID that is used for - /// ServiceAuthentication and can only be used on self-hosted IR. - /// - [JsonProperty(PropertyName = "typeProperties.email")] - public object Email { get; set; } - - /// - /// Gets or sets the full path to the .p12 key file that is used to - /// authenticate the service account email address and can only be used - /// on self-hosted IR. - /// - [JsonProperty(PropertyName = "typeProperties.keyFilePath")] - public object KeyFilePath { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to use a CA certificate from the - /// system trust store or from a specified PEM file. The default value - /// is false. - /// - [JsonProperty(PropertyName = "typeProperties.useSystemTrustStore")] - public object UseSystemTrustStore { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ClientCustomerID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientCustomerID"); - } - if (DeveloperToken == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DeveloperToken"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new GoogleAdWordsLinkedService(this.ClientCustomerID, this.DeveloperToken, this.AuthenticationType); - linkedService.RefreshToken = this.RefreshToken; - linkedService.ClientId = this.ClientId; - linkedService.ClientSecret = this.ClientSecret; - linkedService.Email = this.Email; - linkedService.KeyFilePath = this.KeyFilePath; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.UseSystemTrustStore = this.UseSystemTrustStore; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSGoogleBigQueryLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSGoogleBigQueryLinkedService.cs deleted file mode 100644 index f72c8204f4b9..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSGoogleBigQueryLinkedService.cs +++ /dev/null @@ -1,172 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Google BigQuery service linked service. - /// - [Newtonsoft.Json.JsonObject("GoogleBigQuery")] - [Rest.Serialization.JsonTransformation] - public partial class PSGoogleBigQueryLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSGoogleBigQueryLinkedService - /// class. - /// - public PSGoogleBigQueryLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the default BigQuery project to query against. - /// - [JsonProperty(PropertyName = "typeProperties.project")] - public object Project { get; set; } - - /// - /// Gets or sets a comma-separated list of public BigQuery projects to - /// access. - /// - [JsonProperty(PropertyName = "typeProperties.additionalProjects")] - public object AdditionalProjects { get; set; } - - /// - /// Gets or sets whether to request access to Google Drive. Allowing - /// Google Drive access enables support for federated tables that - /// combine BigQuery data with data from Google Drive. The default - /// value is false. - /// - [JsonProperty(PropertyName = "typeProperties.requestGoogleDriveScope")] - public object RequestGoogleDriveScope { get; set; } - - /// - /// Gets or sets the OAuth 2.0 authentication mechanism used for - /// authentication. ServiceAuthentication can only be used on - /// self-hosted IR. Possible values include: 'ServiceAuthentication', - /// 'UserAuthentication' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the refresh token obtained from Google for authorizing - /// access to BigQuery for UserAuthentication. - /// - [JsonProperty(PropertyName = "typeProperties.refreshToken")] - public SecretBase RefreshToken { get; set; } - - /// - /// Gets or sets the client id of the google application used to - /// acquire the refresh token. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret of the google application used to - /// acquire the refresh token. - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets the service account email ID that is used for - /// ServiceAuthentication and can only be used on self-hosted IR. - /// - [JsonProperty(PropertyName = "typeProperties.email")] - public object Email { get; set; } - - /// - /// Gets or sets the full path to the .p12 key file that is used to - /// authenticate the service account email address and can only be used - /// on self-hosted IR. - /// - [JsonProperty(PropertyName = "typeProperties.keyFilePath")] - public object KeyFilePath { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to use a CA certificate from the - /// system trust store or from a specified PEM file. The default value - /// is false. - /// - [JsonProperty(PropertyName = "typeProperties.useSystemTrustStore")] - public object UseSystemTrustStore { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Project == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Project"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new GoogleBigQueryLinkedService(this.Project, this.AuthenticationType); - linkedService.AdditionalProjects = this.AdditionalProjects; - linkedService.RequestGoogleDriveScope = this.RequestGoogleDriveScope; - linkedService.RefreshToken = this.RefreshToken; - linkedService.ClientId = this.ClientId; - linkedService.ClientSecret = this.ClientSecret; - linkedService.Email = this.Email; - linkedService.KeyFilePath = this.KeyFilePath; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.UseSystemTrustStore = this.UseSystemTrustStore; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSGoogleCloudStorageLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSGoogleCloudStorageLinkedService.cs deleted file mode 100644 index ad8d3c49e63b..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSGoogleCloudStorageLinkedService.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Google Cloud Storage. - /// - [Newtonsoft.Json.JsonObject("GoogleCloudStorage")] - [Rest.Serialization.JsonTransformation] - public partial class PSGoogleCloudStorageLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSGoogleCloudStorageLinkedService - /// class. - /// - public PSGoogleCloudStorageLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the access key identifier of the Google Cloud Storage - /// Identity and Access Management (IAM) user. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.accessKeyId")] - public object AccessKeyId { get; set; } - - /// - /// Gets or sets the secret access key of the Google Cloud Storage - /// Identity and Access Management (IAM) user. - /// - [JsonProperty(PropertyName = "typeProperties.secretAccessKey")] - public SecretBase SecretAccessKey { get; set; } - - /// - /// Gets or sets this value specifies the endpoint to access with the - /// Google Cloud Storage Connector. This is an optional property; - /// change it only if you want to try a different service endpoint or - /// want to switch between https and http. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.serviceUrl")] - public object ServiceUrl { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new GoogleCloudStorageLinkedService(); - linkedService.AccessKeyId = this.AccessKeyId; - linkedService.SecretAccessKey = this.SecretAccessKey; - linkedService.ServiceUrl = this.ServiceUrl; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSGreenplumLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSGreenplumLinkedService.cs deleted file mode 100644 index 0677611825d2..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSGreenplumLinkedService.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Greenplum Database linked service. - /// - [Newtonsoft.Json.JsonObject("Greenplum")] - [Rest.Serialization.JsonTransformation] - public partial class PSGreenplumLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSGreenplumLinkedService class. - /// - public PSGreenplumLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.pwd")] - public AzureKeyVaultSecretReference Pwd { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new GreenplumLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Pwd = this.Pwd; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSHBaseLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSHBaseLinkedService.cs deleted file mode 100644 index d1c06a82dc3b..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSHBaseLinkedService.cs +++ /dev/null @@ -1,156 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HBase server linked service. - /// - [Newtonsoft.Json.JsonObject("HBase")] - [Rest.Serialization.JsonTransformation] - public partial class PSHBaseLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSHBaseLinkedService class. - /// - public PSHBaseLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the IP address or host name of the HBase server. (i.e. - /// 192.168.222.160) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port that the HBase instance uses to listen - /// for client connections. The default value is 9090. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the partial URL corresponding to the HBase server. - /// (i.e. /gateway/sandbox/hbase/version) - /// - [JsonProperty(PropertyName = "typeProperties.httpPath")] - public object HttpPath { get; set; } - - /// - /// Gets or sets the authentication mechanism to use to connect to the - /// HBase server. Possible values include: 'Anonymous', 'Basic' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the user name used to connect to the HBase instance. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the connections to the server are - /// encrypted using SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to require a CA-issued SSL - /// certificate name to match the host name of the server when - /// connecting over SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowHostNameCNMismatch")] - public object AllowHostNameCNMismatch { get; set; } - - /// - /// Gets or sets specifies whether to allow self-signed certificates - /// from the server. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowSelfSignedServerCert")] - public object AllowSelfSignedServerCert { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new HBaseLinkedService(this.Host, this.AuthenticationType); - linkedService.Port = this.Port; - linkedService.HttpPath = this.HttpPath; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EnableSsl = this.EnableSsl; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.AllowHostNameCNMismatch = this.AllowHostNameCNMismatch; - linkedService.AllowSelfSignedServerCert = this.AllowSelfSignedServerCert; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSHDInsightLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSHDInsightLinkedService.cs deleted file mode 100644 index cd6d674b72d3..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSHDInsightLinkedService.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HDInsight linked service. - /// - [Newtonsoft.Json.JsonObject("HDInsight")] - [Rest.Serialization.JsonTransformation] - public partial class PSHDInsightLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSHDInsightLinkedService class. - /// - public PSHDInsightLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets hDInsight cluster URI. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clusterUri")] - public object ClusterUri { get; set; } - - /// - /// Gets or sets hDInsight cluster user name. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets hDInsight cluster password. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the Azure Storage linked service reference. - /// - [JsonProperty(PropertyName = "typeProperties.linkedServiceName")] - public LinkedServiceReference LinkedServiceName { get; set; } - - /// - /// Gets or sets a reference to the Azure SQL linked service that - /// points to the HCatalog database. - /// - [JsonProperty(PropertyName = "typeProperties.hcatalogLinkedServiceName")] - public LinkedServiceReference HcatalogLinkedServiceName { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Gets or sets specify if the HDInsight is created with ESP - /// (Enterprise Security Package). Type: Boolean. - /// - [JsonProperty(PropertyName = "typeProperties.isEspEnabled")] - public object IsEspEnabled { get; set; } - - /// - /// Gets or sets specify the FileSystem if the main storage for the - /// HDInsight is ADLS Gen2. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.fileSystem")] - public object FileSystem { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ClusterUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClusterUri"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new HDInsightLinkedService(this.ClusterUri); - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.LinkedServiceName = this.LinkedServiceName; - linkedService.HcatalogLinkedServiceName = this.HcatalogLinkedServiceName; - linkedService.EncryptedCredential = this.EncryptedCredential; - linkedService.IsEspEnabled = this.IsEspEnabled; - linkedService.FileSystem = this.FileSystem; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSHDInsightOnDemandLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSHDInsightOnDemandLinkedService.cs deleted file mode 100644 index 177da434a4f9..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSHDInsightOnDemandLinkedService.cs +++ /dev/null @@ -1,355 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// HDInsight ondemand linked service. - /// - [Newtonsoft.Json.JsonObject("HDInsightOnDemand")] - [Rest.Serialization.JsonTransformation] - public partial class PSHDInsightOnDemandLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSHDInsightOnDemandLinkedService - /// class. - /// - public PSHDInsightOnDemandLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets number of worker/data nodes in the cluster. Suggestion - /// value: 4. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clusterSize")] - public object ClusterSize { get; set; } - - /// - /// Gets or sets the allowed idle time for the on-demand HDInsight - /// cluster. Specifies how long the on-demand HDInsight cluster stays - /// alive after completion of an activity run if there are no other - /// active jobs in the cluster. The minimum value is 5 mins. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.timeToLive")] - public object TimeToLive { get; set; } - - /// - /// Gets or sets version of the HDInsight cluster.  Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.version")] - public object Version { get; set; } - - /// - /// Gets or sets azure Storage linked service to be used by the - /// on-demand cluster for storing and processing data. - /// - [JsonProperty(PropertyName = "typeProperties.linkedServiceName")] - public LinkedServiceReference LinkedServiceName { get; set; } - - /// - /// Gets or sets the customer’s subscription to host the cluster. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.hostSubscriptionId")] - public object HostSubscriptionId { get; set; } - - /// - /// Gets or sets the service principal id for the hostSubscriptionId. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the key for the service principal id. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the Tenant id/name to which the service principal - /// belongs. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the resource group where the cluster belongs. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clusterResourceGroup")] - public object ClusterResourceGroup { get; set; } - - /// - /// Gets or sets the prefix of cluster name, postfix will be distinct - /// with timestamp. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.clusterNamePrefix")] - public object ClusterNamePrefix { get; set; } - - /// - /// Gets or sets the username to access the cluster. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clusterUserName")] - public object ClusterUserName { get; set; } - - /// - /// Gets or sets the password to access the cluster. - /// - [JsonProperty(PropertyName = "typeProperties.clusterPassword")] - public SecretBase ClusterPassword { get; set; } - - /// - /// Gets or sets the username to SSH remotely connect to cluster’s node - /// (for Linux). Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clusterSshUserName")] - public object ClusterSshUserName { get; set; } - - /// - /// Gets or sets the password to SSH remotely connect cluster’s node - /// (for Linux). - /// - [JsonProperty(PropertyName = "typeProperties.clusterSshPassword")] - public SecretBase ClusterSshPassword { get; set; } - - /// - /// Gets or sets specifies additional storage accounts for the - /// HDInsight linked service so that the Data Factory service can - /// register them on your behalf. - /// - [JsonProperty(PropertyName = "typeProperties.additionalLinkedServiceNames")] - public IList AdditionalLinkedServiceNames { get; set; } - - /// - /// Gets or sets the name of Azure SQL linked service that point to the - /// HCatalog database. The on-demand HDInsight cluster is created by - /// using the Azure SQL database as the metastore. - /// - [JsonProperty(PropertyName = "typeProperties.hcatalogLinkedServiceName")] - public LinkedServiceReference HcatalogLinkedServiceName { get; set; } - - /// - /// Gets or sets the cluster type. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clusterType")] - public object ClusterType { get; set; } - - /// - /// Gets or sets the version of spark if the cluster type is 'spark'. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.sparkVersion")] - public object SparkVersion { get; set; } - - /// - /// Gets or sets specifies the core configuration parameters (as in - /// core-site.xml) for the HDInsight cluster to be created. - /// - [JsonProperty(PropertyName = "typeProperties.coreConfiguration")] - public object CoreConfiguration { get; set; } - - /// - /// Gets or sets specifies the HBase configuration parameters - /// (hbase-site.xml) for the HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.hBaseConfiguration")] - public object HBaseConfiguration { get; set; } - - /// - /// Gets or sets specifies the HDFS configuration parameters - /// (hdfs-site.xml) for the HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.hdfsConfiguration")] - public object HdfsConfiguration { get; set; } - - /// - /// Gets or sets specifies the hive configuration parameters - /// (hive-site.xml) for the HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.hiveConfiguration")] - public object HiveConfiguration { get; set; } - - /// - /// Gets or sets specifies the MapReduce configuration parameters - /// (mapred-site.xml) for the HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.mapReduceConfiguration")] - public object MapReduceConfiguration { get; set; } - - /// - /// Gets or sets specifies the Oozie configuration parameters - /// (oozie-site.xml) for the HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.oozieConfiguration")] - public object OozieConfiguration { get; set; } - - /// - /// Gets or sets specifies the Storm configuration parameters - /// (storm-site.xml) for the HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.stormConfiguration")] - public object StormConfiguration { get; set; } - - /// - /// Gets or sets specifies the Yarn configuration parameters - /// (yarn-site.xml) for the HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.yarnConfiguration")] - public object YarnConfiguration { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Gets or sets specifies the size of the head node for the HDInsight - /// cluster. - /// - [JsonProperty(PropertyName = "typeProperties.headNodeSize")] - public object HeadNodeSize { get; set; } - - /// - /// Gets or sets specifies the size of the data node for the HDInsight - /// cluster. - /// - [JsonProperty(PropertyName = "typeProperties.dataNodeSize")] - public object DataNodeSize { get; set; } - - /// - /// Gets or sets specifies the size of the Zoo Keeper node for the - /// HDInsight cluster. - /// - [JsonProperty(PropertyName = "typeProperties.zookeeperNodeSize")] - public object ZookeeperNodeSize { get; set; } - - /// - /// Gets or sets custom script actions to run on HDI ondemand cluster - /// once it's up. Please refer to - /// https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&amp;bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - /// - [JsonProperty(PropertyName = "typeProperties.scriptActions")] - public IList ScriptActions { get; set; } - - /// - /// Gets or sets the ARM resource ID for the vNet to which the cluster - /// should be joined after creation. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.virtualNetworkId")] - public object VirtualNetworkId { get; set; } - - /// - /// Gets or sets the ARM resource ID for the subnet in the vNet. If - /// virtualNetworkId was specified, then this property is required. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.subnetName")] - public object SubnetName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ClusterSize == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClusterSize"); - } - if (TimeToLive == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TimeToLive"); - } - if (Version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Version"); - } - if (LinkedServiceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "LinkedServiceName"); - } - if (HostSubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "HostSubscriptionId"); - } - if (Tenant == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Tenant"); - } - if (ClusterResourceGroup == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClusterResourceGroup"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new HDInsightOnDemandLinkedService(this.ClusterSize, this.TimeToLive, this.Version, this.LinkedServiceName, this.HostSubscriptionId, this.Tenant, this.ClusterResourceGroup); - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.ClusterNamePrefix = this.ClusterNamePrefix; - linkedService.ClusterUserName = this.ClusterUserName; - linkedService.ClusterPassword = this.ClusterPassword; - linkedService.ClusterSshUserName = this.ClusterSshUserName; - linkedService.ClusterSshPassword = this.ClusterSshPassword; - this.AdditionalLinkedServiceNames?.ForEach(item => linkedService.AdditionalLinkedServiceNames.Add(item)); - linkedService.HcatalogLinkedServiceName = this.HcatalogLinkedServiceName; - linkedService.ClusterType = this.ClusterType; - linkedService.SparkVersion = this.SparkVersion; - linkedService.CoreConfiguration = this.CoreConfiguration; - linkedService.HBaseConfiguration = this.HBaseConfiguration; - linkedService.HdfsConfiguration = this.HdfsConfiguration; - linkedService.HiveConfiguration = this.HiveConfiguration; - linkedService.MapReduceConfiguration = this.MapReduceConfiguration; - linkedService.OozieConfiguration = this.OozieConfiguration; - linkedService.StormConfiguration = this.StormConfiguration; - linkedService.YarnConfiguration = this.YarnConfiguration; - linkedService.EncryptedCredential = this.EncryptedCredential; - linkedService.HeadNodeSize = this.HeadNodeSize; - linkedService.DataNodeSize = this.DataNodeSize; - linkedService.ZookeeperNodeSize = this.ZookeeperNodeSize; - this.ScriptActions?.ForEach(item => linkedService.ScriptActions.Add(item)); - linkedService.VirtualNetworkId = this.VirtualNetworkId; - linkedService.SubnetName = this.SubnetName; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSHdfsLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSHdfsLinkedService.cs deleted file mode 100644 index b034afeb0002..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSHdfsLinkedService.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Hadoop Distributed File System (HDFS) linked service. - /// - [Newtonsoft.Json.JsonObject("Hdfs")] - [Rest.Serialization.JsonTransformation] - public partial class PSHdfsLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSHdfsLinkedService class. - /// - public PSHdfsLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of the HDFS service endpoint, e.g. - /// http://myhostname:50070/webhdfs/v1 . Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets type of authentication used to connect to the HDFS. - /// Possible values are: Anonymous and Windows. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public object AuthenticationType { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Gets or sets user name for Windows authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password for Windows authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new HdfsLinkedService(this.Url); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.EncryptedCredential = this.EncryptedCredential; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSHiveLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSHiveLinkedService.cs deleted file mode 100644 index 2ac4fb062152..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSHiveLinkedService.cs +++ /dev/null @@ -1,207 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Hive Server linked service. - /// - [Newtonsoft.Json.JsonObject("Hive")] - [Rest.Serialization.JsonTransformation] - public partial class PSHiveLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSHiveLinkedService class. - /// - public PSHiveLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets IP address or host name of the Hive server, separated - /// by ';' for multiple hosts (only when serviceDiscoveryMode is - /// enable). - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port that the Hive server uses to listen for - /// client connections. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the type of Hive server. Possible values include: - /// 'HiveServer1', 'HiveServer2', 'HiveThriftServer' - /// - [JsonProperty(PropertyName = "typeProperties.serverType")] - public string ServerType { get; set; } - - /// - /// Gets or sets the transport protocol to use in the Thrift layer. - /// Possible values include: 'Binary', 'SASL', 'HTTP ' - /// - [JsonProperty(PropertyName = "typeProperties.thriftTransportProtocol")] - public string ThriftTransportProtocol { get; set; } - - /// - /// Gets or sets the authentication method used to access the Hive - /// server. Possible values include: 'Anonymous', 'Username', - /// 'UsernameAndPassword', 'WindowsAzureHDInsightService' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets true to indicate using the ZooKeeper service, false - /// not. - /// - [JsonProperty(PropertyName = "typeProperties.serviceDiscoveryMode")] - public object ServiceDiscoveryMode { get; set; } - - /// - /// Gets or sets the namespace on ZooKeeper under which Hive Server 2 - /// nodes are added. - /// - [JsonProperty(PropertyName = "typeProperties.zooKeeperNameSpace")] - public object ZooKeeperNameSpace { get; set; } - - /// - /// Gets or sets specifies whether the driver uses native HiveQL - /// queries,or converts them into an equivalent form in HiveQL. - /// - [JsonProperty(PropertyName = "typeProperties.useNativeQuery")] - public object UseNativeQuery { get; set; } - - /// - /// Gets or sets the user name that you use to access Hive Server. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name that you - /// provided in the Username field - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the partial URL corresponding to the Hive server. - /// - [JsonProperty(PropertyName = "typeProperties.httpPath")] - public object HttpPath { get; set; } - - /// - /// Gets or sets specifies whether the connections to the server are - /// encrypted using SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to use a CA certificate from the - /// system trust store or from a specified PEM file. The default value - /// is false. - /// - [JsonProperty(PropertyName = "typeProperties.useSystemTrustStore")] - public object UseSystemTrustStore { get; set; } - - /// - /// Gets or sets specifies whether to require a CA-issued SSL - /// certificate name to match the host name of the server when - /// connecting over SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowHostNameCNMismatch")] - public object AllowHostNameCNMismatch { get; set; } - - /// - /// Gets or sets specifies whether to allow self-signed certificates - /// from the server. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowSelfSignedServerCert")] - public object AllowSelfSignedServerCert { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new HiveLinkedService(this.Host, this.AuthenticationType); - linkedService.Port = this.Port; - linkedService.ServerType = this.ServerType; - linkedService.ThriftTransportProtocol = this.ThriftTransportProtocol; - linkedService.ServiceDiscoveryMode = this.ServiceDiscoveryMode; - linkedService.ZooKeeperNameSpace = this.ZooKeeperNameSpace; - linkedService.UseNativeQuery = this.UseNativeQuery; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.HttpPath = this.HttpPath; - linkedService.EnableSsl = this.EnableSsl; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.UseSystemTrustStore = this.UseSystemTrustStore; - linkedService.AllowHostNameCNMismatch = this.AllowHostNameCNMismatch; - linkedService.AllowSelfSignedServerCert = this.AllowSelfSignedServerCert; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSHttpLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSHttpLinkedService.cs deleted file mode 100644 index 6227384c6421..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSHttpLinkedService.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for an HTTP source. - /// - [Newtonsoft.Json.JsonObject("HttpServer")] - [Rest.Serialization.JsonTransformation] - public partial class PSHttpLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSHttpLinkedService class. - /// - public PSHttpLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the base URL of the HTTP endpoint, e.g. - /// http://www.microsoft.com. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets the authentication type to be used to connect to the - /// HTTP server. Possible values include: 'Basic', 'Anonymous', - /// 'Digest', 'Windows', 'ClientCertificate' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets user name for Basic, Digest, or Windows - /// authentication. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password for Basic, Digest, Windows, or - /// ClientCertificate with EmbeddedCertData authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets base64 encoded certificate data for ClientCertificate - /// authentication. For on-premises copy with ClientCertificate - /// authentication, either CertThumbprint or EmbeddedCertData/Password - /// should be specified. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.embeddedCertData")] - public object EmbeddedCertData { get; set; } - - /// - /// Gets or sets thumbprint of certificate for ClientCertificate - /// authentication. Only valid for on-premises copy. For on-premises - /// copy with ClientCertificate authentication, either CertThumbprint - /// or EmbeddedCertData/Password should be specified. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.certThumbprint")] - public object CertThumbprint { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Gets or sets if true, validate the HTTPS server SSL certificate. - /// Default value is true. Type: boolean (or Expression with resultType - /// boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableServerCertificateValidation")] - public object EnableServerCertificateValidation { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new HttpLinkedService(this.Url); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EmbeddedCertData = this.EmbeddedCertData; - linkedService.CertThumbprint = this.CertThumbprint; - linkedService.EncryptedCredential = this.EncryptedCredential; - linkedService.EnableServerCertificateValidation = this.EnableServerCertificateValidation; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSHubspotLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSHubspotLinkedService.cs deleted file mode 100644 index bcd450c119a7..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSHubspotLinkedService.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Hubspot Service linked service. - /// - [Newtonsoft.Json.JsonObject("Hubspot")] - [Rest.Serialization.JsonTransformation] - public partial class PSHubspotLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSHubspotLinkedService class. - /// - public PSHubspotLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the client ID associated with your Hubspot - /// application. - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret associated with your Hubspot - /// application. - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets the access token obtained when initially - /// authenticating your OAuth integration. - /// - [JsonProperty(PropertyName = "typeProperties.accessToken")] - public SecretBase AccessToken { get; set; } - - /// - /// Gets or sets the refresh token obtained when initially - /// authenticating your OAuth integration. - /// - [JsonProperty(PropertyName = "typeProperties.refreshToken")] - public SecretBase RefreshToken { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new HubspotLinkedService(this.ClientId); - linkedService.ClientSecret = this.ClientSecret; - linkedService.AccessToken = this.AccessToken; - linkedService.RefreshToken = this.RefreshToken; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSImpalaLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSImpalaLinkedService.cs deleted file mode 100644 index 07d69f6e08cb..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSImpalaLinkedService.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Impala server linked service. - /// - [Newtonsoft.Json.JsonObject("Impala")] - [Rest.Serialization.JsonTransformation] - public partial class PSImpalaLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSImpalaLinkedService class. - /// - public PSImpalaLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the IP address or host name of the Impala server. - /// (i.e. 192.168.222.160) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port that the Impala server uses to listen for - /// client connections. The default value is 21050. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the authentication type to use. Possible values - /// include: 'Anonymous', 'SASLUsername', 'UsernameAndPassword' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the user name used to access the Impala server. The - /// default value is anonymous when using SASLUsername. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name when using - /// UsernameAndPassword. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the connections to the server are - /// encrypted using SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to use a CA certificate from the - /// system trust store or from a specified PEM file. The default value - /// is false. - /// - [JsonProperty(PropertyName = "typeProperties.useSystemTrustStore")] - public object UseSystemTrustStore { get; set; } - - /// - /// Gets or sets specifies whether to require a CA-issued SSL - /// certificate name to match the host name of the server when - /// connecting over SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowHostNameCNMismatch")] - public object AllowHostNameCNMismatch { get; set; } - - /// - /// Gets or sets specifies whether to allow self-signed certificates - /// from the server. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowSelfSignedServerCert")] - public object AllowSelfSignedServerCert { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new ImpalaLinkedService(this.Host, this.AuthenticationType); - linkedService.Port = this.Port; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EnableSsl = this.EnableSsl; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.UseSystemTrustStore = this.UseSystemTrustStore; - linkedService.AllowHostNameCNMismatch = this.AllowHostNameCNMismatch; - linkedService.AllowSelfSignedServerCert = this.AllowSelfSignedServerCert; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSInformixLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSInformixLinkedService.cs deleted file mode 100644 index e59d362322c8..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSInformixLinkedService.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Informix linked service. - /// - [Newtonsoft.Json.JsonObject("Informix")] - [Rest.Serialization.JsonTransformation] - public partial class PSInformixLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSInformixLinkedService class. - /// - public PSInformixLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the non-access credential portion of the connection - /// string as well as an optional encrypted credential. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets type of authentication used to connect to the Informix - /// as ODBC data store. Possible values are: Anonymous and Basic. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public object AuthenticationType { get; set; } - - /// - /// Gets or sets the access credential portion of the connection string - /// specified in driver-specific property-value format. - /// - [JsonProperty(PropertyName = "typeProperties.credential")] - public SecretBase Credential { get; set; } - - /// - /// Gets or sets user name for Basic authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password for Basic authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new InformixLinkedService(this.ConnectionString); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Credential = this.Credential; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSJiraLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSJiraLinkedService.cs deleted file mode 100644 index ed5237832755..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSJiraLinkedService.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Jira Service linked service. - /// - [Newtonsoft.Json.JsonObject("Jira")] - [Rest.Serialization.JsonTransformation] - public partial class PSJiraLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSJiraLinkedService class. - /// - public PSJiraLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the IP address or host name of the Jira service. (e.g. - /// jira.example.com) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port that the Jira server uses to listen for - /// client connections. The default value is 443 if connecting through - /// HTTPS, or 8080 if connecting through HTTP. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the user name that you use to access Jira Service. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name that you - /// provided in the username field. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (Username == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Username"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new JiraLinkedService(this.Host, this.Username); - linkedService.Port = this.Port; - linkedService.Password = this.Password; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSMagentoLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSMagentoLinkedService.cs deleted file mode 100644 index ba7e86d18cd3..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSMagentoLinkedService.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Magento server linked service. - /// - [Newtonsoft.Json.JsonObject("Magento")] - [Rest.Serialization.JsonTransformation] - public partial class PSMagentoLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSMagentoLinkedService class. - /// - public PSMagentoLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of the Magento instance. (i.e. - /// 192.168.222.110/magento3) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the access token from Magento. - /// - [JsonProperty(PropertyName = "typeProperties.accessToken")] - public SecretBase AccessToken { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new MagentoLinkedService(this.Host); - linkedService.AccessToken = this.AccessToken; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSMariaDBLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSMariaDBLinkedService.cs deleted file mode 100644 index d5e5c779d90c..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSMariaDBLinkedService.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// MariaDB server linked service. - /// - [Newtonsoft.Json.JsonObject("MariaDB")] - [Rest.Serialization.JsonTransformation] - public partial class PSMariaDBLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSMariaDBLinkedService class. - /// - public PSMariaDBLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.pwd")] - public AzureKeyVaultSecretReference Pwd { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new MariaDBLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Pwd = this.Pwd; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSMarketoLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSMarketoLinkedService.cs deleted file mode 100644 index d2e091de1320..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSMarketoLinkedService.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Marketo server linked service. - /// - [Newtonsoft.Json.JsonObject("Marketo")] - [Rest.Serialization.JsonTransformation] - public partial class PSMarketoLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSMarketoLinkedService class. - /// - public PSMarketoLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Marketo server. (i.e. - /// 123-ABC-321.mktorest.com) - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the client Id of your Marketo service. - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret of your Marketo service. - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new MarketoLinkedService(this.Endpoint, this.ClientId); - linkedService.ClientSecret = this.ClientSecret; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSMicrosoftAccessLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSMicrosoftAccessLinkedService.cs deleted file mode 100644 index 1f2be317bb68..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSMicrosoftAccessLinkedService.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Microsoft Access linked service. - /// - [Newtonsoft.Json.JsonObject("MicrosoftAccess")] - [Rest.Serialization.JsonTransformation] - public partial class PSMicrosoftAccessLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSMicrosoftAccessLinkedService - /// class. - /// - public PSMicrosoftAccessLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the non-access credential portion of the connection - /// string as well as an optional encrypted credential. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets type of authentication used to connect to the - /// Microsoft Access as ODBC data store. Possible values are: Anonymous - /// and Basic. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public object AuthenticationType { get; set; } - - /// - /// Gets or sets the access credential portion of the connection string - /// specified in driver-specific property-value format. - /// - [JsonProperty(PropertyName = "typeProperties.credential")] - public SecretBase Credential { get; set; } - - /// - /// Gets or sets user name for Basic authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password for Basic authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new MicrosoftAccessLinkedService(this.ConnectionString); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Credential = this.Credential; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSMongoDbLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSMongoDbLinkedService.cs deleted file mode 100644 index de65a6c19c43..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSMongoDbLinkedService.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for MongoDb data source. - /// - [Newtonsoft.Json.JsonObject("MongoDb")] - [Rest.Serialization.JsonTransformation] - public partial class PSMongoDbLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSMongoDbLinkedService class. - /// - public PSMongoDbLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the IP address or server name of the MongoDB server. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets the authentication type to be used to connect to the - /// MongoDB database. Possible values include: 'Basic', 'Anonymous' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the name of the MongoDB database that you want to - /// access. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.databaseName")] - public object DatabaseName { get; set; } - - /// - /// Gets or sets username for authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password for authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets database to verify the username and password. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.authSource")] - public object AuthSource { get; set; } - - /// - /// Gets or sets the TCP port number that the MongoDB server uses to - /// listen for client connections. The default value is 27017. Type: - /// integer (or Expression with resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets specifies whether the connections to the server are - /// encrypted using SSL. The default value is false. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets specifies whether to allow self-signed certificates - /// from the server. The default value is false. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.allowSelfSignedServerCert")] - public object AllowSelfSignedServerCert { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - if (DatabaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DatabaseName"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new MongoDbLinkedService(this.Server, this.DatabaseName); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.AuthSource = this.AuthSource; - linkedService.Port = this.Port; - linkedService.EnableSsl = this.EnableSsl; - linkedService.AllowSelfSignedServerCert = this.AllowSelfSignedServerCert; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSMongoDbV2LinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSMongoDbV2LinkedService.cs deleted file mode 100644 index 18cde8074de2..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSMongoDbV2LinkedService.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for MongoDB data source. - /// - [Newtonsoft.Json.JsonObject("MongoDbV2")] - [Rest.Serialization.JsonTransformation] - public partial class PSMongoDbV2LinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSMongoDbV2LinkedService class. - /// - public PSMongoDbV2LinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the MongoDB connection string. Type: string, - /// SecureString or AzureKeyVaultSecretReference. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the name of the MongoDB database that you want to - /// access. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - if (Database == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Database"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new MongoDbV2LinkedService(this.ConnectionString, this.Database); - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSMySqlLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSMySqlLinkedService.cs deleted file mode 100644 index a911f2dfc2f1..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSMySqlLinkedService.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for MySQL data source. - /// - [Newtonsoft.Json.JsonObject("MySql")] - [Rest.Serialization.JsonTransformation] - public partial class PSMySqlLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSMySqlLinkedService class. - /// - public PSMySqlLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new MySqlLinkedService(this.ConnectionString); - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSNetezzaLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSNetezzaLinkedService.cs deleted file mode 100644 index 4ebfc7a4f74d..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSNetezzaLinkedService.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Netezza linked service. - /// - [Newtonsoft.Json.JsonObject("Netezza")] - [Rest.Serialization.JsonTransformation] - public partial class PSNetezzaLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSNetezzaLinkedService class. - /// - public PSNetezzaLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.pwd")] - public AzureKeyVaultSecretReference Pwd { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new NetezzaLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Pwd = this.Pwd; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSODataLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSODataLinkedService.cs deleted file mode 100644 index b47383154081..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSODataLinkedService.cs +++ /dev/null @@ -1,168 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Open Data Protocol (OData) linked service. - /// - [Newtonsoft.Json.JsonObject("OData")] - [Rest.Serialization.JsonTransformation] - public partial class PSODataLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSODataLinkedService class. - /// - public PSODataLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of the OData service endpoint. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets type of authentication used to connect to the OData - /// service. Possible values include: 'Basic', 'Anonymous', 'Windows', - /// 'AadServicePrincipal', 'ManagedServiceIdentity' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets user name of the OData service. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password of the OData service. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specify the tenant information (domain name or tenant - /// ID) under which your application resides. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets specify the application id of your application - /// registered in Azure Active Directory. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets specify the resource you are requesting authorization - /// to use Directory. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.aadResourceId")] - public object AadResourceId { get; set; } - - /// - /// Gets or sets specify the credential type (key or cert) is used for - /// service principal. Possible values include: 'ServicePrincipalKey', - /// 'ServicePrincipalCert' - /// - [JsonProperty(PropertyName = "typeProperties.aadServicePrincipalCredentialType")] - public string AadServicePrincipalCredentialType { get; set; } - - /// - /// Gets or sets specify the secret of your application registered in - /// Azure Active Directory. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets specify the base64 encoded certificate of your - /// application registered in Azure Active Directory. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalEmbeddedCert")] - public SecretBase ServicePrincipalEmbeddedCert { get; set; } - - /// - /// Gets or sets specify the password of your certificate if your - /// certificate has a password and you are using AadServicePrincipal - /// authentication. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalEmbeddedCertPassword")] - public SecretBase ServicePrincipalEmbeddedCertPassword { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new ODataLinkedService(this.Url); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.Tenant = this.Tenant; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.AadResourceId = this.AadResourceId; - linkedService.AadServicePrincipalCredentialType = this.AadServicePrincipalCredentialType; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.ServicePrincipalEmbeddedCert = this.ServicePrincipalEmbeddedCert; - linkedService.ServicePrincipalEmbeddedCertPassword = this.ServicePrincipalEmbeddedCertPassword; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSOdbcLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSOdbcLinkedService.cs deleted file mode 100644 index fbd41423ad9d..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSOdbcLinkedService.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Open Database Connectivity (ODBC) linked service. - /// - [Newtonsoft.Json.JsonObject("Odbc")] - [Rest.Serialization.JsonTransformation] - public partial class PSOdbcLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSOdbcLinkedService class. - /// - public PSOdbcLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the non-access credential portion of the connection - /// string as well as an optional encrypted credential. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets type of authentication used to connect to the ODBC - /// data store. Possible values are: Anonymous and Basic. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public object AuthenticationType { get; set; } - - /// - /// Gets or sets the access credential portion of the connection string - /// specified in driver-specific property-value format. - /// - [JsonProperty(PropertyName = "typeProperties.credential")] - public SecretBase Credential { get; set; } - - /// - /// Gets or sets user name for Basic authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password for Basic authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new OdbcLinkedService(this.ConnectionString); - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Credential = this.Credential; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSOffice365LinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSOffice365LinkedService.cs deleted file mode 100644 index 0cc73462abef..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSOffice365LinkedService.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Office365 linked service. - /// - [Newtonsoft.Json.JsonObject("Office365")] - [Rest.Serialization.JsonTransformation] - public partial class PSOffice365LinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSOffice365LinkedService class. - /// - public PSOffice365LinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets azure tenant ID to which the Office 365 account - /// belongs. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.office365TenantId")] - public object Office365TenantId { get; set; } - - /// - /// Gets or sets specify the tenant information under which your Azure - /// AD web application resides. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalTenantId")] - public object ServicePrincipalTenantId { get; set; } - - /// - /// Gets or sets specify the application's client ID. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets specify the application's key. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Office365TenantId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Office365TenantId"); - } - if (ServicePrincipalTenantId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalTenantId"); - } - if (ServicePrincipalId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalId"); - } - if (ServicePrincipalKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePrincipalKey"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new Office365LinkedService(this.Office365TenantId, this.ServicePrincipalTenantId, this.ServicePrincipalId, this.ServicePrincipalKey); - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSOracleLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSOracleLinkedService.cs deleted file mode 100644 index 8e1faeee27d1..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSOracleLinkedService.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Oracle database. - /// - [Newtonsoft.Json.JsonObject("Oracle")] - [Rest.Serialization.JsonTransformation] - public partial class PSOracleLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSOracleLinkedService class. - /// - public PSOracleLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new OracleLinkedService(this.ConnectionString); - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSOracleServiceCloudLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSOracleServiceCloudLinkedService.cs deleted file mode 100644 index 19f51a3d06f3..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSOracleServiceCloudLinkedService.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Oracle Service Cloud linked service. - /// - [Newtonsoft.Json.JsonObject("OracleServiceCloud")] - [Rest.Serialization.JsonTransformation] - public partial class PSOracleServiceCloudLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSOracleServiceCloudLinkedService - /// class. - /// - public PSOracleServiceCloudLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of the Oracle Service Cloud instance. - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the user name that you use to access Oracle Service - /// Cloud server. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name that you - /// provided in the username key. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. Type: boolean - /// (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (Username == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Username"); - } - if (Password == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Password"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new OracleServiceCloudLinkedService(this.Host, this.Username, this.Password); - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSPaypalLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSPaypalLinkedService.cs deleted file mode 100644 index 57b9c5ddbd97..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSPaypalLinkedService.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Paypal Service linked service. - /// - [Newtonsoft.Json.JsonObject("Paypal")] - [Rest.Serialization.JsonTransformation] - public partial class PSPaypalLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSPaypalLinkedService class. - /// - public PSPaypalLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of the PayPal instance. (i.e. - /// api.sandbox.paypal.com) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the client ID associated with your PayPal application. - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret associated with your PayPal - /// application. - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new PaypalLinkedService(this.Host, this.ClientId); - linkedService.ClientSecret = this.ClientSecret; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSPhoenixLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSPhoenixLinkedService.cs deleted file mode 100644 index 38d8f861e91c..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSPhoenixLinkedService.cs +++ /dev/null @@ -1,167 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Phoenix server linked service. - /// - [Newtonsoft.Json.JsonObject("Phoenix")] - [Rest.Serialization.JsonTransformation] - public partial class PSPhoenixLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSPhoenixLinkedService class. - /// - public PSPhoenixLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the IP address or host name of the Phoenix server. - /// (i.e. 192.168.222.160) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port that the Phoenix server uses to listen - /// for client connections. The default value is 8765. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the partial URL corresponding to the Phoenix server. - /// (i.e. /gateway/sandbox/phoenix/version). The default value is - /// hbasephoenix if using WindowsAzureHDInsightService. - /// - [JsonProperty(PropertyName = "typeProperties.httpPath")] - public object HttpPath { get; set; } - - /// - /// Gets or sets the authentication mechanism used to connect to the - /// Phoenix server. Possible values include: 'Anonymous', - /// 'UsernameAndPassword', 'WindowsAzureHDInsightService' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the user name used to connect to the Phoenix server. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the connections to the server are - /// encrypted using SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to use a CA certificate from the - /// system trust store or from a specified PEM file. The default value - /// is false. - /// - [JsonProperty(PropertyName = "typeProperties.useSystemTrustStore")] - public object UseSystemTrustStore { get; set; } - - /// - /// Gets or sets specifies whether to require a CA-issued SSL - /// certificate name to match the host name of the server when - /// connecting over SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowHostNameCNMismatch")] - public object AllowHostNameCNMismatch { get; set; } - - /// - /// Gets or sets specifies whether to allow self-signed certificates - /// from the server. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowSelfSignedServerCert")] - public object AllowSelfSignedServerCert { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new PhoenixLinkedService(this.Host, this.AuthenticationType); - linkedService.Port = this.Port; - linkedService.HttpPath = this.HttpPath; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EnableSsl = this.EnableSsl; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.UseSystemTrustStore = this.UseSystemTrustStore; - linkedService.AllowHostNameCNMismatch = this.AllowHostNameCNMismatch; - linkedService.AllowSelfSignedServerCert = this.AllowSelfSignedServerCert; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSPostgreSqlLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSPostgreSqlLinkedService.cs deleted file mode 100644 index fd5f55124e0b..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSPostgreSqlLinkedService.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for PostgreSQL data source. - /// - [Newtonsoft.Json.JsonObject("PostgreSql")] - [Rest.Serialization.JsonTransformation] - public partial class PSPostgreSqlLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSPostgreSqlLinkedService class. - /// - public PSPostgreSqlLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public AzureKeyVaultSecretReference Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new PostgreSqlLinkedService(this.ConnectionString); - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSPrestoLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSPrestoLinkedService.cs deleted file mode 100644 index 086f86cb59b4..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSPrestoLinkedService.cs +++ /dev/null @@ -1,187 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Presto server linked service. - /// - [Newtonsoft.Json.JsonObject("Presto")] - [Rest.Serialization.JsonTransformation] - public partial class PSPrestoLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSPrestoLinkedService class. - /// - public PSPrestoLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the IP address or host name of the Presto server. - /// (i.e. 192.168.222.160) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the version of the Presto server. (i.e. 0.148-t) - /// - [JsonProperty(PropertyName = "typeProperties.serverVersion")] - public object ServerVersion { get; set; } - - /// - /// Gets or sets the catalog context for all request against the - /// server. - /// - [JsonProperty(PropertyName = "typeProperties.catalog")] - public object Catalog { get; set; } - - /// - /// Gets or sets the TCP port that the Presto server uses to listen for - /// client connections. The default value is 8080. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the authentication mechanism used to connect to the - /// Presto server. Possible values include: 'Anonymous', 'LDAP' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the user name used to connect to the Presto server. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets specifies whether the connections to the server are - /// encrypted using SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to use a CA certificate from the - /// system trust store or from a specified PEM file. The default value - /// is false. - /// - [JsonProperty(PropertyName = "typeProperties.useSystemTrustStore")] - public object UseSystemTrustStore { get; set; } - - /// - /// Gets or sets specifies whether to require a CA-issued SSL - /// certificate name to match the host name of the server when - /// connecting over SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowHostNameCNMismatch")] - public object AllowHostNameCNMismatch { get; set; } - - /// - /// Gets or sets specifies whether to allow self-signed certificates - /// from the server. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowSelfSignedServerCert")] - public object AllowSelfSignedServerCert { get; set; } - - /// - /// Gets or sets the local time zone used by the connection. Valid - /// values for this option are specified in the IANA Time Zone - /// Database. The default value is the system time zone. - /// - [JsonProperty(PropertyName = "typeProperties.timeZoneID")] - public object TimeZoneID { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (ServerVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerVersion"); - } - if (Catalog == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Catalog"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new PrestoLinkedService(this.Host, this.ServerVersion, this.Catalog, this.AuthenticationType); - linkedService.Port = this.Port; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EnableSsl = this.EnableSsl; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.UseSystemTrustStore = this.UseSystemTrustStore; - linkedService.AllowHostNameCNMismatch = this.AllowHostNameCNMismatch; - linkedService.AllowSelfSignedServerCert = this.AllowSelfSignedServerCert; - linkedService.TimeZoneID = this.TimeZoneID; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSQuickBooksLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSQuickBooksLinkedService.cs deleted file mode 100644 index 2cfe86091ca2..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSQuickBooksLinkedService.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// QuickBooks server linked service. - /// - [Newtonsoft.Json.JsonObject("QuickBooks")] - [Rest.Serialization.JsonTransformation] - public partial class PSQuickBooksLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSQuickBooksLinkedService class. - /// - public PSQuickBooksLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the QuickBooks server. (i.e. - /// quickbooks.api.intuit.com) - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the company ID of the QuickBooks company to authorize. - /// - [JsonProperty(PropertyName = "typeProperties.companyId")] - public object CompanyId { get; set; } - - /// - /// Gets or sets the consumer key for OAuth 1.0 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.consumerKey")] - public object ConsumerKey { get; set; } - - /// - /// Gets or sets the consumer secret for OAuth 1.0 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.consumerSecret")] - public SecretBase ConsumerSecret { get; set; } - - /// - /// Gets or sets the access token for OAuth 1.0 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.accessToken")] - public SecretBase AccessToken { get; set; } - - /// - /// Gets or sets the access token secret for OAuth 1.0 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.accessTokenSecret")] - public SecretBase AccessTokenSecret { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - if (CompanyId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CompanyId"); - } - if (ConsumerKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConsumerKey"); - } - if (ConsumerSecret == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConsumerSecret"); - } - if (AccessToken == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccessToken"); - } - if (AccessTokenSecret == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccessTokenSecret"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new QuickBooksLinkedService(this.Endpoint, this.CompanyId, this.ConsumerKey, this.ConsumerSecret, this.AccessToken, this.AccessTokenSecret); - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSResponsysLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSResponsysLinkedService.cs deleted file mode 100644 index 8193cf1358ea..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSResponsysLinkedService.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Responsys linked service. - /// - [Newtonsoft.Json.JsonObject("Responsys")] - [Rest.Serialization.JsonTransformation] - public partial class PSResponsysLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSResponsysLinkedService class. - /// - public PSResponsysLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Responsys server. - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the client ID associated with the Responsys - /// application. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret associated with the Responsys - /// application. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. Type: boolean - /// (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new ResponsysLinkedService(this.Endpoint, this.ClientId); - linkedService.ClientSecret = this.ClientSecret; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSRestServiceLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSRestServiceLinkedService.cs deleted file mode 100644 index d7c06580c370..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSRestServiceLinkedService.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Rest Service linked service. - /// - [Newtonsoft.Json.JsonObject("RestService")] - [Rest.Serialization.JsonTransformation] - public partial class PSRestServiceLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSRestServiceLinkedService class. - /// - public PSRestServiceLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the base URL of the REST service. - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets whether to validate server side SSL certificate when - /// connecting to the endpoint.The default value is true. Type: boolean - /// (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.enableServerCertificateValidation")] - public object EnableServerCertificateValidation { get; set; } - - /// - /// Gets or sets type of authentication used to connect to the REST - /// service. Possible values include: 'Anonymous', 'Basic', - /// 'AadServicePrincipal', 'ManagedServiceIdentity' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the user name used in Basic authentication type. - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets the password used in Basic authentication type. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the application's client ID used in - /// AadServicePrincipal authentication type. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalId")] - public object ServicePrincipalId { get; set; } - - /// - /// Gets or sets the application's key used in AadServicePrincipal - /// authentication type. - /// - [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecretBase ServicePrincipalKey { get; set; } - - /// - /// Gets or sets the tenant information (domain name or tenant ID) used - /// in AadServicePrincipal authentication type under which your - /// application resides. - /// - [JsonProperty(PropertyName = "typeProperties.tenant")] - public object Tenant { get; set; } - - /// - /// Gets or sets the resource you are requesting authorization to use. - /// - [JsonProperty(PropertyName = "typeProperties.aadResourceId")] - public object AadResourceId { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new RestServiceLinkedService(this.Url, this.AuthenticationType); - linkedService.EnableServerCertificateValidation = this.EnableServerCertificateValidation; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.ServicePrincipalId = this.ServicePrincipalId; - linkedService.ServicePrincipalKey = this.ServicePrincipalKey; - linkedService.Tenant = this.Tenant; - linkedService.AadResourceId = this.AadResourceId; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSalesforceLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSalesforceLinkedService.cs deleted file mode 100644 index 6fcc4542f2a5..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSalesforceLinkedService.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Salesforce. - /// - [Newtonsoft.Json.JsonObject("Salesforce")] - [Rest.Serialization.JsonTransformation] - public partial class PSSalesforceLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSalesforceLinkedService class. - /// - public PSSalesforceLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of Salesforce instance. Default is - /// 'https://login.salesforce.com'. To copy data from sandbox, specify - /// 'https://test.salesforce.com'. To copy data from custom domain, - /// specify, for example, 'https://[domain].my.salesforce.com'. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.environmentUrl")] - public object EnvironmentUrl { get; set; } - - /// - /// Gets or sets the username for Basic authentication of the - /// Salesforce instance. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password for Basic authentication of the - /// Salesforce instance. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the security token is required to remotely access - /// Salesforce instance. - /// - [JsonProperty(PropertyName = "typeProperties.securityToken")] - public SecretBase SecurityToken { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SalesforceLinkedService(); - linkedService.EnvironmentUrl = this.EnvironmentUrl; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.SecurityToken = this.SecurityToken; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSalesforceMarketingCloudLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSalesforceMarketingCloudLinkedService.cs deleted file mode 100644 index 85267a7177f5..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSalesforceMarketingCloudLinkedService.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Salesforce Marketing Cloud linked service. - /// - [Newtonsoft.Json.JsonObject("SalesforceMarketingCloud")] - [Rest.Serialization.JsonTransformation] - public partial class PSSalesforceMarketingCloudLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the - /// PSSalesforceMarketingCloudLinkedService class. - /// - public PSSalesforceMarketingCloudLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the client ID associated with the Salesforce Marketing - /// Cloud application. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret associated with the Salesforce - /// Marketing Cloud application. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. Type: boolean (or - /// Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. Type: boolean - /// (or Expression with resultType boolean). - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SalesforceMarketingCloudLinkedService(this.ClientId); - linkedService.ClientSecret = this.ClientSecret; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSalesforceServiceCloudLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSalesforceServiceCloudLinkedService.cs deleted file mode 100644 index 82936466642c..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSalesforceServiceCloudLinkedService.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Salesforce Service Cloud. - /// - [Newtonsoft.Json.JsonObject("SalesforceServiceCloud")] - [Rest.Serialization.JsonTransformation] - public partial class PSSalesforceServiceCloudLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the - /// PSSalesforceServiceCloudLinkedService class. - /// - public PSSalesforceServiceCloudLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of Salesforce Service Cloud instance. Default - /// is 'https://login.salesforce.com'. To copy data from sandbox, - /// specify 'https://test.salesforce.com'. To copy data from custom - /// domain, specify, for example, 'https://[domain].my.salesforce.com'. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.environmentUrl")] - public object EnvironmentUrl { get; set; } - - /// - /// Gets or sets the username for Basic authentication of the - /// Salesforce instance. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password for Basic authentication of the - /// Salesforce instance. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the security token is required to remotely access - /// Salesforce instance. - /// - [JsonProperty(PropertyName = "typeProperties.securityToken")] - public SecretBase SecurityToken { get; set; } - - /// - /// Gets or sets extended properties appended to the connection string. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.extendedProperties")] - public object ExtendedProperties { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SalesforceServiceCloudLinkedService(); - linkedService.EnvironmentUrl = this.EnvironmentUrl; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.SecurityToken = this.SecurityToken; - linkedService.ExtendedProperties = this.ExtendedProperties; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSapBWLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSapBWLinkedService.cs deleted file mode 100644 index 9398c862e953..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSapBWLinkedService.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SAP Business Warehouse Linked Service. - /// - [Newtonsoft.Json.JsonObject("SapBW")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapBWLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSapBWLinkedService class. - /// - public PSSapBWLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets host name of the SAP BW instance. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets system number of the BW system. (Usually a two-digit - /// decimal number represented as a string.) Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.systemNumber")] - public object SystemNumber { get; set; } - - /// - /// Gets or sets client ID of the client on the BW system. (Usually a - /// three-digit decimal number represented as a string) Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets username to access the SAP BW server. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password to access the SAP BW server. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - if (SystemNumber == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SystemNumber"); - } - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SapBWLinkedService(this.Server, this.SystemNumber, this.ClientId); - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSapCloudForCustomerLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSapCloudForCustomerLinkedService.cs deleted file mode 100644 index beee25dae0c3..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSapCloudForCustomerLinkedService.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for SAP Cloud for Customer. - /// - [Newtonsoft.Json.JsonObject("SapCloudForCustomer")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapCloudForCustomerLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the - /// PSSapCloudForCustomerLinkedService class. - /// - public PSSapCloudForCustomerLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of SAP Cloud for Customer OData API. For - /// example, - /// '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public object Url { get; set; } - - /// - /// Gets or sets the username for Basic authentication. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password for Basic authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Either encryptedCredential or username/password must be - /// provided. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SapCloudForCustomerLinkedService(this.Url); - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSapEccLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSapEccLinkedService.cs deleted file mode 100644 index a703314a45b4..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSapEccLinkedService.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for SAP ERP Central Component(SAP ECC). - /// - [Newtonsoft.Json.JsonObject("SapEcc")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapEccLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSapEccLinkedService class. - /// - public PSSapEccLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of SAP ECC OData API. For example, - /// '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.url")] - public string Url { get; set; } - - /// - /// Gets or sets the username for Basic authentication. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public string Username { get; set; } - - /// - /// Gets or sets the password for Basic authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Either encryptedCredential or username/password must be - /// provided. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public string EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Url == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Url"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SapEccLinkedService(this.Url); - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSapHanaLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSapHanaLinkedService.cs deleted file mode 100644 index 1012958a71e5..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSapHanaLinkedService.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SAP HANA Linked Service. - /// - [Newtonsoft.Json.JsonObject("SapHana")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapHanaLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSapHanaLinkedService class. - /// - public PSSapHanaLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets SAP HANA ODBC connection string. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets host name of the SAP HANA server. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets the authentication type to be used to connect to the - /// SAP HANA server. Possible values include: 'Basic', 'Windows' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets username to access the SAP HANA server. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password to access the SAP HANA server. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SapHanaLinkedService(this.Server); - linkedService.ConnectionString = this.ConnectionString; - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSapOpenHubLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSapOpenHubLinkedService.cs deleted file mode 100644 index c36feb16391d..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSapOpenHubLinkedService.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SAP Business Warehouse Open Hub Destination Linked Service. - /// - [Newtonsoft.Json.JsonObject("SapOpenHub")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapOpenHubLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSapOpenHubLinkedService class. - /// - public PSSapOpenHubLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets host name of the SAP BW instance where the open hub - /// destination is located. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets system number of the BW system where the open hub - /// destination is located. (Usually a two-digit decimal number - /// represented as a string.) Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.systemNumber")] - public object SystemNumber { get; set; } - - /// - /// Gets or sets client ID of the client on the BW system where the - /// open hub destination is located. (Usually a three-digit decimal - /// number represented as a string) Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets language of the BW system where the open hub - /// destination is located. The default value is EN. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.language")] - public object Language { get; set; } - - /// - /// Gets or sets username to access the SAP BW server where the open - /// hub destination is located. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password to access the SAP BW server where the open - /// hub destination is located. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - if (SystemNumber == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SystemNumber"); - } - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SapOpenHubLinkedService(this.Server, this.SystemNumber, this.ClientId); - linkedService.Language = this.Language; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSapTableLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSapTableLinkedService.cs deleted file mode 100644 index c92ae3a1bc55..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSapTableLinkedService.cs +++ /dev/null @@ -1,196 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SAP Table Linked Service. - /// - [Newtonsoft.Json.JsonObject("SapTable")] - [Rest.Serialization.JsonTransformation] - public partial class PSSapTableLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSapTableLinkedService class. - /// - public PSSapTableLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets host name of the SAP instance where the table is - /// located. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets system number of the SAP system where the table is - /// located. (Usually a two-digit decimal number represented as a - /// string.) Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.systemNumber")] - public object SystemNumber { get; set; } - - /// - /// Gets or sets client ID of the client on the SAP system where the - /// table is located. (Usually a three-digit decimal number represented - /// as a string) Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets language of the SAP system where the table is located. - /// The default value is EN. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.language")] - public object Language { get; set; } - - /// - /// Gets or sets systemID of the SAP system where the table is located. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.systemId")] - public object SystemId { get; set; } - - /// - /// Gets or sets username to access the SAP server where the table is - /// located. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password to access the SAP server where the table is - /// located. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the hostname of the SAP Message Server. Type: string - /// (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.messageServer")] - public object MessageServer { get; set; } - - /// - /// Gets or sets the service name or port number of the Message Server. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.messageServerService")] - public object MessageServerService { get; set; } - - /// - /// Gets or sets SNC activation indicator to access the SAP server - /// where the table is located. Must be either 0 (off) or 1 (on). Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.sncMode")] - public object SncMode { get; set; } - - /// - /// Gets or sets initiator's SNC name to access the SAP server where - /// the table is located. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.sncMyName")] - public object SncMyName { get; set; } - - /// - /// Gets or sets communication partner's SNC name to access the SAP - /// server where the table is located. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.sncPartnerName")] - public object SncPartnerName { get; set; } - - /// - /// Gets or sets external security product's library to access the SAP - /// server where the table is located. Type: string (or Expression with - /// resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.sncLibraryPath")] - public object SncLibraryPath { get; set; } - - /// - /// Gets or sets SNC Quality of Protection. Allowed value include: 1, - /// 2, 3, 8, 9. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.sncQop")] - public object SncQop { get; set; } - - /// - /// Gets or sets the Logon Group for the SAP System. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.logonGroup")] - public object LogonGroup { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SapTableLinkedService(); - linkedService.Server = this.Server; - linkedService.SystemNumber = this.SystemNumber; - linkedService.ClientId = this.ClientId; - linkedService.Language = this.Language; - linkedService.SystemId = this.SystemId; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.MessageServer = this.MessageServer; - linkedService.MessageServerService = this.MessageServerService; - linkedService.SncMode = this.SncMode; - linkedService.SncMyName = this.SncMyName; - linkedService.SncPartnerName = this.SncPartnerName; - linkedService.SncLibraryPath = this.SncLibraryPath; - linkedService.SncQop = this.SncQop; - linkedService.LogonGroup = this.LogonGroup; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSServiceNowLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSServiceNowLinkedService.cs deleted file mode 100644 index 62455362a8e4..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSServiceNowLinkedService.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ServiceNow server linked service. - /// - [Newtonsoft.Json.JsonObject("ServiceNow")] - [Rest.Serialization.JsonTransformation] - public partial class PSServiceNowLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSServiceNowLinkedService class. - /// - public PSServiceNowLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the ServiceNow server. (i.e. - /// &lt;instance&gt;.service-now.com) - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the authentication type to use. Possible values - /// include: 'Basic', 'OAuth2' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the user name used to connect to the ServiceNow server - /// for Basic and OAuth2 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name for Basic - /// and OAuth2 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the client id for OAuth2 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret for OAuth2 authentication. - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new ServiceNowLinkedService(this.Endpoint, this.AuthenticationType); - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.ClientId = this.ClientId; - linkedService.ClientSecret = this.ClientSecret; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSftpServerLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSftpServerLinkedService.cs deleted file mode 100644 index 70f02dc00fc2..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSftpServerLinkedService.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// A linked service for an SSH File Transfer Protocol (SFTP) server. - /// - [Newtonsoft.Json.JsonObject("Sftp")] - [Rest.Serialization.JsonTransformation] - public partial class PSSftpServerLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSftpServerLinkedService class. - /// - public PSSftpServerLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the SFTP server host name. Type: string (or Expression - /// with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port number that the SFTP server uses to - /// listen for client connections. Default value is 22. Type: integer - /// (or Expression with resultType integer), minimum: 0. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the authentication type to be used to connect to the - /// FTP server. Possible values include: 'Basic', 'SshPublicKey' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the username used to log on to the SFTP server. Type: - /// string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets password to logon the SFTP server for Basic - /// authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Gets or sets the SSH private key file path for SshPublicKey - /// authentication. Only valid for on-premises copy. For on-premises - /// copy with SshPublicKey authentication, either PrivateKeyPath or - /// PrivateKeyContent should be specified. SSH private key should be - /// OpenSSH format. Type: string (or Expression with resultType - /// string). - /// - [JsonProperty(PropertyName = "typeProperties.privateKeyPath")] - public object PrivateKeyPath { get; set; } - - /// - /// Gets or sets base64 encoded SSH private key content for - /// SshPublicKey authentication. For on-premises copy with SshPublicKey - /// authentication, either PrivateKeyPath or PrivateKeyContent should - /// be specified. SSH private key should be OpenSSH format. - /// - [JsonProperty(PropertyName = "typeProperties.privateKeyContent")] - public SecretBase PrivateKeyContent { get; set; } - - /// - /// Gets or sets the password to decrypt the SSH private key if the SSH - /// private key is encrypted. - /// - [JsonProperty(PropertyName = "typeProperties.passPhrase")] - public SecretBase PassPhrase { get; set; } - - /// - /// Gets or sets if true, skip the SSH host key validation. Default - /// value is false. Type: boolean (or Expression with resultType - /// boolean). - /// - [JsonProperty(PropertyName = "typeProperties.skipHostKeyValidation")] - public object SkipHostKeyValidation { get; set; } - - /// - /// Gets or sets the host key finger-print of the SFTP server. When - /// SkipHostKeyValidation is false, HostKeyFingerprint should be - /// specified. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.hostKeyFingerprint")] - public object HostKeyFingerprint { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SftpServerLinkedService(this.Host); - linkedService.Port = this.Port; - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - linkedService.PrivateKeyPath = this.PrivateKeyPath; - linkedService.PrivateKeyContent = this.PrivateKeyContent; - linkedService.PassPhrase = this.PassPhrase; - linkedService.SkipHostKeyValidation = this.SkipHostKeyValidation; - linkedService.HostKeyFingerprint = this.HostKeyFingerprint; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSShopifyLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSShopifyLinkedService.cs deleted file mode 100644 index b7bc5a13a930..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSShopifyLinkedService.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Shopify Service linked service. - /// - [Newtonsoft.Json.JsonObject("Shopify")] - [Rest.Serialization.JsonTransformation] - public partial class PSShopifyLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSShopifyLinkedService class. - /// - public PSShopifyLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Shopify server. (i.e. - /// mystore.myshopify.com) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the API access token that can be used to access - /// Shopify’s data. The token won't expire if it is offline mode. - /// - [JsonProperty(PropertyName = "typeProperties.accessToken")] - public SecretBase AccessToken { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new ShopifyLinkedService(this.Host); - linkedService.AccessToken = this.AccessToken; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSparkLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSparkLinkedService.cs deleted file mode 100644 index feb3caaff9d7..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSparkLinkedService.cs +++ /dev/null @@ -1,184 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Spark Server linked service. - /// - [Newtonsoft.Json.JsonObject("Spark")] - [Rest.Serialization.JsonTransformation] - public partial class PSSparkLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSparkLinkedService class. - /// - public PSSparkLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets IP address or host name of the Spark server - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the TCP port that the Spark server uses to listen for - /// client connections. - /// - [JsonProperty(PropertyName = "typeProperties.port")] - public object Port { get; set; } - - /// - /// Gets or sets the type of Spark server. Possible values include: - /// 'SharkServer', 'SharkServer2', 'SparkThriftServer' - /// - [JsonProperty(PropertyName = "typeProperties.serverType")] - public string ServerType { get; set; } - - /// - /// Gets or sets the transport protocol to use in the Thrift layer. - /// Possible values include: 'Binary', 'SASL', 'HTTP ' - /// - [JsonProperty(PropertyName = "typeProperties.thriftTransportProtocol")] - public string ThriftTransportProtocol { get; set; } - - /// - /// Gets or sets the authentication method used to access the Spark - /// server. Possible values include: 'Anonymous', 'Username', - /// 'UsernameAndPassword', 'WindowsAzureHDInsightService' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets the user name that you use to access Spark Server. - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets the password corresponding to the user name that you - /// provided in the Username field - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the partial URL corresponding to the Spark server. - /// - [JsonProperty(PropertyName = "typeProperties.httpPath")] - public object HttpPath { get; set; } - - /// - /// Gets or sets specifies whether the connections to the server are - /// encrypted using SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.enableSsl")] - public object EnableSsl { get; set; } - - /// - /// Gets or sets the full path of the .pem file containing trusted CA - /// certificates for verifying the server when connecting over SSL. - /// This property can only be set when using SSL on self-hosted IR. The - /// default value is the cacerts.pem file installed with the IR. - /// - [JsonProperty(PropertyName = "typeProperties.trustedCertPath")] - public object TrustedCertPath { get; set; } - - /// - /// Gets or sets specifies whether to use a CA certificate from the - /// system trust store or from a specified PEM file. The default value - /// is false. - /// - [JsonProperty(PropertyName = "typeProperties.useSystemTrustStore")] - public object UseSystemTrustStore { get; set; } - - /// - /// Gets or sets specifies whether to require a CA-issued SSL - /// certificate name to match the host name of the server when - /// connecting over SSL. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowHostNameCNMismatch")] - public object AllowHostNameCNMismatch { get; set; } - - /// - /// Gets or sets specifies whether to allow self-signed certificates - /// from the server. The default value is false. - /// - [JsonProperty(PropertyName = "typeProperties.allowSelfSignedServerCert")] - public object AllowSelfSignedServerCert { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (Port == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Port"); - } - if (AuthenticationType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SparkLinkedService(this.Host, this.Port, this.AuthenticationType); - linkedService.ServerType = this.ServerType; - linkedService.ThriftTransportProtocol = this.ThriftTransportProtocol; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.HttpPath = this.HttpPath; - linkedService.EnableSsl = this.EnableSsl; - linkedService.TrustedCertPath = this.TrustedCertPath; - linkedService.UseSystemTrustStore = this.UseSystemTrustStore; - linkedService.AllowHostNameCNMismatch = this.AllowHostNameCNMismatch; - linkedService.AllowSelfSignedServerCert = this.AllowSelfSignedServerCert; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSqlServerLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSqlServerLinkedService.cs deleted file mode 100644 index 419f7ea06868..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSqlServerLinkedService.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SQL Server linked service. - /// - [Newtonsoft.Json.JsonObject("SqlServer")] - [Rest.Serialization.JsonTransformation] - public partial class PSSqlServerLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSqlServerLinkedService class. - /// - public PSSqlServerLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the connection string. Type: string, SecureString or - /// AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the on-premises Windows authentication user name. - /// Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.userName")] - public object UserName { get; set; } - - /// - /// Gets or sets the on-premises Windows authentication password. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (ConnectionString == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SqlServerLinkedService(this.ConnectionString); - linkedService.UserName = this.UserName; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSquareLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSquareLinkedService.cs deleted file mode 100644 index 5f137df54c0e..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSquareLinkedService.cs +++ /dev/null @@ -1,134 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Square Service linked service. - /// - [Newtonsoft.Json.JsonObject("Square")] - [Rest.Serialization.JsonTransformation] - public partial class PSSquareLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSquareLinkedService class. - /// - public PSSquareLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the URL of the Square instance. (i.e. - /// mystore.mysquare.com) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the client ID associated with your Square application. - /// - [JsonProperty(PropertyName = "typeProperties.clientId")] - public object ClientId { get; set; } - - /// - /// Gets or sets the client secret associated with your Square - /// application. - /// - [JsonProperty(PropertyName = "typeProperties.clientSecret")] - public SecretBase ClientSecret { get; set; } - - /// - /// Gets or sets the redirect URL assigned in the Square application - /// dashboard. (i.e. http://localhost:2500) - /// - [JsonProperty(PropertyName = "typeProperties.redirectUri")] - public object RedirectUri { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - if (ClientId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientId"); - } - if (RedirectUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RedirectUri"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SquareLinkedService(this.Host, this.ClientId, this.RedirectUri); - linkedService.ClientSecret = this.ClientSecret; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSSybaseLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSSybaseLinkedService.cs deleted file mode 100644 index 866cd23205cd..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSSybaseLinkedService.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Sybase data source. - /// - [Newtonsoft.Json.JsonObject("Sybase")] - [Rest.Serialization.JsonTransformation] - public partial class PSSybaseLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSSybaseLinkedService class. - /// - public PSSybaseLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets server name for connection. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets database name for connection. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.database")] - public object Database { get; set; } - - /// - /// Gets or sets schema name for connection. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.schema")] - public object Schema { get; set; } - - /// - /// Gets or sets authenticationType to be used for connection. Possible - /// values include: 'Basic', 'Windows' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets username for authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password for authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - if (Database == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Database"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new SybaseLinkedService(this.Server, this.Database); - linkedService.Schema = this.Schema; - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSTeradataLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSTeradataLinkedService.cs deleted file mode 100644 index 4137dd1a86e1..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSTeradataLinkedService.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Linked service for Teradata data source. - /// - [Newtonsoft.Json.JsonObject("Teradata")] - [Rest.Serialization.JsonTransformation] - public partial class PSTeradataLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSTeradataLinkedService class. - /// - public PSTeradataLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets teradata ODBC connection string. Type: string, - /// SecureString or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets server name for connection. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.server")] - public object Server { get; set; } - - /// - /// Gets or sets authenticationType to be used for connection. Possible - /// values include: 'Basic', 'Windows' - /// - [JsonProperty(PropertyName = "typeProperties.authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets username for authentication. Type: string (or - /// Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.username")] - public object Username { get; set; } - - /// - /// Gets or sets password for authentication. - /// - [JsonProperty(PropertyName = "typeProperties.password")] - public SecretBase Password { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new TeradataLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Server = this.Server; - linkedService.AuthenticationType = this.AuthenticationType; - linkedService.Username = this.Username; - linkedService.Password = this.Password; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSVerticaLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSVerticaLinkedService.cs deleted file mode 100644 index d95972ca5678..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSVerticaLinkedService.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Vertica linked service. - /// - [Newtonsoft.Json.JsonObject("Vertica")] - [Rest.Serialization.JsonTransformation] - public partial class PSVerticaLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSVerticaLinkedService class. - /// - public PSVerticaLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an ODBC connection string. Type: string, SecureString - /// or AzureKeyVaultSecretReference. - /// - [JsonProperty(PropertyName = "typeProperties.connectionString")] - public object ConnectionString { get; set; } - - /// - /// Gets or sets the Azure key vault secret reference of password in - /// connection string. - /// - [JsonProperty(PropertyName = "typeProperties.pwd")] - public AzureKeyVaultSecretReference Pwd { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } - - public override LinkedService ToSdkObject() - { - var linkedService = new VerticaLinkedService(); - linkedService.ConnectionString = this.ConnectionString; - linkedService.Pwd = this.Pwd; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSWebLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSWebLinkedService.cs deleted file mode 100644 index 1475598ce158..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSWebLinkedService.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Web linked service. - /// - [Newtonsoft.Json.JsonObject("Web")] - public partial class PSWebLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSWebLinkedService class. - /// - public PSWebLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets web linked service properties. - /// - [JsonProperty(PropertyName = "typeProperties")] - public WebLinkedServiceTypeProperties TypeProperties { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (TypeProperties == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TypeProperties"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new WebLinkedService(this.TypeProperties); - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSXeroLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSXeroLinkedService.cs deleted file mode 100644 index 1177fc8f6fce..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSXeroLinkedService.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Xero Service linked service. - /// - [Newtonsoft.Json.JsonObject("Xero")] - [Rest.Serialization.JsonTransformation] - public partial class PSXeroLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSXeroLinkedService class. - /// - public PSXeroLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Xero server. (i.e. api.xero.com) - /// - [JsonProperty(PropertyName = "typeProperties.host")] - public object Host { get; set; } - - /// - /// Gets or sets the consumer key associated with the Xero application. - /// - [JsonProperty(PropertyName = "typeProperties.consumerKey")] - public SecretBase ConsumerKey { get; set; } - - /// - /// Gets or sets the private key from the .pem file that was generated - /// for your Xero private application. You must include all the text - /// from the .pem file, including the Unix line endings( - /// ). - /// - [JsonProperty(PropertyName = "typeProperties.privateKey")] - public SecretBase PrivateKey { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Host == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Host"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new XeroLinkedService(this.Host); - linkedService.ConsumerKey = this.ConsumerKey; - linkedService.PrivateKey = this.PrivateKey; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/LinkedService/PSZohoLinkedService.cs b/src/Synapse/Synapse/Models/LinkedService/PSZohoLinkedService.cs deleted file mode 100644 index 7551495ed47e..000000000000 --- a/src/Synapse/Synapse/Models/LinkedService/PSZohoLinkedService.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Zoho server linked service. - /// - [Newtonsoft.Json.JsonObject("Zoho")] - [Rest.Serialization.JsonTransformation] - public partial class PSZohoLinkedService : PSLinkedService - { - /// - /// Initializes a new instance of the PSZohoLinkedService class. - /// - public PSZohoLinkedService() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the endpoint of the Zoho server. (i.e. - /// crm.zoho.com/crm/private) - /// - [JsonProperty(PropertyName = "typeProperties.endpoint")] - public object Endpoint { get; set; } - - /// - /// Gets or sets the access token for Zoho authentication. - /// - [JsonProperty(PropertyName = "typeProperties.accessToken")] - public SecretBase AccessToken { get; set; } - - /// - /// Gets or sets specifies whether the data source endpoints are - /// encrypted using HTTPS. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")] - public object UseEncryptedEndpoints { get; set; } - - /// - /// Gets or sets specifies whether to require the host name in the - /// server's certificate to match the host name of the server when - /// connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.useHostVerification")] - public object UseHostVerification { get; set; } - - /// - /// Gets or sets specifies whether to verify the identity of the server - /// when connecting over SSL. The default value is true. - /// - [JsonProperty(PropertyName = "typeProperties.usePeerVerification")] - public object UsePeerVerification { get; set; } - - /// - /// Gets or sets the encrypted credential used for authentication. - /// Credentials are encrypted using the integration runtime credential - /// manager. Type: string (or Expression with resultType string). - /// - [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] - public object EncryptedCredential { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoint"); - } - } - - public override LinkedService ToSdkObject() - { - var linkedService = new ZohoLinkedService(this.Endpoint); - linkedService.AccessToken = this.AccessToken; - linkedService.UseEncryptedEndpoints = this.UseEncryptedEndpoints; - linkedService.UseHostVerification = this.UseHostVerification; - linkedService.UsePeerVerification = this.UsePeerVerification; - linkedService.EncryptedCredential = this.EncryptedCredential; - SetProperties(linkedService); - return linkedService; - } - } -} - diff --git a/src/Synapse/Synapse/Models/PSActivity.cs b/src/Synapse/Synapse/Models/PSActivity.cs index 6f3d6d0817c1..e60410687ce1 100644 --- a/src/Synapse/Synapse/Models/PSActivity.cs +++ b/src/Synapse/Synapse/Models/PSActivity.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System.Collections.Generic; using System.Linq; @@ -27,45 +26,16 @@ public PSActivity(Activity activity) public PSActivity() { } - [JsonProperty(PropertyName = "name")] public string Name { get; set; } - [JsonProperty(PropertyName = "description")] public string Description { get; set; } - [JsonProperty(PropertyName = "dependsOn")] public IList DependsOn { get; set; } - [JsonProperty(PropertyName = "userProperties")] public IList UserProperties { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } public virtual void Validate() { } - - public virtual Activity ToSdkObject() - { - Activity activity = new Activity(this.Name); - SetProperties(activity); - return activity; - } - - protected void SetProperties(Activity activity) - { - activity.Description = this.Description; - this.DependsOn?.ForEach(item => activity.DependsOn.Add(item?.ToSdkObject())); - this.UserProperties?.ForEach(item => activity.UserProperties.Add(item?.ToSdkObject())); - if (this.AdditionalProperties != null) - { - foreach (var item in this.AdditionalProperties) - { - if (item.Key != "typeProperties") - { - activity.Add(item.Key, item.Value); - } - } - } - } } } diff --git a/src/Synapse/Synapse/Models/PSActivityDependency.cs b/src/Synapse/Synapse/Models/PSActivityDependency.cs index 1eb1b7c0c6e1..aa91d0f67519 100644 --- a/src/Synapse/Synapse/Models/PSActivityDependency.cs +++ b/src/Synapse/Synapse/Models/PSActivityDependency.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; @@ -24,20 +23,10 @@ public PSActivityDependency(ActivityDependency dependency) } } - [JsonProperty(PropertyName = "activity")] public string Activity { get; set; } - [JsonProperty(PropertyName = "dependencyConditions")] public IList DependencyConditions { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public ActivityDependency ToSdkObject() - { - var dependency = new ActivityDependency(this.Activity, this.DependencyConditions); - this.AdditionalProperties?.ForEach(item => dependency.Add(item.Key, item.Value)); - return dependency; - } } } diff --git a/src/Synapse/Synapse/Models/PSBigDataPoolReference.cs b/src/Synapse/Synapse/Models/PSBigDataPoolReference.cs index 2d18a668139a..ffb04f13d702 100644 --- a/src/Synapse/Synapse/Models/PSBigDataPoolReference.cs +++ b/src/Synapse/Synapse/Models/PSBigDataPoolReference.cs @@ -16,17 +16,5 @@ public PSBigDataPoolReference(BigDataPoolReference bigDataPoolReference) public BigDataPoolReferenceType? Type { get; set; } public string ReferenceName { get; set; } - - public BigDataPoolReference ToSdkObject() - { - if (this.ReferenceName == null) - { - return null; - } - else - { - return new BigDataPoolReference(this.Type.GetValueOrDefault(), this.ReferenceName); - } - } } } diff --git a/src/Synapse/Synapse/Models/PSDataFlow.cs b/src/Synapse/Synapse/Models/PSDataFlow.cs index 9888b9541e90..0ac1c816e428 100644 --- a/src/Synapse/Synapse/Models/PSDataFlow.cs +++ b/src/Synapse/Synapse/Models/PSDataFlow.cs @@ -22,19 +22,5 @@ public PSDataFlow() { } public IList Annotations { get; set; } public PSDataFlowFolder Folder { get; set; } - - public virtual DataFlow ToSdkObject() - { - var dataFlow = new DataFlow(); - SetProperties(dataFlow); - return dataFlow; - } - - protected void SetProperties(DataFlow dataFlow) - { - dataFlow.Description = this.Description; - dataFlow.Folder = this.Folder?.ToSdkObject(); - this.Annotations?.ForEach(item => dataFlow.Annotations.Add(item)); - } } } diff --git a/src/Synapse/Synapse/Models/PSDataFlowFolder.cs b/src/Synapse/Synapse/Models/PSDataFlowFolder.cs index 4d4e9c2f476e..74cadb251f99 100644 --- a/src/Synapse/Synapse/Models/PSDataFlowFolder.cs +++ b/src/Synapse/Synapse/Models/PSDataFlowFolder.cs @@ -13,13 +13,5 @@ public PSDataFlowFolder(DataFlowFolder dataFlowFolder) } public string Name { get; set; } - - public DataFlowFolder ToSdkObject() - { - return new DataFlowFolder() - { - Name = this.Name - }; - } } } diff --git a/src/Synapse/Synapse/Models/PSDataFlowResource.cs b/src/Synapse/Synapse/Models/PSDataFlowResource.cs index 6e9495b77567..b1d93fffdc13 100644 --- a/src/Synapse/Synapse/Models/PSDataFlowResource.cs +++ b/src/Synapse/Synapse/Models/PSDataFlowResource.cs @@ -1,5 +1,4 @@ using Azure.Analytics.Synapse.Artifacts.Models; -using Newtonsoft.Json; namespace Microsoft.Azure.Commands.Synapse.Models { @@ -18,13 +17,5 @@ public PSDataFlowResource(DataFlowResource dataFlowResource, string workspaceNam public string WorkspaceName { get; set; } public DataFlow Properties { get; set; } - - [JsonProperty(PropertyName = "properties")] - internal PSDataFlow PropertiesForCreate { get; set; } - - public DataFlowResource ToSdkObject() - { - return new DataFlowResource(this.PropertiesForCreate?.ToSdkObject()); - } } } diff --git a/src/Synapse/Synapse/Models/PSDataset.cs b/src/Synapse/Synapse/Models/PSDataset.cs index 91de8c479d7a..4a70c596e875 100644 --- a/src/Synapse/Synapse/Models/PSDataset.cs +++ b/src/Synapse/Synapse/Models/PSDataset.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel; @@ -35,57 +34,22 @@ public PSDataset(Dataset dataset) public PSDataset() { } - [JsonProperty(PropertyName = "description")] public string Description { get; set; } - [JsonProperty(PropertyName = "structure")] public object Structure { get; set; } - [JsonProperty(PropertyName = "schema")] public object Schema { get; set; } - [JsonProperty(PropertyName = "linkedServiceName")] public LinkedServiceReference LinkedServiceName { get; set; } - [JsonProperty(PropertyName = "parameters")] public IDictionary Parameters { get; set; } - [JsonProperty(PropertyName = "annotations")] public IList Annotations { get; set; } - [JsonProperty(PropertyName = "folder")] public PSDatasetFolder Folder { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } public virtual void Validate() { } - - public virtual Dataset ToSdkObject() - { - var dataset = new Dataset(this.LinkedServiceName); - SetProperties(dataset); - return dataset; - } - - protected void SetProperties(Dataset dataset) - { - dataset.Description = this.Description; - dataset.Structure = this.Structure; - dataset.Schema = this.Schema; - dataset.Folder = this.Folder?.ToSdkObject(); - this.Parameters?.ForEach(item => dataset.Parameters.Add(item.Key, item.Value?.ToSdkObject())); - this.Annotations?.ForEach(item => dataset.Annotations.Add(item)); - if (this.AdditionalProperties != null) - { - foreach (var item in this.AdditionalProperties) - { - if (item.Key != "typeProperties") - { - dataset.Add(item.Key, item.Value); - } - } - } - } } } diff --git a/src/Synapse/Synapse/Models/PSDatasetFolder.cs b/src/Synapse/Synapse/Models/PSDatasetFolder.cs index 829422eef944..d8442584c075 100644 --- a/src/Synapse/Synapse/Models/PSDatasetFolder.cs +++ b/src/Synapse/Synapse/Models/PSDatasetFolder.cs @@ -13,13 +13,5 @@ public PSDatasetFolder(DatasetFolder folder) } public string Name { get; set; } - - public DatasetFolder ToSdkObject() - { - return new DatasetFolder() - { - Name = this.Name - }; - } } } diff --git a/src/Synapse/Synapse/Models/PSDatasetResource.cs b/src/Synapse/Synapse/Models/PSDatasetResource.cs index 2d8bc538342d..891e4a46bbd6 100644 --- a/src/Synapse/Synapse/Models/PSDatasetResource.cs +++ b/src/Synapse/Synapse/Models/PSDatasetResource.cs @@ -1,5 +1,4 @@ using Azure.Analytics.Synapse.Artifacts.Models; -using Newtonsoft.Json; namespace Microsoft.Azure.Commands.Synapse.Models { @@ -18,13 +17,5 @@ public PSDatasetResource(DatasetResource dataset, string workspaceName) public string WorkspaceName { get; set; } public Dataset Properties { get; set; } - - [JsonProperty(PropertyName = "properties")] - internal PSDataset PropertiesForCreate { get; set; } - - public DatasetResource ToSdkObject() - { - return new DatasetResource(this.PropertiesForCreate?.ToSdkObject()); - } } } diff --git a/src/Synapse/Synapse/Models/PSIntegrationRuntimeReference.cs b/src/Synapse/Synapse/Models/PSIntegrationRuntimeReference.cs index dd976b0816f9..5257fd68702c 100644 --- a/src/Synapse/Synapse/Models/PSIntegrationRuntimeReference.cs +++ b/src/Synapse/Synapse/Models/PSIntegrationRuntimeReference.cs @@ -20,12 +20,5 @@ public PSIntegrationRuntimeReference(IntegrationRuntimeReference integrationRunt public string ReferenceName { get; set; } public IDictionary Parameters { get; set; } - - public IntegrationRuntimeReference ToSdkObject() - { - IntegrationRuntimeReference integrationRuntimeReference = new IntegrationRuntimeReference(this.Type.GetValueOrDefault(), this.ReferenceName); - this.Parameters?.ForEach(item => integrationRuntimeReference.Parameters.Add(item)); - return integrationRuntimeReference; - } } } diff --git a/src/Synapse/Synapse/Models/PSLinkedService.cs b/src/Synapse/Synapse/Models/PSLinkedService.cs index 4b830001070c..691666744ac2 100644 --- a/src/Synapse/Synapse/Models/PSLinkedService.cs +++ b/src/Synapse/Synapse/Models/PSLinkedService.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; @@ -31,46 +30,16 @@ public PSLinkedService(LinkedService linkedService) public PSLinkedService() { } - [JsonProperty(PropertyName = "connectVia")] public PSIntegrationRuntimeReference ConnectVia { get; set; } - [JsonProperty(PropertyName = "description")] public string Description { get; set; } - [JsonProperty(PropertyName = "parameters")] public IDictionary Parameters { get; set; } - [JsonProperty(PropertyName = "annotations")] public IList Annotations { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } public virtual void Validate() { } - - public virtual LinkedService ToSdkObject() - { - LinkedService linkedService = new LinkedService(); - SetProperties(linkedService); - return linkedService; - } - - protected void SetProperties(LinkedService linkedService) - { - linkedService.ConnectVia = this.ConnectVia?.ToSdkObject(); - linkedService.Description = this.Description; - this.Annotations?.ForEach(item => linkedService.Annotations.Add(item)); - this.Parameters?.ForEach(item => linkedService.Parameters.Add(item.Key, item.Value?.ToSdkObject())); - if (this.AdditionalProperties != null) - { - foreach(var item in this.AdditionalProperties) - { - if (item.Key != "typeProperties") - { - linkedService.Add(item.Key, item.Value); - } - } - } - } } } diff --git a/src/Synapse/Synapse/Models/PSLinkedServiceResource.cs b/src/Synapse/Synapse/Models/PSLinkedServiceResource.cs index 4d855a324b4c..83b38cd0b675 100644 --- a/src/Synapse/Synapse/Models/PSLinkedServiceResource.cs +++ b/src/Synapse/Synapse/Models/PSLinkedServiceResource.cs @@ -1,5 +1,4 @@ using Azure.Analytics.Synapse.Artifacts.Models; -using Newtonsoft.Json; namespace Microsoft.Azure.Commands.Synapse.Models { @@ -18,15 +17,5 @@ public PSLinkedServiceResource(LinkedServiceResource linkedServiceResource, stri public string WorkspaceName { get; set; } public LinkedService Properties { get; set; } - - [JsonProperty(PropertyName = "properties")] - internal PSLinkedService PropertiesForCreate { get; set; } - - public LinkedServiceResource ToSdkObject() - { - LinkedService linkedService = this.PropertiesForCreate?.ToSdkObject(); - LinkedServiceResource linkedServiceResource = new LinkedServiceResource(linkedService); - return linkedServiceResource; - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebook.cs b/src/Synapse/Synapse/Models/PSNotebook.cs index dbddf37200d9..b11a0ac548d9 100644 --- a/src/Synapse/Synapse/Models/PSNotebook.cs +++ b/src/Synapse/Synapse/Models/PSNotebook.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel; @@ -31,43 +30,22 @@ public PSNotebook(Notebook notebook) } } - [JsonProperty(PropertyName = "description")] public string Description { get; set; } - [JsonIgnore] public PSBigDataPoolReference BigDataPool { get; set; } - [JsonIgnore] public PSNotebookSessionProperties SessionProperties { get; set; } - [JsonProperty(PropertyName = "metadata")] public PSNotebookMetadata Metadata { get; set; } [DefaultValue(4)] - [JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate, PropertyName = "nbformat")] public int? NotebookFormat { get; set; } [DefaultValue(2)] - [JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate, PropertyName = "nbformat_minor")] public int? NotebookFormatMinor { get; set; } - [JsonProperty(PropertyName = "cells")] public IList Cells { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public Notebook ToSdkObject() - { - var notebook = new Notebook(this.Metadata?.ToSdkObject(), this.NotebookFormat.GetValueOrDefault(), this.NotebookFormatMinor.GetValueOrDefault(), - this.Cells?.Select(element => element?.ToSdkObject())) - { - Description = this.Description, - BigDataPool = this.BigDataPool?.ToSdkObject(), - SessionProperties = this.SessionProperties?.ToSdkObject() - }; - this.AdditionalProperties?.ForEach(item => notebook.Add(item.Key, item.Value)); - return notebook; - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebookCell.cs b/src/Synapse/Synapse/Models/PSNotebookCell.cs index e85b8849f313..2bb16830d734 100644 --- a/src/Synapse/Synapse/Models/PSNotebookCell.cs +++ b/src/Synapse/Synapse/Models/PSNotebookCell.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; @@ -28,37 +27,16 @@ public PSNotebookCell(NotebookCell notebookCell) } } - [JsonProperty(PropertyName = "cell_type")] public string CellType { get; set; } - [JsonProperty(PropertyName = "metadata")] public object Metadata { get; set; } - [JsonProperty(PropertyName = "source")] public IList Source { get; set; } - [JsonProperty(PropertyName = "attachments")] public object Attachments { get; set; } - [JsonProperty(PropertyName = "outputs")] public IList Outputs { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public NotebookCell ToSdkObject() - { - if(this.Metadata == null) - { - this.Metadata = new System.Collections.Generic.Dictionary(); - } - var cell = new NotebookCell(this.CellType, this.Metadata, this.Source) - { - Attachments = this.Attachments, - }; - this.Outputs?.ForEach(item => cell.Outputs.Add(item?.ToSdkObject())); - this.AdditionalProperties?.ForEach(item => cell.Add(item.Key, item.Value)); - return cell; - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebookCellOutputItem.cs b/src/Synapse/Synapse/Models/PSNotebookCellOutputItem.cs index 7bd6084b8705..4c0834adf997 100644 --- a/src/Synapse/Synapse/Models/PSNotebookCellOutputItem.cs +++ b/src/Synapse/Synapse/Models/PSNotebookCellOutputItem.cs @@ -1,5 +1,4 @@ using Azure.Analytics.Synapse.Artifacts.Models; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; @@ -18,34 +17,16 @@ public PSNotebookCellOutputItem(NotebookCellOutputItem notebookCellOutputItem) this.Metadata = notebookCellOutputItem?.Metadata; } - [JsonProperty(PropertyName = "name")] public string Name { get; set; } - [JsonProperty(PropertyName = "execution_count")] public int? ExecutionCount { get; set; } - [JsonProperty(PropertyName = "output_type")] public string OutputType { get; set; } - [JsonProperty(PropertyName = "text")] public object Text { get; set; } - [JsonProperty(PropertyName = "data")] public object Data { get; set; } - [JsonProperty(PropertyName = "metadata")] public object Metadata { get; set; } - - public NotebookCellOutputItem ToSdkObject() - { - return new NotebookCellOutputItem(new CellOutputType(this.OutputType)) - { - Name = this.Name, - ExecutionCount = this.ExecutionCount, - Text = this.Text, - Data = this.Data, - Metadata = this.Metadata - }; - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebookKernelSpec.cs b/src/Synapse/Synapse/Models/PSNotebookKernelSpec.cs index 90c7cfaafb97..ee605d7b3243 100644 --- a/src/Synapse/Synapse/Models/PSNotebookKernelSpec.cs +++ b/src/Synapse/Synapse/Models/PSNotebookKernelSpec.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Runtime.CompilerServices; @@ -25,20 +24,10 @@ public PSNotebookKernelSpec(NotebookKernelSpec notebookKernelSpec) } } - [JsonProperty(PropertyName = "name")] public string Name { get; set; } - [JsonProperty(PropertyName = "display_name")] public string DisplayName { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public NotebookKernelSpec ToSdkObject() - { - var notebookKernelSpec = new NotebookKernelSpec(this.Name, this.DisplayName); - this.AdditionalProperties?.ForEach(item => notebookKernelSpec.Add(item.Key, item.Value)); - return notebookKernelSpec; - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebookLanguageInfo.cs b/src/Synapse/Synapse/Models/PSNotebookLanguageInfo.cs index 2de352b74900..2c113952360e 100644 --- a/src/Synapse/Synapse/Models/PSNotebookLanguageInfo.cs +++ b/src/Synapse/Synapse/Models/PSNotebookLanguageInfo.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel; @@ -25,35 +24,10 @@ public PSNotebookLanguageInfo(NotebookLanguageInfo notebookLanguageInfo) } } - [JsonProperty(PropertyName = "name")] public string Name { get; set; } public string CodemirrorMode { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public NotebookLanguageInfo ToSdkObject() - { - if(this.Name == null) - { - this.Name = LanguageType.Python; - } - var info = new NotebookLanguageInfo(this.Name) - { - CodemirrorMode = this.CodemirrorMode - }; - if (this.AdditionalProperties != null) - { - foreach (var item in this.AdditionalProperties) - { - if (item.Key != "codemirror_mode") - { - info.Add(item.Key, item.Value); - } - } - } - return info; - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebookMetadata.cs b/src/Synapse/Synapse/Models/PSNotebookMetadata.cs index 283f82e4c0e6..af4918fadd55 100644 --- a/src/Synapse/Synapse/Models/PSNotebookMetadata.cs +++ b/src/Synapse/Synapse/Models/PSNotebookMetadata.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; @@ -24,24 +23,10 @@ public PSNotebookMetadata(NotebookMetadata notebookMetadata) } } - [JsonProperty(PropertyName = "kernelspec")] public PSNotebookKernelSpec Kernelspec { get; set; } - [JsonProperty(PropertyName = "language_info")] public PSNotebookLanguageInfo LanguageInfo { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public NotebookMetadata ToSdkObject() - { - var metadata = new NotebookMetadata() - { - Kernelspec = this.Kernelspec?.ToSdkObject(), - LanguageInfo = this.LanguageInfo?.ToSdkObject() - }; - this.AdditionalProperties?.ForEach(item => metadata.Add(item.Key, item.Value)); - return metadata; - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebookResource.cs b/src/Synapse/Synapse/Models/PSNotebookResource.cs index 8dffc530f50d..5e9850f0fa65 100644 --- a/src/Synapse/Synapse/Models/PSNotebookResource.cs +++ b/src/Synapse/Synapse/Models/PSNotebookResource.cs @@ -20,10 +20,5 @@ public PSNotebookResource(NotebookResource notebookResource, string workspaceNam public string WorkspaceName { get; set; } public PSNotebook Properties { get; set; } - - public NotebookResource ToSdkObject() - { - return new NotebookResource(this.Properties?.ToSdkObject()); - } } } diff --git a/src/Synapse/Synapse/Models/PSNotebookSessionProperties.cs b/src/Synapse/Synapse/Models/PSNotebookSessionProperties.cs index 911401229c34..1beb22ca88b3 100644 --- a/src/Synapse/Synapse/Models/PSNotebookSessionProperties.cs +++ b/src/Synapse/Synapse/Models/PSNotebookSessionProperties.cs @@ -25,18 +25,5 @@ public PSNotebookSessionProperties(NotebookSessionProperties notebookSessionProp public int? ExecutorCores { get; set; } public int? NumExecutors { get; set; } - - public NotebookSessionProperties ToSdkObject() - { - try - { - return new NotebookSessionProperties(this.DriverMemory, this.DriverCores.GetValueOrDefault(), - this.ExecutorMemory, this.ExecutorCores.GetValueOrDefault(), this.NumExecutors.GetValueOrDefault()); - } - catch (ArgumentNullException) - { - return null; - } - } } } diff --git a/src/Synapse/Synapse/Models/PSParameterSpecification.cs b/src/Synapse/Synapse/Models/PSParameterSpecification.cs index 48a1750c5781..8bbf7dbf32cc 100644 --- a/src/Synapse/Synapse/Models/PSParameterSpecification.cs +++ b/src/Synapse/Synapse/Models/PSParameterSpecification.cs @@ -19,13 +19,5 @@ public PSParameterSpecification(ParameterSpecification parameterSpecification) public ParameterType Type { get; set; } public object DefaultValue { get; set; } - - public ParameterSpecification ToSdkObject() - { - return new ParameterSpecification(this.Type) - { - DefaultValue = this.DefaultValue - }; - } } } diff --git a/src/Synapse/Synapse/Models/PSPipelineResource.cs b/src/Synapse/Synapse/Models/PSPipelineResource.cs index ea3ef816892b..2fead54a4da8 100644 --- a/src/Synapse/Synapse/Models/PSPipelineResource.cs +++ b/src/Synapse/Synapse/Models/PSPipelineResource.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Collections.Generic; using System.Linq; @@ -44,62 +43,22 @@ public PSPipelineResource() { } public string WorkspaceName { get; set; } - [JsonProperty(PropertyName = "properties.description")] public string Description { get; set; } public IList Activities { get; set; } - [JsonProperty(PropertyName = "properties.activities")] - internal IList ActivitiesForCreate { get; set; } - - [JsonProperty(PropertyName = "properties.variables")] public IDictionary Variables { get; set; } - [JsonProperty(PropertyName = "properties.concurrency")] public int? Concurrency { get; set; } - [JsonProperty(PropertyName = "properties.annotations")] public IList Annotations { get; set; } - [JsonProperty(PropertyName = "properties.runDimensions")] public IDictionary RunDimensions { get; set; } - [JsonProperty(PropertyName = "properties.folder")] public PSPipelineFolder Folder { get; set; } - [JsonProperty(PropertyName = "properties.parameters")] public IDictionary Parameters { get; set; } - [JsonProperty(PropertyName = "properties")] - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public PipelineResource ToSdkObject() - { - PipelineResource pipeline = new PipelineResource - { - Description = this.Description, - Concurrency = this.Concurrency, - Folder = this.Folder?.ToSdkObject() - }; - this.ActivitiesForCreate?.ForEach(item => pipeline.Activities.Add(item?.ToSdkObject())); - this.Variables?.ForEach(item => pipeline.Variables.Add(item.Key, item.Value?.ToSdkObject())); - this.Annotations?.ForEach(item => pipeline.Annotations.Add(item)); - this.RunDimensions?.ForEach(item => pipeline.RunDimensions.Add(item)); - this.Parameters?.ForEach(item => pipeline.Parameters.Add(item.Key, item.Value?.ToSdkObject())); - List properties = new List { "description", "activities", "variables", "concurrency", - "annotations", "runDimensions", "folder", "parameters" }; - if (this.AdditionalProperties != null) - { - foreach (var item in this.AdditionalProperties) - { - if (!properties.Contains(item.Key)) - { - pipeline.Add(item.Key, item.Value); - } - } - } - return pipeline; - } } } diff --git a/src/Synapse/Synapse/Models/PSTrigger.cs b/src/Synapse/Synapse/Models/PSTrigger.cs index 4cfaa0631e8c..183bd98059af 100644 --- a/src/Synapse/Synapse/Models/PSTrigger.cs +++ b/src/Synapse/Synapse/Models/PSTrigger.cs @@ -1,6 +1,5 @@ using Azure.Analytics.Synapse.Artifacts.Models; using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; @@ -27,39 +26,12 @@ public PSTrigger(Trigger trigger) public PSTrigger() { } - [JsonProperty(PropertyName = "description")] public string Description { get; set; } - [JsonProperty(PropertyName = "runtimeState")] public TriggerRuntimeState? RuntimeState { get; set; } - [JsonProperty(PropertyName = "annotations")] public IList Annotations { get; set; } - [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } - - public virtual Trigger ToSdkObject() - { - var trigger = new Trigger(); - SetProperties(trigger); - return trigger; - } - - protected void SetProperties(Trigger trigger) - { - trigger.Description = this.Description; - this.Annotations?.ForEach(item => trigger.Annotations.Add(item)); - if (this.AdditionalProperties != null) - { - foreach (var item in this.AdditionalProperties) - { - if (item.Key != "typeProperties") - { - trigger.Add(item.Key, item.Value); - } - } - } - } } } diff --git a/src/Synapse/Synapse/Models/PSTriggerResource.cs b/src/Synapse/Synapse/Models/PSTriggerResource.cs index 530e42b9c451..9bc80942f2c5 100644 --- a/src/Synapse/Synapse/Models/PSTriggerResource.cs +++ b/src/Synapse/Synapse/Models/PSTriggerResource.cs @@ -1,5 +1,4 @@ using Azure.Analytics.Synapse.Artifacts.Models; -using Newtonsoft.Json; namespace Microsoft.Azure.Commands.Synapse.Models { @@ -18,13 +17,5 @@ public PSTriggerResource(TriggerResource triggerResource, string workspaceName) public string WorkspaceName { get; set; } public Trigger Properties { get; set; } - - [JsonProperty(PropertyName = "properties")] - internal PSTrigger PropertiesForCreate { get; set; } - - public TriggerResource ToSdkObject() - { - return new TriggerResource(this.PropertiesForCreate?.ToSdkObject()); - } } } diff --git a/src/Synapse/Synapse/Models/PSUserProperty.cs b/src/Synapse/Synapse/Models/PSUserProperty.cs index 4ce99be76a82..75af69aac4c0 100644 --- a/src/Synapse/Synapse/Models/PSUserProperty.cs +++ b/src/Synapse/Synapse/Models/PSUserProperty.cs @@ -17,10 +17,5 @@ public PSUserProperty(UserProperty userProperty) public string Name { get; set; } public object Value { get; set; } - - public UserProperty ToSdkObject() - { - return new UserProperty(this.Name, this.Value); - } } } diff --git a/src/Synapse/Synapse/Models/PSVariableSpecification.cs b/src/Synapse/Synapse/Models/PSVariableSpecification.cs index 066afdba3476..1199d69f9d2d 100644 --- a/src/Synapse/Synapse/Models/PSVariableSpecification.cs +++ b/src/Synapse/Synapse/Models/PSVariableSpecification.cs @@ -19,13 +19,5 @@ public PSVariableSpecification(VariableSpecification variableSpecification) public VariableType Type { get; set; } public object DefaultValue { get; set; } - - public VariableSpecification ToSdkObject() - { - return new VariableSpecification(this.Type) - { - DefaultValue = this.DefaultValue - }; - } } } diff --git a/src/Synapse/Synapse/Models/SynapseAnalyticsArtifactsClient.cs b/src/Synapse/Synapse/Models/SynapseAnalyticsArtifactsClient.cs index 8abc648dfc62..1d2afc613777 100644 --- a/src/Synapse/Synapse/Models/SynapseAnalyticsArtifactsClient.cs +++ b/src/Synapse/Synapse/Models/SynapseAnalyticsArtifactsClient.cs @@ -6,7 +6,6 @@ using Microsoft.Azure.Commands.Synapse.Models.Exceptions; using Microsoft.Azure.Commands.Synapse.Properties; using Microsoft.Rest.Serialization; -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; @@ -15,7 +14,6 @@ namespace Microsoft.Azure.Commands.Synapse.Models { public class SynapseAnalyticsArtifactsClient { - private readonly JsonSerializerSettings Settings; private readonly PipelineClient _pipelineClient; private readonly PipelineRunClient _pipelineRunClient; private readonly LinkedServiceClient _linkedServiceClient; @@ -32,25 +30,6 @@ public SynapseAnalyticsArtifactsClient(string workspaceName, IAzureContext conte throw new SynapseException(Resources.InvalidDefaultSubscription); } - Settings = new JsonSerializerSettings - { - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new List - { - new Iso8601TimeSpanConverter() - } - }; - Settings.Converters.Add(new TransformationJsonConverter()); - Settings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); - Settings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); - Settings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); - Settings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); - Settings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); - string suffix = context.Environment.GetEndpoint(AzureEnvironment.ExtendedEndpoint.AzureSynapseAnalyticsEndpointSuffix); Uri uri = new Uri("https://" + workspaceName + "." + suffix); _pipelineClient = new PipelineClient(uri, new AzureSessionCredential(context)); @@ -67,8 +46,7 @@ public SynapseAnalyticsArtifactsClient(string workspaceName, IAzureContext conte public PipelineResource CreateOrUpdatePipeline(string pipelineName, string rawJsonContent) { - PSPipelineResource psPipeline = JsonConvert.DeserializeObject(rawJsonContent,Settings); - PipelineResource pipeline = psPipeline.ToSdkObject(); + PipelineResource pipeline = JsonConvert.DeserializeObject(rawJsonContent); var operation = _pipelineClient.StartCreateOrUpdatePipeline(pipelineName, pipeline); return operation.Poll().Value; } @@ -133,8 +111,7 @@ public Pageable GetLinkedServicesByWorkspace() public LinkedServiceResource CreateOrUpdateLinkedService(string linkedServiceName, string rawJsonContent) { - PSLinkedServiceResource psLinkedService = JsonConvert.DeserializeObject(rawJsonContent, Settings); - LinkedServiceResource linkedService = psLinkedService.ToSdkObject(); + LinkedServiceResource linkedService = JsonConvert.DeserializeObject(rawJsonContent); var operation = _linkedServiceClient.StartCreateOrUpdateLinkedService(linkedServiceName, linkedService); return operation.Poll().Value; } @@ -175,8 +152,7 @@ public Pageable GetNotebooksByWorkspace() public TriggerResource CreateOrUpdateTrigger(string triggerName, string rawJsonContent) { - PSTriggerResource pSTrigger = JsonConvert.DeserializeObject(rawJsonContent, Settings); - TriggerResource trigger = pSTrigger.ToSdkObject(); + TriggerResource trigger = JsonConvert.DeserializeObject(rawJsonContent); var operation = _triggerClient.StartCreateOrUpdateTrigger(triggerName, trigger); return operation.Poll().Value; } @@ -233,8 +209,7 @@ public IReadOnlyList QueryTriggerRunsByWorkspace(RunFilterParameters public DatasetResource CreateOrUpdateDataset(string datasetName, string rawJsonContent) { - PSDatasetResource pSDatasetResource = JsonConvert.DeserializeObject(rawJsonContent, Settings); - DatasetResource dataset = pSDatasetResource.ToSdkObject(); + DatasetResource dataset = JsonConvert.DeserializeObject(rawJsonContent); var operation = _datasetClient.StartCreateOrUpdateDataset(datasetName, dataset); return operation.Poll().Value; } @@ -260,8 +235,7 @@ public void DeleteDataset(string datasetName) public DataFlowResource CreateOrUpdateDataFlow(string dataFlowName, string rawJsonContent) { - PSDataFlowResource pSDatasetResource = JsonConvert.DeserializeObject(rawJsonContent, Settings); - DataFlowResource dataFlow = pSDatasetResource.ToSdkObject(); + DataFlowResource dataFlow = JsonConvert.DeserializeObject(rawJsonContent); var operation = _dataFlowClient.StartCreateOrUpdateDataFlow(dataFlowName, dataFlow); return operation.Poll().Value; } diff --git a/src/Synapse/Synapse/Models/SynapseAnalyticsManagementClient.cs b/src/Synapse/Synapse/Models/SynapseAnalyticsManagementClient.cs index 74a26929f0ca..9d3075021eae 100644 --- a/src/Synapse/Synapse/Models/SynapseAnalyticsManagementClient.cs +++ b/src/Synapse/Synapse/Models/SynapseAnalyticsManagementClient.cs @@ -1436,7 +1436,7 @@ private void AutoEnableVa(string resourceGroupName, string workspaceName, string {"workspaceName", new Dictionary { {"value", workspaceName } }}, {"location", new Dictionary { {"value", workspaceLocation } }}, }; - string parameters = JsonConvert.SerializeObject(parametersDictionary, new JsonSerializerSettings + string parameters = Newtonsoft.Json.JsonConvert.SerializeObject(parametersDictionary, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.None, Formatting = Formatting.Indented diff --git a/src/Synapse/Synapse/Models/Trigger/PSBlobEventsTrigger.cs b/src/Synapse/Synapse/Models/Trigger/PSBlobEventsTrigger.cs deleted file mode 100644 index 9a5d584ea129..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSBlobEventsTrigger.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - [Newtonsoft.Json.JsonObject("BlobEventsTrigger")] - [Rest.Serialization.JsonTransformation] - public partial class PSBlobEventsTrigger : PSMultiplePipelineTrigger - { - public PSBlobEventsTrigger() - { - CustomInit(); - } - - partial void CustomInit(); - - [JsonProperty(PropertyName = "typeProperties.blobPathBeginsWith")] - public string BlobPathBeginsWith { get; set; } - - [JsonProperty(PropertyName = "typeProperties.blobPathEndsWith")] - public string BlobPathEndsWith { get; set; } - - [JsonProperty(PropertyName = "typeProperties.ignoreEmptyBlobs")] - public bool? IgnoreEmptyBlobs { get; set; } - - [JsonProperty(PropertyName = "typeProperties.events")] - public IList Events { get; set; } - - [JsonProperty(PropertyName = "typeProperties.scope")] - public string Scope { get; set; } - - public override Trigger ToSdkObject() - { - var trigger = new BlobEventsTrigger(this.Events?.Select(element => new BlobEventTypes(element)), this.Scope); - trigger.BlobPathBeginsWith = this.BlobPathBeginsWith; - trigger.BlobPathEndsWith = this.BlobPathEndsWith; - this.IgnoreEmptyBlobs = this.IgnoreEmptyBlobs; - this.Pipelines?.ForEach(item => trigger.Pipelines.Add(item)); - SetProperties(trigger); - return trigger; - } - } -} diff --git a/src/Synapse/Synapse/Models/Trigger/PSMultiplePipelineTrigger.cs b/src/Synapse/Synapse/Models/Trigger/PSMultiplePipelineTrigger.cs deleted file mode 100644 index 3e0f2d1fe267..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSMultiplePipelineTrigger.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Base class for all triggers that support one to many model for trigger - /// to pipeline. - /// - - [Newtonsoft.Json.JsonObject("MultiplePipelineTrigger")] - public partial class PSMultiplePipelineTrigger : PSTrigger - { - /// - /// Initializes a new instance of the PSMultiplePipelineTrigger class. - /// - public PSMultiplePipelineTrigger() - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets pipelines that need to be started. - /// - [JsonProperty(PropertyName = "pipelines")] - public IList Pipelines { get; set; } - - public override Trigger ToSdkObject() - { - var trigger = new MultiplePipelineTrigger(); - this.Pipelines?.ForEach(item => trigger.Pipelines.Add(item)); - SetProperties(trigger); - return trigger; - } - } -} diff --git a/src/Synapse/Synapse/Models/Trigger/PSRecurrenceSchedule.cs b/src/Synapse/Synapse/Models/Trigger/PSRecurrenceSchedule.cs deleted file mode 100644 index 1872339d1987..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSRecurrenceSchedule.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSRecurrenceSchedule - { - public PSRecurrenceSchedule() { } - - [JsonProperty(PropertyName = "minutes")] - public IList Minutes { get; } - - [JsonProperty(PropertyName = "hours")] - public IList Hours { get; } - - [JsonProperty(PropertyName = "weekDays")] - public IList WeekDays { get; } - - [JsonProperty(PropertyName = "monthDays")] - public IList MonthDays { get; } - - [JsonProperty(PropertyName = "monthlyOccurrences")] - public IList MonthlyOccurrences { get; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public RecurrenceSchedule ToSdkObject() - { - var recurrenceSchedule = new RecurrenceSchedule(); - this.AdditionalProperties?.ForEach(item => recurrenceSchedule.Add(item.Key, item.Value)); - return recurrenceSchedule; - } - } -} diff --git a/src/Synapse/Synapse/Models/Trigger/PSRecurrenceScheduleOccurrence.cs b/src/Synapse/Synapse/Models/Trigger/PSRecurrenceScheduleOccurrence.cs deleted file mode 100644 index 801aa304b523..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSRecurrenceScheduleOccurrence.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSRecurrenceScheduleOccurrence - { - public PSRecurrenceScheduleOccurrence() { } - - [JsonProperty(PropertyName = "day")] - public DayOfWeek? Day { get; set; } - - [JsonProperty(PropertyName = "occurrence")] - public int? Occurrence { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public RecurrenceScheduleOccurrence ToSdkObject() - { - var recurrenceScheduleOccurrence = new RecurrenceScheduleOccurrence() - { - Day = this.Day, - Occurrence = this.Occurrence - }; - this.AdditionalProperties?.ForEach(item => recurrenceScheduleOccurrence.Add(item.Key, item.Value)); - return recurrenceScheduleOccurrence; - } - } -} diff --git a/src/Synapse/Synapse/Models/Trigger/PSScheduleTrigger.cs b/src/Synapse/Synapse/Models/Trigger/PSScheduleTrigger.cs deleted file mode 100644 index 9ef76702484c..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSScheduleTrigger.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - [Newtonsoft.Json.JsonObject("ScheduleTrigger")] - [Rest.Serialization.JsonTransformation] - public partial class PSScheduleTrigger : PSMultiplePipelineTrigger - { - public PSScheduleTrigger() - { - CustomInit(); - } - - partial void CustomInit(); - - [JsonProperty(PropertyName = "typeProperties.recurrence")] - public PSScheduleTriggerRecurrence Recurrence { get; set; } - - public override Trigger ToSdkObject() - { - var trigger = new ScheduleTrigger(this.Recurrence?.ToSdkObject()); - this.Pipelines?.ForEach(item => trigger.Pipelines.Add(item)); - SetProperties(trigger); - return trigger; - } - } -} diff --git a/src/Synapse/Synapse/Models/Trigger/PSScheduleTriggerRecurrence.cs b/src/Synapse/Synapse/Models/Trigger/PSScheduleTriggerRecurrence.cs deleted file mode 100644 index 9bd12668539b..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSScheduleTriggerRecurrence.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Azure.Analytics.Synapse.Artifacts.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - public class PSScheduleTriggerRecurrence - { - public PSScheduleTriggerRecurrence() { } - - [JsonProperty(PropertyName = "frequency")] - public RecurrenceFrequency? Frequency { get; set; } - - [JsonProperty(PropertyName = "interval")] - public int? Interval { get; set; } - - [JsonProperty(PropertyName = "startTime")] - public DateTimeOffset? StartTime { get; set; } - - [JsonProperty(PropertyName = "endTime")] - public DateTimeOffset? EndTime { get; set; } - - [JsonProperty(PropertyName = "timeZone")] - public string TimeZone { get; set; } - - [JsonProperty(PropertyName = "schedule")] - public PSRecurrenceSchedule Schedule { get; set; } - - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - public ScheduleTriggerRecurrence ToSdkObject() - { - var scheduleTriggerRecurrence = new ScheduleTriggerRecurrence - { - Frequency = this.Frequency, - Interval = this.Interval, - StartTime = this.StartTime, - EndTime = this.EndTime, - TimeZone = this.TimeZone, - Schedule = this.Schedule?.ToSdkObject() - }; - this.AdditionalProperties?.ForEach(item => scheduleTriggerRecurrence.Add(item.Key, item.Value)); - return scheduleTriggerRecurrence; - } - } -} diff --git a/src/Synapse/Synapse/Models/Trigger/PSSinglePipelineTrigger.cs b/src/Synapse/Synapse/Models/Trigger/PSSinglePipelineTrigger.cs deleted file mode 100644 index 8c40d6aab0e9..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSSinglePipelineTrigger.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - public partial class PSSinglePipelineTrigger : PSTrigger - { - public PSSinglePipelineTrigger() - { - CustomInit(); - } - - partial void CustomInit(); - - [JsonProperty(PropertyName = "pipeline")] - public TriggerPipelineReference Pipeline { get; set; } - } -} diff --git a/src/Synapse/Synapse/Models/Trigger/PSTumblingWindowTrigger.cs b/src/Synapse/Synapse/Models/Trigger/PSTumblingWindowTrigger.cs deleted file mode 100644 index 38057d6ce801..000000000000 --- a/src/Synapse/Synapse/Models/Trigger/PSTumblingWindowTrigger.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.Azure.Commands.Synapse.Models -{ - using global::Azure.Analytics.Synapse.Artifacts.Models; - using Microsoft.WindowsAzure.Commands.Utilities.Common; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - [Newtonsoft.Json.JsonObject("TumblingWindowTrigger")] - [Rest.Serialization.JsonTransformation] - public partial class PSTumblingWindowTrigger : PSSinglePipelineTrigger - { - public PSTumblingWindowTrigger() - { - CustomInit(); - } - - partial void CustomInit(); - - [JsonProperty(PropertyName = "typeProperties.frequency")] - public TumblingWindowFrequency Frequency { get; set; } - - [JsonProperty(PropertyName = "typeProperties.interval")] - public int Interval { get; set; } - - [JsonProperty(PropertyName = "typeProperties.startTime")] - public DateTimeOffset StartTime { get; set; } - - [JsonProperty(PropertyName = "typeProperties.endTime")] - public DateTimeOffset? EndTime { get; set; } - - [JsonProperty(PropertyName = "typeProperties.delay")] - public object Delay { get; set; } - - [JsonProperty(PropertyName = "typeProperties.maxConcurrency")] - public int MaxConcurrency { get; set; } - - [JsonProperty(PropertyName = "typeProperties.retryPolicy")] - public RetryPolicy RetryPolicy { get; set; } - - [JsonProperty(PropertyName = "typeProperties.dependsOn")] - public IList DependsOn { get; set; } - - public override Trigger ToSdkObject() - { - var trigger = new TumblingWindowTrigger(this.Pipeline, this.Frequency, this.Interval, this.StartTime, this.MaxConcurrency); - trigger.EndTime = this.EndTime; - trigger.Delay = this.Delay; - trigger.RetryPolicy = this.RetryPolicy; - this.DependsOn?.ForEach(item => trigger.DependsOn.Add(item)); - SetProperties(trigger); - return trigger; - } - } -} diff --git a/src/Synapse/Synapse/Synapse.csproj b/src/Synapse/Synapse/Synapse.csproj index b5e1b6645fba..698bd5dc895a 100644 --- a/src/Synapse/Synapse/Synapse.csproj +++ b/src/Synapse/Synapse/Synapse.csproj @@ -14,7 +14,7 @@ - +